From bc92b9aa629e535999ee8d3d3cccf742f8bda8c4 Mon Sep 17 00:00:00 2001 From: sindir Date: Tue, 20 Jan 2026 16:29:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E8=BD=AC=E5=88=B0=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E7=B1=BB=E5=9E=8B=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openhis-ui-vue3/src/views/system/dict/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openhis-ui-vue3/src/views/system/dict/index.vue b/openhis-ui-vue3/src/views/system/dict/index.vue index a6db2ff1..fe0ae606 100644 --- a/openhis-ui-vue3/src/views/system/dict/index.vue +++ b/openhis-ui-vue3/src/views/system/dict/index.vue @@ -98,7 +98,7 @@ {{ dict.label - }} + }} @@ -195,7 +195,7 @@ function handleAdd() { /** 多选框选中数据 */ function handleSelectionChange(selection) { ids.value = selection.map((item) => item.dictId); - single.value = selection.length != 1; + single.value = selection.length !== 1; multiple.value = !selection.length; } /** 修改按钮操作 */ @@ -212,14 +212,14 @@ function handleUpdate(row) { function submitForm() { proxy.$refs['dictRef'].validate((valid) => { if (valid) { - if (form.value.dictId != undefined) { - updateType(form.value).then((response) => { + if (form.value.dictId !== undefined) { + updateType(form.value).then(() => { proxy.$modal.msgSuccess('修改成功'); open.value = false; getList(); }); } else { - addType(form.value).then((response) => { + addType(form.value).then(() => { proxy.$modal.msgSuccess('新增成功'); open.value = false; getList();