From 4d2033854f0770dba993bff26ea09a0a523682fc Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期二, 09 四月 2024 11:48:54 +0800 Subject: [PATCH] 修改 --- web/src/views/modules/taskReliability/TaskPhase.vue | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/web/src/views/modules/taskReliability/TaskPhase.vue b/web/src/views/modules/taskReliability/TaskPhase.vue index 3886fa4..9abdaaf 100644 --- a/web/src/views/modules/taskReliability/TaskPhase.vue +++ b/web/src/views/modules/taskReliability/TaskPhase.vue @@ -27,8 +27,12 @@ <el-table-column prop="phaseSpeed" label="闃舵鏃堕��" align="right"/> <!--<el-table-column prop="phaseSort" label="闃舵椤哄簭" align="center"/>--> <el-table-column prop="operatConditDuration" label="宸ュ喌鏃堕暱鍒嗛厤" align="center"/> - <zt-table-column-handle :table="table" - delete-perm="taskReliability::delete"/> + <zt-table-column-handle :table="table" edit-perm="testReviewComment:update" + delete-perm="taskReliability::delete"> + <template v-slot="{row}"> + <zt-table-button type="primary" @click="openEditWin(row)">淇敼</zt-table-button> + </template> + </zt-table-column-handle> </el-table> <!-- 寮圭獥, 鏂板 / 淇敼 --> <add-or-update @refreshDataList="refreshData" ref="AddOrUpdate"/> @@ -75,17 +79,24 @@ for (let i = 0; i < this.dataList.length; i++) { this.time = this.time + Number(this.dataList[i].phaseDurationRate) } - if (this.time>1){ - this.$alert("褰撳墠杩愯鏃堕暱姣斿凡瓒呭嚭锛岃閲嶆柊璁剧疆") - } + console.log(this.time) }, add() { + console.log(this.time) this.$refs.AddOrUpdate.$refs.dialog.init(null, { taskId: this.dataForm.taskId, productId: this.dataForm.productId, time: this.time }) }, + openEditWin(row){ + console.log(row) + this.$refs.AddOrUpdate.$refs.dialog.init(row.id, { + taskId: this.dataForm.taskId, + productId: this.dataForm.productId, + time: this.time + }) + }, onTaskSelected(row) { this.dataForm.taskId = row.id this.dataForm.productId = row.productId -- Gitblit v1.9.1