|
|
@@ -30,6 +30,15 @@
|
|
|
},
|
|
|
]" />
|
|
|
</template> -->
|
|
|
+ <template #action="{ record }">
|
|
|
+ <TableAction :actions="[
|
|
|
+ {
|
|
|
+ label: '查看',
|
|
|
+ tooltip: '查看',
|
|
|
+ onClick: searchTagsByType.bind(null,record.TYPE),
|
|
|
+ }
|
|
|
+ ]" />
|
|
|
+ </template>
|
|
|
</BasicTable>
|
|
|
<!-- <div class="body-header">
|
|
|
<div class="item-title">标签类型列表</div>
|
|
|
@@ -301,6 +310,10 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ const searchTagsByType = (type)=>{
|
|
|
+ filteredInfo.value.type = [type]
|
|
|
+ }
|
|
|
+
|
|
|
//注册tag表格
|
|
|
const [
|
|
|
registerTableTag,
|
|
|
@@ -359,12 +372,12 @@ export default defineComponent({
|
|
|
// pageSize: 10,
|
|
|
hideOnSinglePage: false
|
|
|
},
|
|
|
- // actionColumn: {
|
|
|
- // width: 100,
|
|
|
- // title: '操作',
|
|
|
- // dataIndex: 'action',
|
|
|
- // slots: { customRender: 'action' },
|
|
|
- // }
|
|
|
+ actionColumn: {
|
|
|
+ width: 100,
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'action',
|
|
|
+ slots: { customRender: 'action' },
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
return {
|
|
|
@@ -381,7 +394,8 @@ export default defineComponent({
|
|
|
delAllData,
|
|
|
onDelete,
|
|
|
openDialog,
|
|
|
- onSubmit
|
|
|
+ onSubmit,
|
|
|
+ searchTagsByType
|
|
|
};
|
|
|
},
|
|
|
});
|