fix: 🐛 字典数据保存typeCode取值未实时更新问题修复

Former-commit-id: c375a91846db90ad2e33412ac5afb9da74c4ea26
This commit is contained in:
hxr
2023-07-11 07:21:06 +08:00
parent 88246c37fa
commit ede7e575eb
2 changed files with 4 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ watch(
() => props.typeCode,
(newVal: string) => {
queryParams.typeCode = newVal;
formData.typeCode = newVal;
resetQuery();
}
);

View File

@@ -166,11 +166,10 @@ const dictDataDialog = reactive<DialogOption>({
visible: false,
});
// 当前选中的字典类型
const selectedDictType = reactive({ typeCode: "", typeName: "" });
const selectedDictType = reactive({ typeCode: "", typeName: "" }); // 当前选中的字典类型
/**
* 打开字典弹窗
* 打开字典数据弹窗
*/
function openDictDialog(row: DictTypePageVO) {
dictDataDialog.visible = true;
@@ -181,7 +180,7 @@ function openDictDialog(row: DictTypePageVO) {
}
/**
* 关闭字典弹窗
* 关闭字典数据弹窗
*/
function closeDictDialog() {
dictDataDialog.visible = false;