From 65972957e56a31778cc1633b1032ac16627665f3 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期六, 05 十月 2024 21:28:25 +0800 Subject: [PATCH] update --- src/views/console/workstation/CollDialog.vue | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/views/console/workstation/CollDialog.vue b/src/views/console/workstation/CollDialog.vue index 2b6bdd5..01f827b 100644 --- a/src/views/console/workstation/CollDialog.vue +++ b/src/views/console/workstation/CollDialog.vue @@ -31,7 +31,7 @@ <template #default="scope"> <el-button-group> <el-button text type="primary" size="small" @click="table_edit(scope.row)">缂栬緫</el-button> - <!-- <el-button text type="primary" size="small">澶嶅埗</el-button> --> + <el-button text type="primary" size="small" @click="copy(scope.row)">澶嶅埗</el-button> <el-popconfirm width="220" title="纭畾灏嗛�夋嫨鐨勬暟鎹垹闄�" @confirm="del(scope.$index)"> <template #reference> <el-button text type="primary" size="small">鍒犻櫎</el-button> @@ -143,6 +143,9 @@ del(index) { this.tabledata.splice(index, 1) }, + copy(row) { + this.tabledata.push(Object.assign({}, row, { status: '1' })) + }, //琛ㄥ崟鎻愪氦鏂规硶 submit() { let isRequiredKey = this.cols.filter(v => v.isRequired).map(v => v.prop) -- Gitblit v1.9.3