From db462d943f7457ab25aa39c87639519026907ddc Mon Sep 17 00:00:00 2001 From: xiepeng Date: Wed, 5 Jun 2024 18:00:28 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extraction_and_use/index.vue | 17 +++++++++++++++++ .../components/add.vue | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/views/security_investment/extraction_and_use/index.vue b/src/views/security_investment/extraction_and_use/index.vue index 945ca52..b54c5b3 100644 --- a/src/views/security_investment/extraction_and_use/index.vue +++ b/src/views/security_investment/extraction_and_use/index.vue @@ -109,6 +109,9 @@ {{ item.TOTAL }} + + {{item}} +
@@ -202,8 +205,22 @@ const fnGetSummaries = ({ columns, data }) => { }) || "--"; } else sums[index] = "--"; }); + fnGetTotal(sums); return sums; }; +let totalList = []; +const fnGetTotal = (sums) => { + totalList = sums; + const totalAll = []; + for (let i = 0; i < totalList.length; i++) { + if (i === 1 || i === 2) { + continue; + } + totalAll.push(totalList[i]); + } + totalList = totalAll; +}; + const fnDelete = debounce( 1000, async () => { diff --git a/src/views/three_institutional_libraries/safety_production_responsibility_system/components/add.vue b/src/views/three_institutional_libraries/safety_production_responsibility_system/components/add.vue index a89b015..61693eb 100644 --- a/src/views/three_institutional_libraries/safety_production_responsibility_system/components/add.vue +++ b/src/views/three_institutional_libraries/safety_production_responsibility_system/components/add.vue @@ -139,7 +139,7 @@ const fnSubmit = debounce( ]; formData.append("CATEGORY_LIST", JSON.stringify(CATEGORY_LIST)); formData.append("ASSOCIATION", props.association); - formData.append("ISADD", "1"); + formData.append("OPERATE", props.type); await setThreeInstitutionalLibrariesSave(formData); ElMessage.success("操作成功"); fnClose();