|
@@ -150,6 +150,10 @@ export default {
|
|
|
let postParams = {
|
|
|
system_code: this.smsxt,
|
|
|
}
|
|
|
+ // 搜索 设备间名称
|
|
|
+ if (this.keyword) {
|
|
|
+ data.keyword = `${this.keyword}:wzjc;`
|
|
|
+ }
|
|
|
// 右弹窗选择专业之后
|
|
|
if (this.system_code && this.system_code !== '全部') {
|
|
|
postParams.system_code = this.system_code
|
|
@@ -164,7 +168,7 @@ export default {
|
|
|
}
|
|
|
let resData = res.data.data || []
|
|
|
console.log(resData)
|
|
|
- resData = resData.filter((v) => v.photos_num) // TODO:开发时 过滤有图片的列表项
|
|
|
+ resData = resData.filter((v) => v.photos_num) // TODO:开发时 过滤有图片的列表项
|
|
|
console.log(resData)
|
|
|
this.list = this.list.concat(resData)
|
|
|
this.count = res.data.count || 0
|
|
@@ -174,6 +178,11 @@ export default {
|
|
|
await sleep(1000)
|
|
|
}
|
|
|
await this.getList()
|
|
|
+ // list无数据,不执行后续分页查询
|
|
|
+ if (!this.list.length) {
|
|
|
+ this.finished = true
|
|
|
+ return true
|
|
|
+ }
|
|
|
this.page++
|
|
|
this.loading = false
|
|
|
if (this.list.length >= this.count) {
|