From 7c9ce5f1625b6468d1775f9814834ca1832e0d20 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期一, 07 七月 2025 23:02:03 +0800 Subject: [PATCH] 导出zip --- src/views/flow/components/TodolistLeft.vue | 31 ++++++++++++++++++++----------- 1 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/views/flow/components/TodolistLeft.vue b/src/views/flow/components/TodolistLeft.vue index 9201af8..82f50cd 100644 --- a/src/views/flow/components/TodolistLeft.vue +++ b/src/views/flow/components/TodolistLeft.vue @@ -1,7 +1,7 @@ <!-- * @Date: 2025-07-01 20:45:15 * @LastEditors: gaoshp - * @LastEditTime: 2025-07-01 23:50:05 + * @LastEditTime: 2025-07-07 20:00:11 * @FilePath: /mdmweb/src/views/flow/components/TodolistLeft.vue --> <template> @@ -9,12 +9,15 @@ <div class="tool" v-show="row.taskDefinitionKey === 'programmingTask'"> <el-button type="primary" @click="addApp">娣诲姞绋嬪簭</el-button> </div> - <el-table :data="tableData" border @row-click="showContent"> - <el-table-column prop="code" label="缂栧彿"> + <el-table :data="tableData" border @row-click="showContent" max-height="200"> + <el-table-column prop="machineCode" label="鍔犲伐鏈哄簥"> </el-table-column> <el-table-column prop="name" label="绋嬪簭鍚嶇О"> </el-table-column> - <el-table-column prop="name" label="宸ュ簭鍚嶇О"> + <el-table-column fixed="right" label="鎿嶄綔" width="100"> + <template #default="scope" v-show="row.taskDefinitionKey === 'programmingTask'"> + <el-button type="text" size="small" @click.stop="del(scope.$index,scope.row)">鍒犻櫎</el-button> + </template> </el-table-column> </el-table> <h4>绋嬪簭鍐呭</h4> @@ -75,17 +78,17 @@ dialogClickModal: false, column: [ { - label: 'machineCode', - prop: '璁惧缂栧彿', + label: '鍔犲伐鏈哄簥', + prop: 'machineCode', }, { label: '绋嬪簭鍚嶇О', prop: 'name', }, - { - label: '宸ュ簭鍚嶇О', - prop: 'processName', - }, + // { + // label: '宸ュ簭鍚嶇О', + // prop: 'processName', + // }, ], }, } @@ -140,6 +143,10 @@ this.appContent = '绋嬪簭鍐呭鍔犺浇澶辫触' } }) + }, + del (index,row) { + this.tableData = this.tableData.filter(item => item.id !== row.id); + this.$emit('selection-change',this.tableData) } }, } @@ -156,7 +163,9 @@ } .app-content { background-color: #fffee1; - padding: 10px; + padding: 10px 30px; min-height: 100px; + overflow: auto; + max-height: 400px; } </style> \ No newline at end of file -- Gitblit v1.9.3