From 4889d28c362c1ba2612091f3e5d8f3b98ac7028a Mon Sep 17 00:00:00 2001 From: yaojn Date: Tue, 14 Nov 2023 10:49:25 +0800 Subject: [PATCH 1/3] =?UTF-8?q?-=20[=E4=BF=AE=E5=A4=8D]=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5-=E8=A1=A8=E6=A0=BC=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=B1=9E=E6=80=A7=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E7=9F=A9=E9=98=B5=EF=BC=8C=E5=B1=9E=E6=80=A7=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AF=BC=E5=85=A5=E5=A4=B1=E8=B4=A5=20=20-=20[?= =?UTF-8?q?=E5=85=B3=E8=81=94]#[1021768452505600]=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5-=E8=A1=A8=E6=A0=BC=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=B1=9E=E6=80=A7=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E7=9F=A9=E9=98=B5=EF=BC=8C=E5=B1=9E=E6=80=A7=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AF=BC=E5=85=A5=E5=A4=B1=E8=B4=A5=20http://192.168.?= =?UTF-8?q?0.96:8090/demo/rdm.html#/bug-detail/939050947543040/93905094754?= =?UTF-8?q?3057/1021768452505600?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/component/formtableinputer/index.vue | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue b/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue index e09bc065..cccc12a3 100644 --- a/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue +++ b/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue @@ -16,7 +16,15 @@ > {{ $t('term.pbc.exporttemplate') }} - {{ $t('term.framework.exporttable') }} + + {{ $t('term.framework.exporttable') }} + { try { FileSaver.saveAs(_file, `${this.formItem?.label || ''}_${this.$utils.getCurrenttime('yyyyMMddHHmmss')}.xlsx`); @@ -558,7 +565,7 @@ export default { let {config = {}, handler = ''} = selectedItem || {}; if (!this.$utils.isEmpty(value)) { let {dataSource = '', isMultiple = false} = config || {}; - if (dataSource === 'matrix' && (isMultiple || handler == 'formradio')) { + if (dataSource === 'matrix' && (isMultiple || handler == 'formradio' || handler == 'formcheckbox')) { // 矩阵 resultValue = []; let valueList = []; @@ -566,11 +573,11 @@ export default { valueList = value.split(','); valueList.forEach((valueItem) => { if (valueItem) { - resultValue.push(`${valueItem}&=&${valueItem}`); + resultValue.push(valueItem.indexOf('&=&') != -1 ? valueItem : `${valueItem}&=&${valueItem}`); } }); } else { - resultValue.push(`${value}&=&${value}`); + resultValue.push(valueItem.indexOf('&=&') != -1 ? valueItem : `${value}&=&${value}`); } } else if (dataSource == 'static' && (isMultiple || (handler == 'formcheckbox'))) { resultValue = []; -- Gitee From 203d0943c8e38f3c7c99e6c78ec8efdb2c4a5d71 Mon Sep 17 00:00:00 2001 From: yaojn Date: Tue, 14 Nov 2023 18:37:40 +0800 Subject: [PATCH 2/3] =?UTF-8?q?-=20[=E4=BF=AE=E5=A4=8D]=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E5=A4=84=E7=90=86-=E8=A1=A8=E6=A0=BC=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=9C=AA=E5=90=AF=E7=94=A8=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=EF=BC=8C=E4=BD=86=E6=98=AF=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E5=AF=BC=E5=85=A5=E8=A1=A8=E6=A0=BC=E6=9D=A5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE=20=20=20-=20[=E5=85=B3?= =?UTF-8?q?=E8=81=94]#[1024632071618560]=E5=B7=A5=E5=8D=95=E5=A4=84?= =?UTF-8?q?=E7=90=86-=E8=A1=A8=E6=A0=BC=E8=BE=93=E5=85=A5=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=9C=AA=E5=90=AF=E7=94=A8=E6=B7=BB=E5=8A=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=EF=BC=8C=E4=BD=86=E6=98=AF=E5=8F=AF=E4=BB=A5=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E5=AF=BC=E5=85=A5=E8=A1=A8=E6=A0=BC=E6=9D=A5=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=95=B0=E6=8D=AE=20http://192.168.0.96:8090/demo/rdm?= =?UTF-8?q?.html#/bug-detail/939050947543040/939050947543057/1024632071618?= =?UTF-8?q?560?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/component/formtableinputer/index.vue | 100 +++++++++--------- 1 file changed, 48 insertions(+), 52 deletions(-) diff --git a/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue b/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue index cccc12a3..8265d473 100644 --- a/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue +++ b/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue @@ -1,55 +1,48 @@