From b46e6d2306515f94bf77c06e8d80ac76267e3ddb Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期日, 02 六月 2024 21:44:23 +0800 Subject: [PATCH] 搜索 --- src/views/mdc/state-feedback.vue | 43 ++++++++++++++----------------------------- 1 files changed, 14 insertions(+), 29 deletions(-) diff --git a/src/views/mdc/state-feedback.vue b/src/views/mdc/state-feedback.vue index 27adbd7..885d190 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); + } + }) } }) }, @@ -244,16 +247,13 @@ } this.$HTTP.post("/api/blade-cps/group/groupWorkstation/type",obj).then(res=> { if(res.code == 200) { - if (res.code == 200) { - var treeDisabled = this.addTreeDisable(res.data); - this.tableData = this.buildTree(treeDisabled); //浠庢墎骞冲寲鍙樹负鏍戠姸缁撴瀯 - this.$nextTick(()=> { - this.lastLevelId = this.getLastLevelIds(this.tableData).lastLevelId; - this.$refs.treeRef.setCurrentKey(this.lastLevelId); //绗竴涓妭鐐圭殑绗竴涓瓙鑺傜偣鏈�鍚庝竴绾ч粯璁ら�変腑 - this.getlist(); //娓叉煋鍙嶉鍒楄〃 - }) - - } + var treeDisabled = this.addTreeDisable(res.data); + this.tableData = this.buildTree(treeDisabled); //浠庢墎骞冲寲鍙樹负鏍戠姸缁撴瀯 + this.$nextTick(()=> { + this.lastLevelId = this.getLastLevelIds(this.tableData).lastLevelId; + this.$refs.treeRef.setCurrentKey(this.lastLevelId); //绗竴涓妭鐐圭殑绗竴涓瓙鑺傜偣鏈�鍚庝竴绾ч粯璁ら�変腑 + this.getlist(); //娓叉煋鍙嶉鍒楄〃 + }) } }) }, @@ -273,21 +273,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