|
|
@@ -37,8 +37,8 @@
|
|
|
onClick: openDialog.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
- label: '批量删除',
|
|
|
- tooltip: '批量删除',
|
|
|
+ label: '删除',
|
|
|
+ tooltip: '删除',
|
|
|
// icon: 'ant-design:delete-outlined',
|
|
|
onClick: onDelete.bind(null, record.id),
|
|
|
},
|
|
|
@@ -281,7 +281,7 @@ export default defineComponent({
|
|
|
hideOnSinglePage: false
|
|
|
},
|
|
|
rowKey: (record) => record.id,
|
|
|
- // canResize: false,
|
|
|
+ canResize: false,
|
|
|
actionColumn: {
|
|
|
width: 150,
|
|
|
title: '操作',
|
|
|
@@ -301,9 +301,14 @@ export default defineComponent({
|
|
|
key: 'TYPE'
|
|
|
},
|
|
|
]
|
|
|
+
|
|
|
+ var dom = null;
|
|
|
const rowClick = (record, index) => {
|
|
|
return {
|
|
|
onClick: () => {
|
|
|
+ if(dom) dom.style.color = '#000000';
|
|
|
+ dom = document.querySelector(`tr[data-row-key='${record.key}']`);
|
|
|
+ if(dom) dom.style.color = '#377dff';
|
|
|
searchTagsByType(record.TYPE)
|
|
|
}
|
|
|
}
|
|
|
@@ -326,13 +331,13 @@ export default defineComponent({
|
|
|
fullScreen: false
|
|
|
},
|
|
|
customRow: rowClick,
|
|
|
+ canResize: false,
|
|
|
showIndexColumn: true,
|
|
|
autoCreateKey: true, //不自动创建key
|
|
|
pagination: {
|
|
|
// pageSize: 10,
|
|
|
hideOnSinglePage: false
|
|
|
},
|
|
|
- // canResize:false
|
|
|
// actionColumn: {
|
|
|
// width: 100,
|
|
|
// title: '操作',
|
|
|
@@ -361,8 +366,15 @@ export default defineComponent({
|
|
|
},
|
|
|
});
|
|
|
</script>
|
|
|
+<style>
|
|
|
+.tagType-box tr{
|
|
|
+ height: 49px;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+</style>
|
|
|
|
|
|
<style lang="less">
|
|
|
+
|
|
|
.p-4 {
|
|
|
.tag-box {
|
|
|
.ant-table-body {
|
|
|
@@ -373,7 +385,7 @@ export default defineComponent({
|
|
|
|
|
|
.tagType-box {
|
|
|
.ant-table-body {
|
|
|
- height: 706px;
|
|
|
+ //height: 706px;
|
|
|
// overflow: auto !important;
|
|
|
}
|
|
|
}
|