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