From 1abf0641b04125f413ead8283819171dac186601 Mon Sep 17 00:00:00 2001 From: 若依 <yzz_ivy@163.com> Date: 星期六, 29 六月 2024 15:39:18 +0800 Subject: [PATCH] Merge pull request #287 from 593496637/main --- src/views/system/config/index.vue | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue index c3a0fbc..bfdae6e 100644 --- a/src/views/system/config/index.vue +++ b/src/views/system/config/index.vue @@ -146,7 +146,7 @@ <el-radio v-for="dict in sys_yes_no" :key="dict.value" - :label="dict.value" + :value="dict.value" >{{ dict.label }}</el-radio> </el-radio-group> </el-form-item> @@ -208,11 +208,13 @@ loading.value = false; }); } + /** 鍙栨秷鎸夐挳 */ function cancel() { open.value = false; reset(); } + /** 琛ㄥ崟閲嶇疆 */ function reset() { form.value = { @@ -225,29 +227,34 @@ }; proxy.resetForm("configRef"); } + /** 鎼滅储鎸夐挳鎿嶄綔 */ function handleQuery() { queryParams.value.pageNum = 1; getList(); } + /** 閲嶇疆鎸夐挳鎿嶄綔 */ function resetQuery() { dateRange.value = []; proxy.resetForm("queryRef"); handleQuery(); } + /** 澶氶�夋閫変腑鏁版嵁 */ function handleSelectionChange(selection) { ids.value = selection.map(item => item.configId); single.value = selection.length != 1; multiple.value = !selection.length; } + /** 鏂板鎸夐挳鎿嶄綔 */ function handleAdd() { reset(); open.value = true; title.value = "娣诲姞鍙傛暟"; } + /** 淇敼鎸夐挳鎿嶄綔 */ function handleUpdate(row) { reset(); @@ -258,6 +265,7 @@ title.value = "淇敼鍙傛暟"; }); } + /** 鎻愪氦鎸夐挳 */ function submitForm() { proxy.$refs["configRef"].validate(valid => { @@ -278,6 +286,7 @@ } }); } + /** 鍒犻櫎鎸夐挳鎿嶄綔 */ function handleDelete(row) { const configIds = row.configId || ids.value; @@ -288,12 +297,14 @@ proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛"); }).catch(() => {}); } + /** 瀵煎嚭鎸夐挳鎿嶄綔 */ function handleExport() { proxy.download("system/config/export", { ...queryParams.value }, `config_${new Date().getTime()}.xlsx`); } + /** 鍒锋柊缂撳瓨鎸夐挳鎿嶄綔 */ function handleRefreshCache() { refreshCache().then(() => { -- Gitblit v1.9.3