mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-01-24 22:48:11 +00:00
【issues/9275】用户组件第二次点击取消时勾选值还是回显了
This commit is contained in:
parent
b7a3da89ca
commit
41877a6e8b
@ -60,7 +60,7 @@
|
|||||||
import { useSelectBiz } from '/@/components/Form/src/jeecg/hooks/useSelectBiz';
|
import { useSelectBiz } from '/@/components/Form/src/jeecg/hooks/useSelectBiz';
|
||||||
import { useAttrs } from '/@/hooks/core/useAttrs';
|
import { useAttrs } from '/@/hooks/core/useAttrs';
|
||||||
import { selectProps } from '/@/components/Form/src/jeecg/props/props';
|
import { selectProps } from '/@/components/Form/src/jeecg/props/props';
|
||||||
|
import { isArray, cloneDeep } from 'lodash-es';
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'UserSelectModal',
|
name: 'UserSelectModal',
|
||||||
components: {
|
components: {
|
||||||
@ -115,8 +115,14 @@
|
|||||||
}
|
}
|
||||||
// 代码逻辑说明: VUEN-1112 一对多 用户选择 未显示选择条数,及清空
|
// 代码逻辑说明: VUEN-1112 一对多 用户选择 未显示选择条数,及清空
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
// update-begin--author:liaozhiyang---date:20260120--for:【issues/9275】用户组件第二次点击取消时勾选值还是回显了
|
||||||
|
let selectedData = selectValues['value'];
|
||||||
|
if (isArray(selectedData)) {
|
||||||
|
selectedData = cloneDeep(selectedData);
|
||||||
|
}
|
||||||
|
// update-end--author:liaozhiyang---date:20260120--for:【issues/9275】用户组件第二次点击取消时勾选值还是回显了
|
||||||
if (tableRef.value) {
|
if (tableRef.value) {
|
||||||
tableRef.value.setSelectedRowKeys(selectValues['value'] || []);
|
tableRef.value.setSelectedRowKeys(selectedData || []);
|
||||||
}
|
}
|
||||||
}, 800);
|
}, 800);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user