From 07ba00bbc814f67050c46f028c5b56966d269c46 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期五, 18 十月 2024 14:21:15 +0800 Subject: [PATCH] 处理树懒加载抖动,生命周期非编辑状态只读 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/lifeCycle/index.vue | 40 +++++++++------------------------------- 1 files changed, 9 insertions(+), 31 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/lifeCycle/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/lifeCycle/index.vue index 6eff104..a9a4804 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/lifeCycle/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/lifeCycle/index.vue @@ -1,6 +1,6 @@ <template> <el-container> - <el-aside width="15.7%"> + <el-aside> <basic-container> <div ref="TreeBox" style="height: calc(100vh - 144px);!important;"> <div class="headerCon"> @@ -14,8 +14,7 @@ </el-button> <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="uploadClickHandler">瀵煎叆 </el-button> - <el-button class="smallBtn" plain size="small" type="primary" - @click="checkViewClickHandler">鏌ョ湅浣跨敤鑼冨洿 + <el-button class="smallBtn" plain size="small" type="primary" @click="checkViewClickHandler">鏌ョ湅浣跨敤鑼冨洿 </el-button> </div> <!-- 宸︿晶鏍� --> @@ -238,6 +237,7 @@ addClickHandler() { this.$store.dispatch('updateMethodBtn', true); this.handleResetTree(); + this.$store.dispatch('typeChange', 'add'); }, // 淇敼鎸夐挳 @@ -247,6 +247,8 @@ return; } this.$store.dispatch('updateMethodBtn', Object.keys(this.rowData).length > 0); + this.$store.dispatch('editNodesStatus', true); + this.$store.dispatch('typeChange', 'edit'); }, // 鍒犻櫎鎸夐挳 @@ -371,6 +373,8 @@ startStatus: params.startStatus, startStatusName: params.startStatusName, description: params.description, + ts:params.ts, + oid:params.oid, bounds: params.nodes.map(node => ({ name: node.id, cellx: String(node.x), @@ -389,10 +393,12 @@ : () => addLifeCycle(transformedData); getFunction().then(res => { + console.log(res); if (res.data.code === 200) { this.$message.success(res.data.obj); this.createdHandler(); // this.handleResetTree(); + this.rowData = {}; this.$store.dispatch('updateMethodBtn', Object.keys(this.rowData).length > 0); } }); @@ -414,35 +420,7 @@ .el-scrollbar__wrap { overflow: auto !important; } - .headerCon{ - .el-button { - width: 65px; - padding-left: 9.5px; - } - } } - -.headerCon { - display: flex; - flex-wrap: wrap; - margin-bottom: 5px; - - .el-button + .el-button { - margin-left: 5px; - } - - .el-button { - margin-top: 5px; - } -} - -.headerCon > .el-button:nth-child(4) { - margin-left: 0; -} - -//.headerCon > .el-button:nth-child(6) { -// margin-left: 0; -//} .smallBtn { width: 77px !important; -- Gitblit v1.9.3