fix(全局): 修复批量编辑标签重置清空项

This commit is contained in:
xinxin.wu 2024-10-21 15:27:56 +08:00 committed by Craftsman
parent d07388c788
commit c08a3a1958
7 changed files with 13 additions and 4 deletions

View File

@ -945,6 +945,7 @@
values: [],
append: false,
};
selectedTagType.value = TagUpdateTypeEnum.UPDATE;
}
function batchUpdate() {

View File

@ -963,6 +963,8 @@
}
});
const selectedTagType = ref<TagUpdateTypeEnum>(TagUpdateTypeEnum.UPDATE);
function cancelBatchEdit() {
showBatchEditModal.value = false;
batchFormRef.value?.resetFields();
@ -972,8 +974,8 @@
values: [],
append: false,
};
selectedTagType.value = TagUpdateTypeEnum.UPDATE;
}
const selectedTagType = ref<TagUpdateTypeEnum>(TagUpdateTypeEnum.UPDATE);
function handleBatchEditCase() {
batchFormRef.value?.validate(async (errors) => {

View File

@ -672,6 +672,8 @@
},
];
const selectedTagType = ref<TagUpdateTypeEnum>(TagUpdateTypeEnum.UPDATE);
function cancelBatch() {
showBatchModal.value = false;
batchFormRef.value?.resetFields();
@ -681,8 +683,8 @@
values: [],
append: false,
};
selectedTagType.value = TagUpdateTypeEnum.UPDATE;
}
const selectedTagType = ref<TagUpdateTypeEnum>(TagUpdateTypeEnum.UPDATE);
function batchUpdate() {
batchFormRef.value?.validate(async (errors) => {

View File

@ -1334,6 +1334,7 @@
values: [],
append: false,
};
selectedTagType.value = TagUpdateTypeEnum.UPDATE;
}
function batchUpdate() {

View File

@ -186,6 +186,7 @@
const showAppend = ref(false);
const formRef = ref<FormInstance>();
const selectedTagType = ref<TagUpdateTypeEnum>(TagUpdateTypeEnum.UPDATE);
const formReset = () => {
form.attribute = '';
@ -193,6 +194,7 @@
form.inputValue = '';
form.append = false;
valueMode.value = 'single_select';
selectedTagType.value = TagUpdateTypeEnum.UPDATE;
};
const handleCancel = () => {
@ -230,7 +232,6 @@
}
}
};
const selectedTagType = ref<TagUpdateTypeEnum>(TagUpdateTypeEnum.UPDATE);
const handleConfirm = () => {
formRef.value?.validate(async (errors: undefined | Record<string, ValidatedError>) => {

View File

@ -179,6 +179,7 @@
form.value = { ...initForm };
formRules.value = [{ ...initDefaultForm }];
form.value.tags = [];
selectedTagType.value = TagUpdateTypeEnum.UPDATE;
}
async function confirmHandler() {

View File

@ -130,6 +130,7 @@
];
const formRef = ref<FormInstance | null>(null);
const selectedTagType = ref<TagUpdateTypeEnum>(TagUpdateTypeEnum.UPDATE);
function closeHandler() {
isVisible.value = false;
@ -140,10 +141,10 @@
tags: [],
value: '',
};
selectedTagType.value = TagUpdateTypeEnum.UPDATE;
}
const batchEditLoading = ref(false);
const selectedTagType = ref<TagUpdateTypeEnum>(TagUpdateTypeEnum.UPDATE);
function confirmHandler() {
formRef.value?.validate(async (errors) => {