From 11be41a44663bf8c3cd4d6c379786cff090be56f Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 9 Feb 2026 16:43:25 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=80=81=E5=AE=A2=E6=88=B7-=E5=88=86?= =?UTF-8?q?=E6=9E=90:=20=E5=9B=BD=E7=B1=8D:=20=E6=8C=89=E8=AF=AD=E7=A7=8D?= =?UTF-8?q?=E6=B1=87=E6=80=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/CustomerStore.js | 45 ++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/src/stores/CustomerStore.js b/src/stores/CustomerStore.js index 250544a..3129de3 100644 --- a/src/stores/CustomerStore.js +++ b/src/stores/CustomerStore.js @@ -634,7 +634,50 @@ class CustomerStore { eurusdSummary.key = '欧美4国'; eurusdSummary.country = '欧美4国'; - this.sales_regular_data.countrySummary = [aseanSummary, eurusdSummary]; + // 西班牙语国家/地区 + const esLgc = ['阿根廷','玻利维亚','智利','哥伦比亚','哥斯达黎加','古巴','多米尼加共和国','厄瓜多尔','萨尔瓦多','赤道几内亚','危地马拉','洪都拉斯','墨西哥','尼加拉瓜','巴拿马','巴拉圭','秘鲁','波多黎各','西班牙','乌拉圭','委内瑞拉']; + const [esLgc1, esLgc2] = [ + pivot1.filter((ele) => esLgc.includes(ele.country)), + pivot2.filter((ele) => esLgc.includes(ele.country)), + ]; + const esLgcSummary = calcSummaryRow(esLgc1, esLgc2); + esLgcSummary.key = '西班牙语国家/地区'; + esLgcSummary.country = '西班牙语国家/地区'; + + // 意大利语国家/地区 + const itLgc = ['意大利','圣马力诺','梵蒂冈','瑞士',]; + const [itLgc1, itLgc2] = [ + pivot1.filter((ele) => itLgc.includes(ele.country)), + pivot2.filter((ele) => itLgc.includes(ele.country)), + ]; + const itLgcSummary = calcSummaryRow(itLgc1, itLgc2); + itLgcSummary.key = '意大利语国家/地区'; + itLgcSummary.country = '意大利语国家/地区'; + + // 德语国家/地区 + const deLgc = ['德国','奥地利','瑞士','列支敦士登','卢森堡','比利时',]; + const [deLgc1, deLgc2] = [ + pivot1.filter((ele) => deLgc.includes(ele.country)), + pivot2.filter((ele) => deLgc.includes(ele.country)), + ]; + const deLgcSummary = calcSummaryRow(deLgc1, deLgc2); + deLgcSummary.key = '德语国家/地区'; + deLgcSummary.country = '德语国家/地区'; + + // 葡萄牙语国家 + const ptLgc = ['葡萄牙','巴西','安哥拉','莫桑比克','几内亚比绍','佛得角','圣多美和普林西比','东帝汶',]; + const [ptLgc1, ptLgc2] = [ + pivot1.filter((ele) => ptLgc.includes(ele.country)), + pivot2.filter((ele) => ptLgc.includes(ele.country)), + ]; + const ptLgcSummary = calcSummaryRow(ptLgc1, ptLgc2); + ptLgcSummary.key = '葡萄牙语国家/地区'; + ptLgcSummary.country = '葡萄牙语国家/地区'; + + this.sales_regular_data.countrySummary = [ + aseanSummary, eurusdSummary, + esLgcSummary, itLgcSummary, deLgcSummary, ptLgcSummary, + ]; } if (pivotRow === 'destinations') { const city1 = ['昆明','大理','丽江','中甸','德钦','西双版纳','普洱','泸沽湖','腾冲'];