From 6099522cbb92cb5563b64d627a2509b1710cf338 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Thu, 22 Jan 2026 20:05:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][?= =?UTF-8?q?=E5=85=A8=E5=B1=80TableOpertion=E6=96=B0=E5=A2=9Ecolumns?= =?UTF-8?q?=E5=AD=97=E6=AE=B5]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/CustomTable.vue | 2 +- .../Template/operation/TableOpertaion.vue | 13 +++ .../business/comps/template/comps/dl/SYWZPZJHB.vue | 4 +- .../comps/template/comps/gsp/SYWZPZJHB.vue | 4 +- .../comps/template/comps/sp/SWYPBQGZYZBB.vue | 103 +++++++++++---------- .../template/comps/sp/SWYPFXFFXYPZBB/CBYDB.vue | 3 +- .../comps/sp/SWYPFXFFXYPZBB/CBYHGZYWDX.vue | 3 +- .../template/comps/sp/SWYPFXFFXYPZBB/JZXY.vue | 3 +- .../template/comps/sp/SWYPFXFFXYPZBB/QXWDX.vue | 3 +- .../template/comps/sp/SWYPFXFFXYPZBB/RXJZXY.vue | 3 +- .../template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue | 8 +- .../template/comps/sp/SWYPFXFFXYPZBB/XSKKX.vue | 3 +- .../template/comps/sp/SWYPFXFFXYPZBB/XZXHTYX.vue | 3 +- .../template/comps/sp/SWYPFXFFXYPZBB/ZDYBS.vue | 3 +- .../template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue | 3 +- .../comps/template/comps/sp/SWYPFXFFXZKPZB.vue | 3 +- .../comps/template/comps/sp/SWYPNBGZYZBB.vue | 8 +- 17 files changed, 98 insertions(+), 74 deletions(-) diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index ab8491f..134f347 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -127,7 +127,7 @@
- +
diff --git a/src/components/Template/operation/TableOpertaion.vue b/src/components/Template/operation/TableOpertaion.vue index 9900e71..6e6e9ca 100644 --- a/src/components/Template/operation/TableOpertaion.vue +++ b/src/components/Template/operation/TableOpertaion.vue @@ -24,6 +24,10 @@ export default { type: Object, default: () => { }, }, + columns: { + type: Array, + default: [], + }, rowIndex: { type: Number, default: 0, @@ -48,6 +52,15 @@ export default { }, // 分装 onSubPackage() { + console.log(this.row,this.columns,"this.row") + const {columns,row} = this; + const col = columns.find((item)=>item.myCodeFields); + const {myCodeFields} = col; + const fields = []; + myCodeFields.forEach((key)=>{ + fields.push(row[key]) + }) + console.log(fields,"fields") this.$emit("subPackage", this.row) }, // 删除行 diff --git a/src/views/business/comps/template/comps/dl/SYWZPZJHB.vue b/src/views/business/comps/template/comps/dl/SYWZPZJHB.vue index b46b4b7..8bd647f 100644 --- a/src/views/business/comps/template/comps/dl/SYWZPZJHB.vue +++ b/src/views/business/comps/template/comps/dl/SYWZPZJHB.vue @@ -14,8 +14,8 @@ :formData="formData" /> -