From 2f0b63bbcce1a53a539b6b722ed539120fb35793 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期六, 07 十月 2023 14:56:24 +0800 Subject: [PATCH] fix: 任务状态添加判空 --- src/views/visualization.vue | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/views/visualization.vue b/src/views/visualization.vue index ea1c833..98b8087 100644 --- a/src/views/visualization.vue +++ b/src/views/visualization.vue @@ -360,9 +360,9 @@ ></p> <div class="right-small-btn bottom-box-btn"> <el-button type="primary"> 鎵撳嵃</el-button> - <el-button v-if="taskData.Procedure.Status==3" type="primary" class="huise"> 瀹屾垚</el-button> + <el-popover - v-else + v-if="taskData.Procedure.Status && taskData.Procedure.Status!==3" placement="top-end" width="160" class="button-finish" @@ -385,6 +385,7 @@ </div> <el-button type="primary" slot="reference"> 瀹屾垚</el-button> </el-popover> + <el-button v-else type="primary" class="huise"> 瀹屾垚</el-button> </div> </div> <i class="el-icon-arrow-right font-arrow-20 color_318583"></i> @@ -603,6 +604,11 @@ @getSetProductNumber="reloadPage" @isTip="isTip" /> + <!-- 宸ヨ壓妯″瀷 --> + <ProcessModel + ref="processModel" + :processList="processList" + /> </div> </template> @@ -621,12 +627,14 @@ import Knowledge from "../components/Knowledge.vue"; import AddControl from "../components/AddControl.vue"; import AddIssue from "../components/AddIssue.vue"; +import ProcessModel from "../components/ProcessModel.vue"; export default { components: { Card, Knowledge, AddControl, AddIssue, + ProcessModel, }, data() { return { @@ -746,6 +754,16 @@ outputMaterials: [], procedureList: [], }, + processList:[ + { + name:'浜у搧1+宸ヨ壓2', + number:'v1.0' + }, + { + name:'浜у搧1+宸ヨ壓2', + number:'v2.0' + } + ] }; }, mounted() { -- Gitblit v1.8.0