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();