From 5fb43d29f47d9b316414b28ea84a6fab3133b856 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期一, 22 四月 2024 22:33:18 +0800 Subject: [PATCH] 完善报警统计 --- src/views/mdc/state-feedback.vue | 26 +++++++------------------- 1 files changed, 7 insertions(+), 19 deletions(-) diff --git a/src/views/mdc/state-feedback.vue b/src/views/mdc/state-feedback.vue index 27adbd7..5816b01 100644 --- a/src/views/mdc/state-feedback.vue +++ b/src/views/mdc/state-feedback.vue @@ -2,7 +2,7 @@ * @Author: lzhe lzhe@example.com * @Date: 2024-03-26 10:28:33 * @LastEditors: lzhe lzhe@example.com - * @LastEditTime: 2024-04-18 17:10:39 + * @LastEditTime: 2024-04-19 18:18:19 * @FilePath: /smart-web/src/views/master/person/main/index.vue * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE --> @@ -59,7 +59,7 @@ </template> <script> import { useTransitionFallthroughEmits } from 'element-plus'; -import saveDialog from './add-feedback' + import saveDialog from './add-feedback' export default { name: "state-feedback", data(){ @@ -122,8 +122,11 @@ getfeedBackStatusList() { this.$HTTP.get("/api/blade-cps/global_wcs/wcs-achievements").then(res=> { if(res.code == 200) { - this.feedBackStatusList.push(res.data[0]); - this.feedBackStatusList.push(res.data[1]); + res.data.forEach(item=> { + if(item.type == "4") { + this.feedBackStatusList.push(item); + } + }) } }) }, @@ -273,21 +276,6 @@ this.$HTTP.post("/api/blade-cps/workstation-wcs-feedback/page?current=1&size=15",obj).then(res=> { if(res.code == 200) { this.searchDataList = res.data.records; - } - }) - }, - loadNode(node, resolve, reject) { - if(node.data.id) { - this.parentId = node.data.id; - }else { - this.parentId = '0'; - } - this.$HTTP.get("/api/blade-system/menu/lazy-list",{parentId: this.parentId}).then(res=> { - if(res.code == 200) { - res.data.forEach(node => { - node.hasChildren = !node.hasChildren; - }); - resolve(res.data); } }) }, -- Gitblit v1.9.3