朱鑫波 4 年之前
父节点
当前提交
cf2c65e483
共有 1 个文件被更改,包括 13 次插入4 次删除
  1. 13 4
      src/views/modules/earlyWarningRules/useRuleList.vue

+ 13 - 4
src/views/modules/earlyWarningRules/useRuleList.vue

@@ -35,7 +35,6 @@
           :pagination="ipagination"
           :scroll="{ x: scrollX }"
           :loading="loading"
-          @change="sort"
           style="word-break: break-all"
         >
           <span slot="status" slot-scope="text, record">
@@ -75,7 +74,7 @@
           :labelCol="{ lg: { span: 6 }, sm: { span: 6 } }"
           :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
         >
-          <Treeselect :appId.sync="accountId" :multiple="false"  ref="treeSelect" style="width: 100%" />
+          <Treeselect :appId.sync="accountId" :multiple="false" ref="treeSelect" style="width: 100%" />
         </a-form-item>
       </a-form>
     </a-modal>
@@ -200,14 +199,23 @@ export default {
           return range[0] + '-' + range[1] + ' 共' + total + '条'
         },
         showQuickJumper: true,
-        showSizeChanger: true,
-        pageSizeOptions: ['10', '30', '50'],
+        // showSizeChanger: true,
+        // pageSizeOptions: ['10', '30', '50'],
         total: 0,
         onChange: (current, pageSize) => {
           // 切换分页时的回调,
           // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
           this.ipagination.current = current
           this.ipagination.pageSize = pageSize
+          let url = ''
+          if (this.tabKey == '1') {
+            this.columns = [...existColumns]
+            url = '/ruleTemplate/list'
+          } else {
+            this.columns = [...recordsColumns]
+            url = '/ruleAccountTemplate/getTemplateApplied'
+          }
+          this.getTableListHttp(url)
         },
       },
       url: {
@@ -228,6 +236,7 @@ export default {
     },
     tabChange(key) {
       console.log(key)
+      this.ipagination.current = 1
       let url = ''
       if (key == '1') {
         this.columns = [...existColumns]