|
|
@@ -15,14 +15,14 @@
|
|
15
|
15
|
end-placeholder="结束日期"/>
|
|
16
|
16
|
<el-input v-model="keyword" placeholder="请输入呼叫号码" class="filter-item"/>
|
|
17
|
17
|
<el-cascader
|
|
18
|
|
- v-model="provinceCity"
|
|
19
|
|
- :options="provinceCityDatas"
|
|
20
|
|
- :props="props"
|
|
21
|
|
- placeholder="请选择省市"
|
|
22
|
|
- class="filter-item"
|
|
23
|
|
- clearable
|
|
24
|
|
- filterable
|
|
25
|
|
- change-on-select />
|
|
|
18
|
+ v-model="provinceCity"
|
|
|
19
|
+ :options="provinceCityDatas"
|
|
|
20
|
+ :props="props"
|
|
|
21
|
+ placeholder="请选择省市"
|
|
|
22
|
+ class="filter-item"
|
|
|
23
|
+ clearable
|
|
|
24
|
+ filterable
|
|
|
25
|
+ change-on-select />
|
|
26
|
26
|
<el-select v-model="roleId" class="filter-item" filterable clearable placeholder="请选择角色">
|
|
27
|
27
|
<el-option
|
|
28
|
28
|
v-for="item in roleOptions"
|
|
|
@@ -204,7 +204,7 @@ export default {
|
|
204
|
204
|
dataLists: [] // 列表数据
|
|
205
|
205
|
}
|
|
206
|
206
|
},
|
|
207
|
|
- computed: {
|
|
|
207
|
+ computed: {
|
|
208
|
208
|
...mapGetters([
|
|
209
|
209
|
'token'
|
|
210
|
210
|
])
|
|
|
@@ -226,10 +226,10 @@ export default {
|
|
226
|
226
|
const params = {
|
|
227
|
227
|
pageindex: this.pageParams.pageindex, // 第几页
|
|
228
|
228
|
pagesize: this.pageParams.pagesize, // 每页几条信息
|
|
229
|
|
- keyword: this.keyword.replace(/\s*/g, ""), // 否 string 模糊查询(呼叫号码)
|
|
|
229
|
+ keyword: this.keyword.replace(/\s*/g, ''), // 否 string 模糊查询(呼叫号码)
|
|
230
|
230
|
usercode: this.roleId, // 否 string 模糊查询(呼叫号码)
|
|
231
|
|
- province: this.provinceCity[0] == undefined?'':this.provinceCity[0],//省
|
|
232
|
|
- city: this.provinceCity[1] == undefined?'':this.provinceCity[1],//市
|
|
|
231
|
+ province: this.provinceCity[0] == undefined ? '' : this.provinceCity[0], // 省
|
|
|
232
|
+ city: this.provinceCity[1] == undefined ? '' : this.provinceCity[1], // 市
|
|
233
|
233
|
stime: this.searchDate && this.searchDate[0],
|
|
234
|
234
|
etime: this.searchDate && this.searchDate[1]
|
|
235
|
235
|
}
|
|
|
@@ -247,18 +247,18 @@ export default {
|
|
247
|
247
|
btn_search() {
|
|
248
|
248
|
this.getList()
|
|
249
|
249
|
},
|
|
250
|
|
- //导出
|
|
|
250
|
+ // 导出
|
|
251
|
251
|
btn_export() {
|
|
252
|
252
|
alert(this.token)
|
|
253
|
253
|
debugger
|
|
254
|
254
|
window.location.href = this.$store.getters.serverConfig.BASE_API + 'callrecords/exportexcel?pageindex=' + this.pageParams.pageindex +
|
|
255
|
255
|
'&pagesize=' + this.pageParams.pagesize +
|
|
256
|
|
- '&stime=' + this.searchDate && this.searchDate[0] +
|
|
|
256
|
+ '&stime=' + this.searchDate && this.searchDate[0] +
|
|
257
|
257
|
'&etime=' + this.searchDate && this.searchDate[1] +
|
|
258
|
|
- '&province=' + this.provinceCity[0] == undefined?'':this.provinceCity[0] +
|
|
259
|
|
- '&city=' + this.provinceCity[1] == undefined?'':this.provinceCity[1] +
|
|
260
|
|
- '&keyword=' + this.keyword.replace(/\s*/g, "") +
|
|
261
|
|
- '&token=' + this.token +
|
|
|
258
|
+ '&province=' + this.provinceCity[0] == undefined ? '' : this.provinceCity[0] +
|
|
|
259
|
+ '&city=' + this.provinceCity[1] == undefined ? '' : this.provinceCity[1] +
|
|
|
260
|
+ '&keyword=' + this.keyword.replace(/\s*/g, '') +
|
|
|
261
|
+ '&token=' + this.token +
|
|
262
|
262
|
'&usercode=' + this.roleId
|
|
263
|
263
|
},
|
|
264
|
264
|
// 获取角色下拉
|