fix:分组管理逻辑补充
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
const clearData = () => {
|
const clearData = () => {
|
||||||
dataSource.value = [];
|
dataSource.value = [];
|
||||||
targetKeys.value = [];
|
targetKeys.value = [];
|
||||||
|
currentId.value = '';
|
||||||
};
|
};
|
||||||
const toggle = () => {
|
const toggle = () => {
|
||||||
visible.value = !visible.value;
|
visible.value = !visible.value;
|
||||||
|
@@ -45,6 +45,7 @@
|
|||||||
const clearData = () => {
|
const clearData = () => {
|
||||||
dataSource.value = [];
|
dataSource.value = [];
|
||||||
targetKeys.value = [];
|
targetKeys.value = [];
|
||||||
|
currentId.value = '';
|
||||||
};
|
};
|
||||||
const toggle = () => {
|
const toggle = () => {
|
||||||
visible.value = !visible.value;
|
visible.value = !visible.value;
|
||||||
|
@@ -16,8 +16,8 @@
|
|||||||
<template #addonAfter="data">
|
<template #addonAfter="data">
|
||||||
<template v-if="data.field === 'groupName'">
|
<template v-if="data.field === 'groupName'">
|
||||||
<div class="iconOP">
|
<div class="iconOP">
|
||||||
<EditOutlined v-if="inputDisabled" @click="editGroup" />
|
<EditOutlined title="编辑" v-if="inputDisabled" @click="editGroup" />
|
||||||
<CheckOutlined v-else @click="add" />
|
<CheckOutlined title="保存" v-else @click="add" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -161,6 +161,7 @@
|
|||||||
() => [
|
() => [
|
||||||
createVNode(DeleteOutlined, {
|
createVNode(DeleteOutlined, {
|
||||||
style: { color: 'red', cursor: 'pointer' },
|
style: { color: 'red', cursor: 'pointer' },
|
||||||
|
title: '删除',
|
||||||
// onClick: () => delGroup(record.id),
|
// onClick: () => delGroup(record.id),
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user