yangg 7 сар өмнө
parent
commit
fcd36f2c79

+ 3 - 2
ui/src/views/ProductMent/worksCategory/index.vue

@@ -43,7 +43,7 @@
         :total="total"
         :page.sync="queryParams.pageNum"
         :limit.sync="queryParams.pageSize"
-        @pagination="getList"
+        @pagination="loadData"
       />
 
 
@@ -180,6 +180,7 @@
               addWork(this.form).then(response => {
                 this.dialogVisible = false
                 this.$message.success('保存成功')
+                this.loadData()
               });
             }
             this.loadData()
@@ -189,7 +190,7 @@
       loadData() {
         // 实现数据加载逻辑
         this.loading = true;
-        listWork(this.searchQuery).then(response => {
+        listWork(this.queryParams).then(response => {
           debugger;
           this.tableData = response.rows;
           this.total = response.total;