From 6cf8eb70b48bb28d9e3360b26937216bac473f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Tue, 7 May 2024 10:23:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/home.js | 8 +- src/views/copilot/efficiency/assets/icon.png | Bin 0 -> 5165 bytes .../efficiency/components/BipvOutput.vue | 38 +++ .../efficiency/components/ChipInvest.vue | 106 ++++++++ .../efficiency/components/ChipOutput.vue | 38 +++ .../efficiency/components/FtoInvest.vue | 108 ++++++++ .../efficiency/components/StdOutput.vue | 38 +++ .../components/sub/bar/BarChartBase.vue | 257 ++++++++++++++++++ .../components/sub/city/CityData.vue | 149 ++++++++++ .../components/sub/city/CityItem.vue | 59 ++++ .../components/sub/city/CityName.vue | 55 ++++ .../components/sub/city/CityValue.vue | 127 +++++++++ .../components/sub/gradient/GradientText.vue | 64 +++++ .../components/sub/ring/DoubleRingChart.vue | 221 +++++++++++++++ .../components/sub/ring/DoubleRingWrapper.vue | 86 ++++++ src/views/copilot/efficiency/index.vue | 19 +- .../options/double-ring-chart-options.js | 145 ++++++++++ 17 files changed, 1507 insertions(+), 11 deletions(-) create mode 100644 src/views/copilot/efficiency/assets/icon.png create mode 100644 src/views/copilot/efficiency/components/BipvOutput.vue create mode 100644 src/views/copilot/efficiency/components/ChipInvest.vue create mode 100644 src/views/copilot/efficiency/components/ChipOutput.vue create mode 100644 src/views/copilot/efficiency/components/FtoInvest.vue create mode 100644 src/views/copilot/efficiency/components/StdOutput.vue create mode 100644 src/views/copilot/efficiency/components/sub/bar/BarChartBase.vue create mode 100644 src/views/copilot/efficiency/components/sub/city/CityData.vue create mode 100644 src/views/copilot/efficiency/components/sub/city/CityItem.vue create mode 100644 src/views/copilot/efficiency/components/sub/city/CityName.vue create mode 100644 src/views/copilot/efficiency/components/sub/city/CityValue.vue create mode 100644 src/views/copilot/efficiency/components/sub/gradient/GradientText.vue create mode 100644 src/views/copilot/efficiency/components/sub/ring/DoubleRingChart.vue create mode 100644 src/views/copilot/efficiency/components/sub/ring/DoubleRingWrapper.vue create mode 100644 src/views/copilot/efficiency/options/double-ring-chart-options.js diff --git a/src/store/modules/home.js b/src/store/modules/home.js index ca92d85..5046842 100644 --- a/src/store/modules/home.js +++ b/src/store/modules/home.js @@ -90,7 +90,7 @@ export default { }; function splitCurrentAndPrevious(factoryListResponse, targetListResponse) { - // 初始数据 + // 初始数据 const { chipInvest, ftoInvest, chipOutput, stdOutput, bipvOutput } = init(); if (factoryListResponse) { for (const factory of factoryListResponse) { @@ -150,7 +150,7 @@ function getFactoryTargetValue(targetList, factoryId) { } /** - * + * * @returns 初始化状态值 */ function init() { @@ -254,10 +254,10 @@ async function doFetch(copilot_module = "yield", fetch_target, params) { } /** - * + * * @param {*} period 日周月年1,2,3,4 * @param {*} target 是否获取目标数据 - * @returns + * @returns */ function getCopilotYield(period, target = false) { return getCopilotData("yield", period, target); diff --git a/src/views/copilot/efficiency/assets/icon.png b/src/views/copilot/efficiency/assets/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..03c1a4cdea4f91a7d1cf0b62a3d8e06a0a97b81e GIT binary patch literal 5165 zcmYLtcQhPc)a^8#A$k~$65SvYhKOFHg~$)lTM$Hv-g_IJL>ml|NKrC~-s|X56TJqB zZuI)edvAU3thLwP=d69#UH9H~?jI-iskSNwDHACG0H9D;Q_{O-wSOQc1OR{>f5S&^ z6NsI>mOKD}O(MIrB)H9;Yz@_4YH0!ZZ#6Lh0%QXGs{(H!17!YRtpel)fd5Y&1OP-k z03iR*qkYT&BKa2o*8E=vVL<=uP{V-#zy4=EXDw!U#h$PjE2}0KsxV{|(-MymDzbB9*u&%$xJbCz9fMM~cABn&hURx0 z)&qC_Pv)CqOJ&4{9}oKu;V-1u8+V(Sc|9H~)EE+2Y8l$zjarJZ&H3`Z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-B#vsxcSrZ24!+39!Kdx=6r!H1U%x)t?8>)Z67 zj1(?^-fX_`JEI`Q-9$kLB?kGbGio^Zr96zIDxS1(;@{Q%ri&3D>{v)a&p^e5Rektk z1UAUht$Vx~%{JP1Tba%rLV_FrEZCn;fqV}|`{tHWStBQjxYeML*F-Ry96JxEV}~rK z)aoSG`&gLUnYTa?#}eDQP4FUK;|pHBiFZ0HtpiR9`3+ExTD|(XDYw{g4xz&vZ9*zY zs2OC?RnF7ps;4-nMSuJ|`A^BC?V`GVq z2((ij$o$zyv^no8{uV8FbC4xOeZZIF7TTC>aJ8jjW&(?YAnomE!er=UoD+X0TDyia z_HwGkb5MB{Z3Pa7eMGRiH25Ah?Yq#59> z*3Cx)sP&tLsx(g+g7(eWzI~9iIBkq_II2tfV^bc>OiJ(HOYZe4(C@Q2TPvxQEAyFQ W*R65rJI{afH+5xgr7{JJu>S!L;;Q`s literal 0 HcmV?d00001 diff --git a/src/views/copilot/efficiency/components/BipvOutput.vue b/src/views/copilot/efficiency/components/BipvOutput.vue new file mode 100644 index 0000000..1f77c21 --- /dev/null +++ b/src/views/copilot/efficiency/components/BipvOutput.vue @@ -0,0 +1,38 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/ChipInvest.vue b/src/views/copilot/efficiency/components/ChipInvest.vue new file mode 100644 index 0000000..9fea832 --- /dev/null +++ b/src/views/copilot/efficiency/components/ChipInvest.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/src/views/copilot/efficiency/components/ChipOutput.vue b/src/views/copilot/efficiency/components/ChipOutput.vue new file mode 100644 index 0000000..9286c61 --- /dev/null +++ b/src/views/copilot/efficiency/components/ChipOutput.vue @@ -0,0 +1,38 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/FtoInvest.vue b/src/views/copilot/efficiency/components/FtoInvest.vue new file mode 100644 index 0000000..b41bd1b --- /dev/null +++ b/src/views/copilot/efficiency/components/FtoInvest.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/src/views/copilot/efficiency/components/StdOutput.vue b/src/views/copilot/efficiency/components/StdOutput.vue new file mode 100644 index 0000000..ca0a8f2 --- /dev/null +++ b/src/views/copilot/efficiency/components/StdOutput.vue @@ -0,0 +1,38 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartBase.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartBase.vue new file mode 100644 index 0000000..5369183 --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/bar/BarChartBase.vue @@ -0,0 +1,257 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/city/CityData.vue b/src/views/copilot/efficiency/components/sub/city/CityData.vue new file mode 100644 index 0000000..dca4e9c --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/city/CityData.vue @@ -0,0 +1,149 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/city/CityItem.vue b/src/views/copilot/efficiency/components/sub/city/CityItem.vue new file mode 100644 index 0000000..9145f26 --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/city/CityItem.vue @@ -0,0 +1,59 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/city/CityName.vue b/src/views/copilot/efficiency/components/sub/city/CityName.vue new file mode 100644 index 0000000..bf3ffd1 --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/city/CityName.vue @@ -0,0 +1,55 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/city/CityValue.vue b/src/views/copilot/efficiency/components/sub/city/CityValue.vue new file mode 100644 index 0000000..2521efc --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/city/CityValue.vue @@ -0,0 +1,127 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/gradient/GradientText.vue b/src/views/copilot/efficiency/components/sub/gradient/GradientText.vue new file mode 100644 index 0000000..bb45881 --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/gradient/GradientText.vue @@ -0,0 +1,64 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/ring/DoubleRingChart.vue b/src/views/copilot/efficiency/components/sub/ring/DoubleRingChart.vue new file mode 100644 index 0000000..760946b --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/ring/DoubleRingChart.vue @@ -0,0 +1,221 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/ring/DoubleRingWrapper.vue b/src/views/copilot/efficiency/components/sub/ring/DoubleRingWrapper.vue new file mode 100644 index 0000000..d7348c1 --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/ring/DoubleRingWrapper.vue @@ -0,0 +1,86 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/index.vue b/src/views/copilot/efficiency/index.vue index 7ea9aab..1afd590 100644 --- a/src/views/copilot/efficiency/index.vue +++ b/src/views/copilot/efficiency/index.vue @@ -1,13 +1,16 @@ -