From 66699dabedbf45e89b458c26735aecffb5809cb0 Mon Sep 17 00:00:00 2001 From: xjh <2423579486@qq.com> Date: Wed, 5 Jul 2023 11:20:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BB=A3=E7=A0=81=E5=9D=97=E7=B1=BB?= =?UTF-8?q?=E7=9B=AE=E6=A8=A1=E5=9D=97=E9=A1=B5=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index/code/code_module_category/index.vue | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/src/pages/index/code/code_module_category/index.vue b/src/pages/index/code/code_module_category/index.vue index 4a760e8..75e020f 100644 --- a/src/pages/index/code/code_module_category/index.vue +++ b/src/pages/index/code/code_module_category/index.vue @@ -38,12 +38,15 @@ 搜索 + + 重置 + - 添加 + 添加 @@ -188,8 +191,8 @@ const params = reactive({ }); const dataList = ref([]) -function getList() { - getCodeModuleCategoryList(params).then((res) => { +async function getList() { + await getCodeModuleCategoryList(params).then((res) => { if (res.code == 0) { dataList.value = res.data pageCount.value = res.count @@ -198,9 +201,26 @@ function getList() { } getList() +async function reset() { + params.code_module_category_name = ""; + params.code_module_category_ps = ""; + params.code_module_category_global_mode = ""; + params.code_module_category_library_type = ""; + params.customer = ""; + params.code_module_category_audit = ""; + params.page = 1; + params.limit = 10; + getList() +} + //排序 async function handleEditOrder(data) { const { code, msg } = await editCodeModuleCategory(data); + if (code == 0) { + ElMessage.success(msg); + } else { + ElMessage.error(msg); + } getList(); }