|
@@ -238,15 +238,16 @@ export default {
|
238
|
238
|
async handleGetUpdateTime() {
|
239
|
239
|
console.log('handleGetUpdateTime => ')
|
240
|
240
|
try {
|
241
|
|
- // const { data: res = {} } = await this.$axios.get(this.URL.xxx, {
|
242
|
|
- // params: {}
|
243
|
|
- // })
|
244
|
|
- // if (res && res.errno == 0) {
|
245
|
|
- // this.updateTime = res.rst.updateTime
|
246
|
|
- // } else if (res.errno != 4002) {
|
247
|
|
- // this.$message.warning(res.err)
|
248
|
|
- // this.updateTime = ''
|
249
|
|
- // }
|
|
241
|
+ const params = { type: '' }
|
|
242
|
+ if (this.isMP) params.type = 'playlet_data_trend_mp'
|
|
243
|
+ if (this.isADQ) params.type = 'playlet_data_trend_adq'
|
|
244
|
+ const { data: res = {} } = await this.$axios.get(`${this.URL.BASEURL}${this.URL.dataBoard_uptime}`, { params })
|
|
245
|
+ if (res && res.errno == 0) {
|
|
246
|
+ this.updateTime = res.rst.uptime
|
|
247
|
+ } else if (res.errno != 4002) {
|
|
248
|
+ this.$message.warning(res.err)
|
|
249
|
+ this.updateTime = ''
|
|
250
|
+ }
|
250
|
251
|
} catch (error) {
|
251
|
252
|
this.updateTime = ''
|
252
|
253
|
}
|