From c9ce5e7f9a9ef52c66baf4f8a6e8d9e48b7cb251 Mon Sep 17 00:00:00 2001 From: lzhe <181968431@qq.com> Date: 星期五, 24 五月 2024 23:59:27 +0800 Subject: [PATCH] 1 --- src/views/mdc/state-feedback.vue | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/views/mdc/state-feedback.vue b/src/views/mdc/state-feedback.vue index 50961c8..885d190 100644 --- a/src/views/mdc/state-feedback.vue +++ b/src/views/mdc/state-feedback.vue @@ -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(){ @@ -247,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(); //娓叉煋鍙嶉鍒楄〃 + }) } }) }, -- Gitblit v1.9.3