修改提示
parent
e5fea5c439
commit
831808415d
|
|
@ -149,7 +149,8 @@ export default {
|
||||||
},
|
},
|
||||||
async getData(e) {
|
async getData(e) {
|
||||||
if (!e.device_id) {
|
if (!e.device_id) {
|
||||||
return this.$u.toast('没有关联基地')
|
// this.$u.toast('没有关联基地')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const { data } = await http.get(
|
const { data } = await http.get(
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,8 @@ export default {
|
||||||
this.chatList = []
|
this.chatList = []
|
||||||
if (!this.filterParmas.device_id){
|
if (!this.filterParmas.device_id){
|
||||||
this.loadingType = 0
|
this.loadingType = 0
|
||||||
return this.$u.toast('没有关联基地')
|
// this.$u.toast('没有关联基地')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
const { data } = await http.get('/api/monitoring-data', {
|
const { data } = await http.get('/api/monitoring-data', {
|
||||||
params: this.filterParmas,
|
params: this.filterParmas,
|
||||||
|
|
|
||||||
|
|
@ -415,7 +415,8 @@
|
||||||
let _data = data.data;
|
let _data = data.data;
|
||||||
if(_data.length==0){
|
if(_data.length==0){
|
||||||
this.loadingType = 0
|
this.loadingType = 0
|
||||||
return this.$u.toast('没有关联基地');
|
// this.$u.toast('没有关联基地');
|
||||||
|
return
|
||||||
}
|
}
|
||||||
for(let item of _data){
|
for(let item of _data){
|
||||||
item['label'] = item.name;
|
item['label'] = item.name;
|
||||||
|
|
|
||||||
|
|
@ -544,7 +544,8 @@ export default {
|
||||||
let _data = data.data
|
let _data = data.data
|
||||||
if(_data.length==0){
|
if(_data.length==0){
|
||||||
this.loading = 'nomore'
|
this.loading = 'nomore'
|
||||||
return this.$u.toast('没有关联基地')
|
// this.$u.toast('没有关联基地')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
for (let item of _data) {
|
for (let item of _data) {
|
||||||
item['label'] = item.name
|
item['label'] = item.name
|
||||||
|
|
|
||||||
|
|
@ -466,7 +466,8 @@
|
||||||
let _data = data.data;
|
let _data = data.data;
|
||||||
if(_data.length==0){
|
if(_data.length==0){
|
||||||
this.loadingType = 0
|
this.loadingType = 0
|
||||||
return this.$u.toast('没有关联基地');
|
// this.$u.toast('没有关联基地');
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
for(let item of _data){
|
for(let item of _data){
|
||||||
|
|
|
||||||
|
|
@ -536,7 +536,8 @@ export default {
|
||||||
let _data = data.data
|
let _data = data.data
|
||||||
if (_data.length == 0) {
|
if (_data.length == 0) {
|
||||||
this.loadingType = 0
|
this.loadingType = 0
|
||||||
return this.$u.toast('没有关联基地')
|
// this.$u.toast('没有关联基地')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
for (let item of _data) {
|
for (let item of _data) {
|
||||||
item['label'] = item.name
|
item['label'] = item.name
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue