|
@@ -91,14 +91,12 @@ export default {
|
91
|
91
|
page: 1, // 当前页码
|
92
|
92
|
pagesize: 10, // 请求数据量
|
93
|
93
|
},
|
94
|
|
- currentList: [{
|
95
|
|
- xxx: 'xxx'
|
96
|
|
- }]
|
|
94
|
+ currentList: []
|
97
|
95
|
}
|
98
|
96
|
},
|
99
|
97
|
mounted () {
|
100
|
98
|
this.$nextTick(function () {
|
101
|
|
- // this.getList()
|
|
99
|
+ this.getList()
|
102
|
100
|
})
|
103
|
101
|
},
|
104
|
102
|
computed: {
|
|
@@ -122,14 +120,14 @@ export default {
|
122
|
120
|
this.getList()
|
123
|
121
|
},
|
124
|
122
|
getList () { // 获取列表
|
125
|
|
- // this.$ajax(this.$api.channelManager.getChannelList.url, {
|
126
|
|
- // method: this.$api.channelManager.getChannelList.method,
|
127
|
|
- // queryData: { ...this.postData, caseid: this.CaseId }
|
128
|
|
- // }).then(res => {
|
129
|
|
- // this.currentList = res.list
|
130
|
|
- // this.postData.page = res.page
|
131
|
|
- // this.total = res.pagenum
|
132
|
|
- // })
|
|
123
|
+ this.$ajax(this.$api.channelManager.getChannelList.url, {
|
|
124
|
+ method: this.$api.channelManager.getChannelList.method,
|
|
125
|
+ queryData: { ...this.postData, caseid: this.CaseId }
|
|
126
|
+ }).then(res => {
|
|
127
|
+ this.currentList = res.list
|
|
128
|
+ this.postData.page = res.page
|
|
129
|
+ this.total = res.pagenum
|
|
130
|
+ })
|
133
|
131
|
},
|
134
|
132
|
handleCurrentChange (val) { // 跳转到分页
|
135
|
133
|
this.getList()
|