提交 d0c1e2b0 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 标签、群组的用户增加查看按钮

上级 92d071c3
...@@ -87,7 +87,8 @@ const listOptions = computed(() => { ...@@ -87,7 +87,8 @@ const listOptions = computed(() => {
} }
}, },
{ label: '更新人', prop: 'updated_operator.real_name' }, { label: '更新人', prop: 'updated_operator.real_name' },
{ label: '更新时间', prop: 'updated_time' } { label: '更新时间', prop: 'updated_time' },
{ label: '操作', slots: 'table-x' }
] ]
} }
}) })
...@@ -99,7 +100,7 @@ function handleRefresh() { ...@@ -99,7 +100,7 @@ function handleRefresh() {
</script> </script>
<template> <template>
<el-dialog title="查看群组信息" width="980px" @update:modelValue="value => $emit('update:modelValue', value)"> <el-dialog title="查看群组信息" width="1000px" @update:modelValue="value => $emit('update:modelValue', value)">
<el-form label-suffix=":" label-width="82px"> <el-form label-suffix=":" label-width="82px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
...@@ -157,7 +158,13 @@ function handleRefresh() { ...@@ -157,7 +158,13 @@ function handleRefresh() {
</el-card> </el-card>
<el-card style="margin-top: 20px"> <el-card style="margin-top: 20px">
<template #header>群组用户</template> <template #header>群组用户</template>
<AppList v-bind="listOptions" ref="appList"></AppList> <AppList v-bind="listOptions" ref="appList">
<template #table-x="{ row }">
<el-button type="primary" plain>
<router-link target="_blank" :to="{ path: '/user/image', query: { user_id: row.id, experiment_id: row.experiment_id } }">查看</router-link>
</el-button>
</template>
</AppList>
</el-card> </el-card>
<template #footer> <template #footer>
......
...@@ -65,14 +65,15 @@ const listOptions = computed(() => { ...@@ -65,14 +65,15 @@ const listOptions = computed(() => {
} }
}, },
{ label: '更新人', prop: 'updated_operator.real_name' }, { label: '更新人', prop: 'updated_operator.real_name' },
{ label: '更新时间', prop: 'updated_time' } { label: '更新时间', prop: 'updated_time' },
{ label: '操作', slots: 'table-x' }
] ]
} }
}) })
</script> </script>
<template> <template>
<el-dialog title="查看标签信息" width="800px"> <el-dialog title="查看标签信息" width="1000px">
<el-form label-suffix=":" label-width="82px"> <el-form label-suffix=":" label-width="82px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
...@@ -119,7 +120,13 @@ const listOptions = computed(() => { ...@@ -119,7 +120,13 @@ const listOptions = computed(() => {
</el-card> </el-card>
<el-card style="margin-top: 20px"> <el-card style="margin-top: 20px">
<template #header>标签用户</template> <template #header>标签用户</template>
<AppList v-bind="listOptions" ref="appList"></AppList> <AppList v-bind="listOptions" ref="appList">
<template #table-x="{ row }">
<el-button type="primary" plain>
<router-link target="_blank" :to="{ path: '/user/image', query: { user_id: row.id, experiment_id: row.experiment_id } }">查看</router-link>
</el-button>
</template>
</AppList>
</el-card> </el-card>
<template #footer> <template #footer>
<el-row justify="center"> <el-row justify="center">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论