|
@@ -35,7 +35,6 @@
|
|
:pagination="ipagination"
|
|
:pagination="ipagination"
|
|
:scroll="{ x: scrollX }"
|
|
:scroll="{ x: scrollX }"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
- @change="sort"
|
|
|
|
style="word-break: break-all"
|
|
style="word-break: break-all"
|
|
>
|
|
>
|
|
<span slot="status" slot-scope="text, record">
|
|
<span slot="status" slot-scope="text, record">
|
|
@@ -199,14 +198,23 @@ export default {
|
|
return range[0] + '-' + range[1] + ' 共' + total + '条'
|
|
return range[0] + '-' + range[1] + ' 共' + total + '条'
|
|
},
|
|
},
|
|
showQuickJumper: true,
|
|
showQuickJumper: true,
|
|
- showSizeChanger: true,
|
|
|
|
- pageSizeOptions: ['10', '30', '50'],
|
|
|
|
|
|
+ // showSizeChanger: true,
|
|
|
|
+ // pageSizeOptions: ['10', '30', '50'],
|
|
total: 0,
|
|
total: 0,
|
|
onChange: (current, pageSize) => {
|
|
onChange: (current, pageSize) => {
|
|
// 切换分页时的回调,
|
|
// 切换分页时的回调,
|
|
// 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
|
|
// 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
|
|
this.ipagination.current = current
|
|
this.ipagination.current = current
|
|
this.ipagination.pageSize = pageSize
|
|
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: {
|
|
url: {
|
|
@@ -227,6 +235,7 @@ export default {
|
|
},
|
|
},
|
|
tabChange(key) {
|
|
tabChange(key) {
|
|
console.log(key)
|
|
console.log(key)
|
|
|
|
+ this.ipagination.current = 1
|
|
let url = ''
|
|
let url = ''
|
|
if (key == '1') {
|
|
if (key == '1') {
|
|
this.columns = [...existColumns]
|
|
this.columns = [...existColumns]
|