等待接口返回数据的提示消息内容,及错误提示调整
This commit is contained in:
parent
f442e5e758
commit
f4917341b6
|
@ -254,9 +254,11 @@ export default {
|
||||||
// 查询台站数据提供率及有效率
|
// 查询台站数据提供率及有效率
|
||||||
async getDataProvisionEfficiency(arr, str) {
|
async getDataProvisionEfficiency(arr, str) {
|
||||||
if (str) {
|
if (str) {
|
||||||
this.$message.loading({ content: 'Loading...', key, duration: 9 })
|
this.$message.loading({ content: 'Loading station data, please wait...', key, duration: 0 })
|
||||||
}
|
}
|
||||||
getAction('/stationOperation/getDataProvisionEfficiency').then(res => {
|
getAction('/stationOperation/getDataProvisionEfficiency').then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.destroy()
|
||||||
str&&this.$message.success({ content: 'Loaded!', key, duration: 2 })
|
str&&this.$message.success({ content: 'Loaded!', key, duration: 2 })
|
||||||
res.result.forEach(item => {
|
res.result.forEach(item => {
|
||||||
arr.forEach(el => {
|
arr.forEach(el => {
|
||||||
|
@ -268,7 +270,11 @@ export default {
|
||||||
})
|
})
|
||||||
this.orgStationList = res.result
|
this.orgStationList = res.result
|
||||||
this.upDateStationList = res.result
|
this.upDateStationList = res.result
|
||||||
|
} else {
|
||||||
|
this.$message.warning("This operation fails. Contact your system administrator")
|
||||||
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
|
this.$message.destroy()
|
||||||
console.error(error)
|
console.error(error)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user