浏览代码

默认恢复

zhengnaiwen_citu 3 月之前
父节点
当前提交
3cc772e8cc
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 3 0
      src/views/salary/solution/components/ListTemplate.vue
  2. 4 0
      src/views/sandbox/sandboxList.vue

+ 3 - 0
src/views/salary/solution/components/ListTemplate.vue

@@ -84,6 +84,9 @@ export default {
     async onInit (entity, headers) {
       this.headers = headers ?? this.headers
       this.query = entity ? { ...entity } : {}
+      this.total = 0
+      this.items = []
+      this.pageInfo.current = 1
       this.getList()
     },
     async getList () {

+ 4 - 0
src/views/sandbox/sandboxList.vue

@@ -2,6 +2,7 @@
   <m-dialog title="规则选择" ref="dialog" width="1200">
     <m-table
       shadow="never"
+      v-loading="loading"
       clearHeader
       :headers="headers"
       :items="items"
@@ -69,7 +70,10 @@ export default {
   methods: {
     open (item) {
       this.$refs.dialog.open()
+      this.pageInfo.current = 1
       this.uuid = item.uuid
+      this.items = []
+      this.total = 0
       this.getList()
     },
     async getList () {