Browse Source

修改刷新

yangg 7 months ago
parent
commit
fcd36f2c79
1 changed files with 3 additions and 2 deletions
  1. 3 2
      ui/src/views/ProductMent/worksCategory/index.vue

+ 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;