修改提示

master
unknown 2024-06-04 10:55:39 +08:00
parent e5fea5c439
commit 831808415d
6 changed files with 12 additions and 6 deletions

View File

@ -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(

View File

@ -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,

View File

@ -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;

View File

@ -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

View File

@ -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){

View File

@ -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