|
13 | 13 | :picker-options="pickerOptions2">
|
14 | 14 | </el-date-picker>
|
15 | 15 | -
|
16 |
| - |
17 | 16 | <el-date-picker
|
18 | 17 | v-model="filters.endTime"
|
19 | 18 | type="date"
|
|
23 | 22 | :picker-options="pickerOptions2">
|
24 | 23 | </el-date-picker>
|
25 | 24 | |
|
26 |
| - |
27 | 25 | <el-input v-model="filters.userId" placeholder="tel/userId/SeqId"
|
28 | 26 | style="width: 20%;"></el-input>
|
29 | 27 | <el-button type="primary" v-on:click="getUserList">查询</el-button>
|
|
290 | 288 | },
|
291 | 289 | formattedConstellation(index) {
|
292 | 290 |
|
293 |
| - let constellationStrings = ["白羊", "金牛", "双子", "巨蟹", "狮子" |
294 |
| - , "处女", "天秤", "天蝎", "射手", "摩羯", "水瓶", "双鱼", "双鱼"]; |
| 291 | + let constellationStrings = ["白羊座", "金牛座", "双子座", "巨蟹座", "狮子座" |
| 292 | + , "处女座", "天秤座", "天蝎座", "射手座", "摩羯座", "水瓶座", "双鱼座", "双鱼座"]; |
295 | 293 | return constellationStrings[index];
|
296 | 294 |
|
297 | 295 | },
|
|
418 | 416 | //获取消息记录信息
|
419 | 417 | getUserList() {
|
420 | 418 |
|
| 419 | + let _this = this; |
| 420 | +
|
421 | 421 | let userIdParam = ''
|
422 | 422 |
|
423 |
| - if (this.filters.userId) { |
| 423 | + if (_this.filters.userId) { |
424 | 424 | userIdParam = ''
|
425 |
| - if (this.filters.userId.match(this.regex.userIdRe)) { |
426 |
| - userIdParam = '"userId":"' + this.filters.userId + '"' |
427 |
| - } else if (this.filters.userId.match(this.regex.seqIdRe)) { |
428 |
| - userIdParam = '"seqid":' + this.filters.userId |
429 |
| - } else if (this.filters.userId.match(this.regex.tel)) { |
430 |
| - userIdParam = '"telphone":"' + this.filters.userId + '"' |
| 425 | + if (_this.filters.userId.match(_this.regex.userIdRe)) { |
| 426 | + userIdParam = '"userId":"' + _this.filters.userId + '"' |
| 427 | + } else if (_this.filters.userId.match(_this.regex.seqIdRe)) { |
| 428 | + userIdParam = '"seqid":' + _this.filters.userId |
| 429 | + } else if (this.filters.userId.match(_this.regex.tel)) { |
| 430 | + userIdParam = '"telphone":"' + _this.filters.userId + '"' |
431 | 431 | }
|
432 | 432 | else {
|
433 |
| - this.$message({ |
| 433 | + _this.$message({ |
434 | 434 | message: '参数格式校验失败',
|
435 | 435 | type: 'error'
|
436 | 436 | });
|
437 | 437 | return
|
438 | 438 | }
|
439 | 439 | }
|
440 | 440 |
|
441 |
| - let dateParam = ('' != this.filters.beginTime && '' != this.filters.endTime ) ? '"_created":{"$gt":"' + moment(this.filters.beginTime).format('YYYY-MM-DD 0:0:0') + '","$lt":"' + moment(this.filters.endTime).format('YYYY-MM-DD 0:0:0') + '"}}' : '}'; |
| 441 | + let dateParam = ('' != _this.filters.beginTime && '' != _this.filters.endTime ) ? '"_created":{"$gt":"' + moment(_this.filters.beginTime).subtract(8,'hours').format('YYYY-MM-DD HH:mm:ss') + '","$lt":"' + moment(_this.filters.endTime).add(16, 'hours').format('YYYY-MM-DD HH:mm:ss') + '"}}' : '}'; |
442 | 442 |
|
443 | 443 | if ('' !== userIdParam) {
|
444 | 444 | if ('}' === dateParam) {
|
|
0 commit comments