From 9965700fc98f30216ccae293e72fc37c7292cdbc Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Wed, 2 Aug 2023 23:58:34 +0800 Subject: [PATCH] =?UTF-8?q?style:=20:lipstick:=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=A0=BC=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 0f5739e620e9aceb540c5a92fd136b32cedc996a --- src/views/system/dict/index.vue | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 9d7e07fb..3c875c20 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -44,9 +44,7 @@ const rules = reactive({ code: [{ required: true, message: "请输入字典类型编码", trigger: "blur" }], }); -/** - * 查询 - */ +/** 查询 */ function handleQuery() { loading.value = true; getDictTypePage(queryParams) @@ -68,9 +66,7 @@ function resetQuery() { handleQuery(); } -/** - * 行checkbox change事件 - */ +/** 行复选框选中 */ function handleSelectionChange(selection: any) { ids.value = selection.map((item: any) => item.id); } @@ -92,9 +88,7 @@ function openDialog(dicTypeId?: number) { } } -/** - * 字典类型表单提交 - */ +/** 字典类型表单提交 */ function handleSubmit() { dataFormRef.value.validate((isValid: boolean) => { if (isValid) { @@ -121,17 +115,13 @@ function handleSubmit() { }); } -/** - * 关闭弹窗 - */ +/** 关闭字典类型弹窗 */ function closeDialog() { dialog.visible = false; resetForm(); } -/** - * 重置表单 - */ +/** 重置字典类型表单 */ function resetForm() { dataFormRef.value.resetFields(); dataFormRef.value.clearValidate(); @@ -140,9 +130,7 @@ function resetForm() { formData.status = 1; } -/** - * 删除字典类型 - */ +/** 删除字典类型 */ function handleDelete(dictTypeId?: number) { const dictTypeIds = [dictTypeId || ids.value].join(","); if (!dictTypeIds) { @@ -168,9 +156,7 @@ const dictDataDialog = reactive({ const selectedDictType = reactive({ typeCode: "", typeName: "" }); // 当前选中的字典类型 -/** - * 打开字典数据弹窗 - */ +/** 打开字典数据弹窗 */ function openDictDialog(row: DictTypePageVO) { dictDataDialog.visible = true; dictDataDialog.title = "【" + row.name + "】字典数据"; @@ -179,9 +165,7 @@ function openDictDialog(row: DictTypePageVO) { selectedDictType.typeName = row.name; } -/** - * 关闭字典数据弹窗 - */ +/** 关闭字典数据弹窗 */ function closeDictDialog() { dictDataDialog.visible = false; }