From 7acbfc9ec91fc7cc6f0f57541331900165311bf5 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期三, 06 八月 2025 20:18:32 +0800
Subject: [PATCH] update
---
src/views/flow/components/TodolistLeft.vue | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/views/flow/components/TodolistLeft.vue b/src/views/flow/components/TodolistLeft.vue
index 5ffe401..171c421 100644
--- a/src/views/flow/components/TodolistLeft.vue
+++ b/src/views/flow/components/TodolistLeft.vue
@@ -1,12 +1,12 @@
<!--
* @Date: 2025-07-01 20:45:15
* @LastEditors: gaoshp
- * @LastEditTime: 2025-08-02 14:22:15
+ * @LastEditTime: 2025-08-06 20:16:01
* @FilePath: /mdmweb/src/views/flow/components/TodolistLeft.vue
-->
<template>
<basic-container>
- <div class="tool" v-show="row.taskDefinitionKey === 'programmingTask'">
+ <div class="tool" v-show="['programmingTask','cureProgramTask'].includes(row.taskDefinitionKey)">
<avue-form :option="attOption"
v-model="attForm"
:upload-after="uploadAfter" class="att-box"></avue-form>
@@ -17,8 +17,8 @@
<el-table-column prop="name" label="绋嬪簭鍚嶇О">
</el-table-column>
<el-table-column fixed="right" label="鎿嶄綔" width="60" align="center">
- <template #default="scope" v-show="row.taskDefinitionKey === 'programmingTask'">
- <el-button type="text" size="small" @click.stop="del(scope.$index,scope.row)">鍒犻櫎</el-button>
+ <template #default="scope" >
+ <el-button v-show="['programmingTask','cureProgramTask'].includes(row.taskDefinitionKey)" type="text" size="small" @click.stop="del(scope.$index,scope.row)">鍒犻櫎</el-button>
</template>
</el-table-column>
</el-table>
@@ -50,6 +50,7 @@
},
data() {
return {
+ showContentId: '',
attForm: {
att: '',
}, //绋嬪簭涓婁紶琛ㄥ崟
@@ -173,6 +174,8 @@
this.$emit('selection-change',this.tableData)
},
showContent (row, column, event) {
+ if(!row?.id) return this.appContent = '';
+ this.showContentId = row.id
getContent(row.id).then(res => {
if(res.data.code === 200) {
this.appContent = res.data.data
@@ -182,6 +185,10 @@
})
},
del (index,row) {
+ if(row.id === this.showContentId) {
+ this.showContentId = '';
+ this.showContent(null, null, null);
+ }
removeAtt(row.id).then(res => {
if(res.data.code === 200) {
this.$message.success('鍒犻櫎鎴愬姛');
--
Gitblit v1.9.3