diff --git a/src/views/system/dict/DictData.vue b/src/views/system/dict/DictData.vue index 03f15200..ce3b12f7 100644 --- a/src/views/system/dict/DictData.vue +++ b/src/views/system/dict/DictData.vue @@ -33,6 +33,7 @@ watch( () => props.typeCode, (newVal: string) => { queryParams.typeCode = newVal; + formData.typeCode = newVal; resetQuery(); } ); diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index e868241a..9d7e07fb 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -166,11 +166,10 @@ const dictDataDialog = reactive({ 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;