浏览代码

修改刷新

yangg 7 月之前
父节点
当前提交
fcd36f2c79
共有 1 个文件被更改,包括 3 次插入2 次删除
  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;