fix:还原工作组件

This commit is contained in:
zhaohy
2024-07-08 10:40:26 +08:00
parent bfd6282a99
commit 77052ae284
6 changed files with 72 additions and 40 deletions

View File

@@ -141,16 +141,6 @@
<span class="text-ellipsis" v-else> - </span>
</span>
</template>
<!-- 添加关闭按钮 -->
<template v-if="data.column.dataIndex === 'isUse'">
<a-switch
v-model:checked="data.record.isUse"
:class="{
'blue-background': data.record.isUse,
'grey-background': !data.record.isUse,
}"
@click="clickSwitch({ isUse: data.record.isUse, record: data.record })" />
</template>
<template v-if="data.column.dataIndex === 'tableAction'">
<ns-table-action
:data="data.record"
@@ -360,10 +350,6 @@
page: 1,
});
}, 300);
/* 点击开关按钮 */
const clickSwitch = (data: object) => {
emit('switch', data);
};
function setLoading(loading: boolean) {
tableState.loading = loading;
@@ -647,7 +633,6 @@
tableState,
isEmpty,
formFinish,
clickSwitch,
tableChangeEvent,
treeSelect,
getTreeBindValue,