From ff423f62a2b3626be037ce197bfadd03da021575 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Tue, 6 Dec 2022 18:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90ADD=E3=80=91-WP29=20=E5=92=8CISO?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/screen/HomePage.vue | 14 +- src/views/screen/iso/ExpertChart.vue | 169 +++++++++ src/views/screen/iso/LeadingStandardChart.vue | 274 ++++++++++++++ src/views/screen/iso/MeetingCalendar.vue | 349 +++++++++++++++++ src/views/screen/iso/index.vue | 210 +++++++++++ src/views/screen/util/LineOptions.js | 145 ++++++- src/views/screen/wp29/ExpertQuantityChart.vue | 89 +++++ src/views/screen/wp29/MeetingCalendar.vue | 356 ++++++++++++++++++ .../screen/wp29/MeetingInformationChart.vue | 297 +++++++++++++++ .../screen/wp29/RegulationQuantityChart.vue | 131 +++++++ src/views/screen/wp29/index.vue | 216 +++++++++++ 11 files changed, 2228 insertions(+), 22 deletions(-) create mode 100644 src/views/screen/iso/ExpertChart.vue create mode 100644 src/views/screen/iso/LeadingStandardChart.vue create mode 100644 src/views/screen/iso/MeetingCalendar.vue create mode 100644 src/views/screen/iso/index.vue create mode 100644 src/views/screen/wp29/ExpertQuantityChart.vue create mode 100644 src/views/screen/wp29/MeetingCalendar.vue create mode 100644 src/views/screen/wp29/MeetingInformationChart.vue create mode 100644 src/views/screen/wp29/RegulationQuantityChart.vue create mode 100644 src/views/screen/wp29/index.vue diff --git a/src/views/screen/HomePage.vue b/src/views/screen/HomePage.vue index 6acd9f8..163f360 100644 --- a/src/views/screen/HomePage.vue +++ b/src/views/screen/HomePage.vue @@ -20,13 +20,13 @@ @@ -36,17 +36,15 @@ import IncomePaymentScreen from './incomePayments/index' import PreparationRevisionScreen from './preparationRevision/index' import WPScreen from './wp29/index' +import ISOScreen from './iso/index' export default { name: 'HomePage', components: { IncomePaymentScreen, - PreparationRevisionScreen - }, - created() { - // StanderProjectGeneralSituation().then(res => { - // console.log(res) - // }) + PreparationRevisionScreen, + WPScreen, + ISOScreen }, } diff --git a/src/views/screen/iso/ExpertChart.vue b/src/views/screen/iso/ExpertChart.vue new file mode 100644 index 0000000..a916287 --- /dev/null +++ b/src/views/screen/iso/ExpertChart.vue @@ -0,0 +1,169 @@ + + + + + + \ No newline at end of file diff --git a/src/views/screen/iso/LeadingStandardChart.vue b/src/views/screen/iso/LeadingStandardChart.vue new file mode 100644 index 0000000..4d420a7 --- /dev/null +++ b/src/views/screen/iso/LeadingStandardChart.vue @@ -0,0 +1,274 @@ + + + + + + \ No newline at end of file diff --git a/src/views/screen/iso/MeetingCalendar.vue b/src/views/screen/iso/MeetingCalendar.vue new file mode 100644 index 0000000..5cafdf4 --- /dev/null +++ b/src/views/screen/iso/MeetingCalendar.vue @@ -0,0 +1,349 @@ + + + + + + + \ No newline at end of file diff --git a/src/views/screen/iso/index.vue b/src/views/screen/iso/index.vue new file mode 100644 index 0000000..5c69791 --- /dev/null +++ b/src/views/screen/iso/index.vue @@ -0,0 +1,210 @@ + + + + + + \ No newline at end of file diff --git a/src/views/screen/util/LineOptions.js b/src/views/screen/util/LineOptions.js index e2633bf..1ba2abd 100644 --- a/src/views/screen/util/LineOptions.js +++ b/src/views/screen/util/LineOptions.js @@ -32,19 +32,7 @@ export const LineOptions = { legend: { data: [ '确认收入金额', '开票金额', '到账金额'], - // icon: 'path://M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0', icon: 'path://M 30 10 A 20 20 0 1 0 30 50 A 20 20 0 1 0 30 10 Z M 30 15 A 15 15 0 1 1 30 45 A 15 15 0 1 1 30 15 Z', - // 去除图例中的线 - // lineStyle: { - // // opacity: 0 - // join: 'miter', - // color: '#ff0' - // }, - // itemStyle: { - // color: '#f0f', - // borderJoin: 'round', - // opacity: 0.5 - // }, //图例的公用文本样式。 textStyle: { color: '#7599E8' @@ -52,7 +40,6 @@ export const LineOptions = { // itemWidth: 14, // itemHeight: 14, right: '2%', - }, grid: { left: '2.4%', @@ -105,12 +92,142 @@ export const LineOptions = { }, } + +export const ISOLineOptions = { + color: ['#4471EF', '#00D8F1', '#6CFBCE'], + tooltip: { + trigger: 'axis', + formatter: params => { + // 获取xAxis data中的数据 + let dataStr = '' + params.forEach(item => { + dataStr += `
+
+ + ${item.seriesName} + ${item.data} +
+
` + }) + return dataStr + }, + borderWidth: 0, + //提示框浮层的背景颜色 + backgroundColor: '#233062', + //额外附加到浮层的 css 样式。如下为浮层添加阴影的示例: + extraCssText: 'box-shadow: 0 0 4px #7599E8 inset;' + }, + + legend: { + data: [ '国际注册专家', '国内支撑专家'], + icon: 'path://M 30 10 A 20 20 0 1 0 30 50 A 20 20 0 1 0 30 10 Z M 30 15 A 15 15 0 1 1 30 45 A 15 15 0 1 1 30 15 Z', + //图例的公用文本样式。 + textStyle: { + color: '#7599E8' + }, + right: '0', + }, + grid: { + left: '0', + right: '0', + bottom: '3%', + containLabel: true + }, + toolbox: {}, + xAxis: { + axisLine: { + show: true, + lineStyle: { + color: '#7599E8' + } + }, + axisLabel: { + show: true, + color: '#7FA6FB' + }, + type: 'category', + boundaryGap: ['30%','20%'], + // 刻度线设置 + axisTick: { + show: false + }, + data: [] + }, + yAxis: { + axisLine: { + show: true, + lineStyle: { + color: '#7599E8' + } + }, + axisLabel: { + show: true, + color: '#7FA6FB' + }, + splitLine: { + lineStyle: { + color: '#7599E8', + type: 'dashed' + } + }, + type: 'value', + nameTextStyle: { + color: '#7FA6FB' + } + }, + series: [ + { + name: '国际注册专家', + type: 'line', + showSymbol: false, + symbolSize: 8, + data: [], + areaStyle: { + opacity: 0.2, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#4471EF' + }, + { + offset: 1, + color: '#ffffff' + } + ]) + }, + }, + { + name: '国内支撑专家', + type: 'line', + showSymbol: false, + symbolSize: 8, + data: [], + areaStyle: { + opacity: 0.2, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#00D8F1' + }, + { + offset: 1, + color: '#ffffff' + } + ]) + }, + } + ] +} + // 生成折线图 -export function createLineChart(idName, option) { +export function createLineChart(idName, option, isISO) { const chartDom = document.getElementById(idName) echarts.dispose(chartDom) // debugger let chartOption = deepMerge({}, LineOptions, option) + if(isISO) { + chartOption = deepMerge({}, ISOLineOptions, option) + } let myChart = echarts.init(chartDom) chartOption && myChart.setOption(chartOption) window.addEventListener('resize', () => { diff --git a/src/views/screen/wp29/ExpertQuantityChart.vue b/src/views/screen/wp29/ExpertQuantityChart.vue new file mode 100644 index 0000000..5be5cc3 --- /dev/null +++ b/src/views/screen/wp29/ExpertQuantityChart.vue @@ -0,0 +1,89 @@ + + + + + + \ No newline at end of file diff --git a/src/views/screen/wp29/MeetingCalendar.vue b/src/views/screen/wp29/MeetingCalendar.vue new file mode 100644 index 0000000..0f3f03c --- /dev/null +++ b/src/views/screen/wp29/MeetingCalendar.vue @@ -0,0 +1,356 @@ + + + + + + + \ No newline at end of file diff --git a/src/views/screen/wp29/MeetingInformationChart.vue b/src/views/screen/wp29/MeetingInformationChart.vue new file mode 100644 index 0000000..15b227d --- /dev/null +++ b/src/views/screen/wp29/MeetingInformationChart.vue @@ -0,0 +1,297 @@ + + + + + + \ No newline at end of file diff --git a/src/views/screen/wp29/RegulationQuantityChart.vue b/src/views/screen/wp29/RegulationQuantityChart.vue new file mode 100644 index 0000000..f611294 --- /dev/null +++ b/src/views/screen/wp29/RegulationQuantityChart.vue @@ -0,0 +1,131 @@ + + + + + + \ No newline at end of file diff --git a/src/views/screen/wp29/index.vue b/src/views/screen/wp29/index.vue new file mode 100644 index 0000000..d72f716 --- /dev/null +++ b/src/views/screen/wp29/index.vue @@ -0,0 +1,216 @@ + + + + + + \ No newline at end of file