diff --git a/common/http.api.js b/common/http.api.js index 915e9d3..9e999a8 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -54,6 +54,8 @@ const install = (Vue, vm) => { //预警处理 warnsProcess:(params = {})=>vm.$u.post(config.adminPath+'/sis/alarmEvents/complete',params), + getWarnDetail:(params = {}, id) => vm.$u.get(config.adminPath+`/sis/alarmEvents/${id}`,params), + //巡检任务列表 getInspection:(params = {})=>vm.$u.get(config.adminPath+'/property/item/list',params), diff --git a/pages/sys/workbench/earlyWarning/warnDetail.vue b/pages/sys/workbench/earlyWarning/warnDetail.vue index 345d616..7beeb1a 100644 --- a/pages/sys/workbench/earlyWarning/warnDetail.vue +++ b/pages/sys/workbench/earlyWarning/warnDetail.vue @@ -120,6 +120,7 @@ export default { this.pageType = options.pageType; } }, + computed: { warnInfoList() { return [ @@ -134,7 +135,17 @@ export default { ]; } }, + created() { + this.loadDetail(); + }, methods: { + async loadDetail() { + let res = await this.$u.api.getWarnDetail({}, this.warnInfo.id); + if (res.code == "200") { + + } + this.loading = false; + }, // 处理文件列表变化 onListChange(list) { this.selectedImages = list; @@ -149,6 +160,7 @@ export default { this.handleStatus = status; this.showStatusPopup = false; }, + async submit() { this.loading = true; if (this.selectedImages.length <= 0) { diff --git a/pages/sys/workbench/monitor/TreeNode.vue b/pages/sys/workbench/monitor/TreeNode.vue index 956f22b..b243f6d 100644 --- a/pages/sys/workbench/monitor/TreeNode.vue +++ b/pages/sys/workbench/monitor/TreeNode.vue @@ -1,6 +1,6 @@