正确转到字典类型页面

This commit is contained in:
sindir
2026-01-20 16:29:30 +08:00
parent 46145ff636
commit bc92b9aa62

View File

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