From b5bc0d6eb2d2e55ea830a1b286252b9754cbf8e9 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期三, 21 八月 2024 11:21:04 +0800 Subject: [PATCH] 更新主从表添加、修改、删除时对从表的对应操作 --- WIDESEAWCS_Client/src/extension/taskinfo/extend/taskExecuteDetail.vue | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/WIDESEAWCS_Client/src/extension/taskinfo/extend/taskExecuteDetail.vue b/WIDESEAWCS_Client/src/extension/taskinfo/extend/taskExecuteDetail.vue index 007219d..ba2d70d 100644 --- a/WIDESEAWCS_Client/src/extension/taskinfo/extend/taskExecuteDetail.vue +++ b/WIDESEAWCS_Client/src/extension/taskinfo/extend/taskExecuteDetail.vue @@ -52,16 +52,16 @@ ></el-step> </el-steps> </div> - <el-row height="50"> + <el-row height="50" v-show="previousShow || nextShow"> <el-col :span="12"> - <div class="grid-content content-text"> + <div v-show="previousShow" class="grid-content content-text"> <el-button type="danger" @click="previous" >鍥炴粴鍒颁笂涓�姝�</el-button > </div> </el-col> <el-col :span="12"> - <div class="grid-content content-text"> + <div v-show="nextShow" class="grid-content content-text"> <el-button type="warning" @click="next">璺宠浆鍒颁笅涓�姝�</el-button> </div> </el-col> @@ -105,6 +105,8 @@ viewType: 1, height: "200px", tableData: [], + previousShow: false, + nextShow: false, }; }, methods: { @@ -116,6 +118,14 @@ } else { this.getDetailDatas(); } + + this.$emit("parentCall", ($vue) => { + var previousButton = $vue.buttons.find((x) => x.value == "Previous"); + this.previousShow = previousButton != null; + + var nextButton = $vue.buttons.find((x) => x.value == "Next"); + this.nextShow = nextButton != null; + }); }, getSteps() { this.http @@ -178,7 +188,8 @@ } }, tableRowClassName({ row, rowIndex }) { - if (row.isNormal) { + if (!row.isNormal) { + return "error-row"; } else if (row.isManual) { return "warning-row"; } @@ -210,7 +221,7 @@ </style> <style> .el-table .warning-row { - background: #e6a23c; + background: #fcf1e2; } .el-table .success-row { @@ -218,6 +229,6 @@ } .el-table .error-row { - background: #f56c6c; + background: #fde2e2; } </style> \ No newline at end of file -- Gitblit v1.9.3