fix:分组管理逻辑补充

This commit is contained in:
xuziqiang
2024-07-15 17:15:59 +08:00
parent 2fe6bb6d81
commit dac2e095e1
3 changed files with 5 additions and 2 deletions

View File

@@ -45,6 +45,7 @@
const clearData = () => {
dataSource.value = [];
targetKeys.value = [];
currentId.value = '';
};
const toggle = () => {
visible.value = !visible.value;

View File

@@ -45,6 +45,7 @@
const clearData = () => {
dataSource.value = [];
targetKeys.value = [];
currentId.value = '';
};
const toggle = () => {
visible.value = !visible.value;

View File

@@ -16,8 +16,8 @@
<template #addonAfter="data">
<template v-if="data.field === 'groupName'">
<div class="iconOP">
<EditOutlined v-if="inputDisabled" @click="editGroup" />
<CheckOutlined v-else @click="add" />
<EditOutlined title="编辑" v-if="inputDisabled" @click="editGroup" />
<CheckOutlined title="保存" v-else @click="add" />
</div>
</template>
</template>
@@ -161,6 +161,7 @@
() => [
createVNode(DeleteOutlined, {
style: { color: 'red', cursor: 'pointer' },
title: '删除',
// onClick: () => delGroup(record.id),
}),
],