diff --git a/src/views/CloudPressure/index.vue b/src/views/CloudPressure/index.vue
index 579b587e2b..923f01dbae 100644
--- a/src/views/CloudPressure/index.vue
+++ b/src/views/CloudPressure/index.vue
@@ -66,7 +66,6 @@
{{ $translateTitle('pressure.预览') }}
{{ $translateTitle('pressure.删除') }}
@@ -343,7 +344,12 @@
>
{{ $translateTitle('pressure.生成报告') }}
-
+
{{ $translateTitle('pressure.报告信息') }}
@@ -611,6 +617,7 @@
})
console.log(res)
this.$baseMessage(this.$translateTitle('pressure.报告生成成功'))
+ this.fetchData()
},
async preview(fileurl) {
const encodeUrl = encodeURIComponent(Base64.encode(fileurl))
@@ -629,6 +636,11 @@
await putDevice(this.details.objectId, {
basedata: this.details.basedata,
})
+ this.$baseMessage(
+ this.$translateTitle('pressure.任务删除成功'),
+ 'success',
+ 'dgiot-hey-message-success'
+ )
},
async busButton(col, type) {
console.log(col, type)
@@ -766,6 +778,7 @@
})
},
async queryZetaProduct() {
+ window._loading = this.$baseLoading(1)
const { results: zeta = [] } = await queryProductTemplet({
excludeKeys:
'children,thing,decoder,topics,productSecret,view,category,producttemplet,content,profile',
@@ -780,8 +793,10 @@
}
: {},
})
- product?.[0]?.objectId ? (this.product = product?.[0]?.objectId) : ''
- this.product ? this.fetchData() : ''
+ if (product?.[0]?.objectId) {
+ this.product = product?.[0]?.objectId
+ this.fetchData()
+ }
},
async handleView(col, type) {
col.objectId
@@ -972,6 +987,7 @@
? this.$moment.unix(i.profile.endTime).format('YYYY-MM-DD HH:mm:ss')
: this.$translateTitle('pressure.暂未配置')
})
+ window._loading.close()
this.list = results
this.total = count
this.listLoading = false