From f897af4618064dc160136b22d20dc0137b992ca6 Mon Sep 17 00:00:00 2001 From: caijianhaoa <1784581164@qq.com> Date: Wed, 10 Aug 2022 10:04:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B8=AD=E5=8F=B0=E9=9D=99=E6=80=81?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/componets/HomePage/firstGraph.vue | 263 +++--- src/componets/HomePage/fourGraph.vue | 875 ++++++++++-------- src/componets/Performance/barComponent.vue | 65 ++ src/componets/Performance/leftMenu.vue | 19 + src/componets/Performance/lineComponent.vue | 197 ++++ src/componets/Performance/listComponent.vue | 177 ++++ src/componets/Performance/paintList.vue | 44 + .../Performance/performanceBottom.vue | 182 ++++ src/componets/Performance/performanceMain.vue | 77 ++ .../Performance/performanceMiddle.vue | 78 ++ src/componets/Performance/performanceTop.vue | 176 ++++ src/views/PerformanceView.vue | 33 +- 12 files changed, 1644 insertions(+), 542 deletions(-) create mode 100644 src/componets/Performance/barComponent.vue create mode 100644 src/componets/Performance/leftMenu.vue create mode 100644 src/componets/Performance/lineComponent.vue create mode 100644 src/componets/Performance/listComponent.vue create mode 100644 src/componets/Performance/paintList.vue create mode 100644 src/componets/Performance/performanceBottom.vue create mode 100644 src/componets/Performance/performanceMain.vue create mode 100644 src/componets/Performance/performanceMiddle.vue create mode 100644 src/componets/Performance/performanceTop.vue diff --git a/src/componets/HomePage/firstGraph.vue b/src/componets/HomePage/firstGraph.vue index 40675fe..3aedab4 100644 --- a/src/componets/HomePage/firstGraph.vue +++ b/src/componets/HomePage/firstGraph.vue @@ -1,147 +1,152 @@ - + diff --git a/src/componets/HomePage/fourGraph.vue b/src/componets/HomePage/fourGraph.vue index 3ff04e1..1541697 100644 --- a/src/componets/HomePage/fourGraph.vue +++ b/src/componets/HomePage/fourGraph.vue @@ -1,423 +1,506 @@ diff --git a/src/componets/Performance/barComponent.vue b/src/componets/Performance/barComponent.vue new file mode 100644 index 0000000..8e6b4f3 --- /dev/null +++ b/src/componets/Performance/barComponent.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/src/componets/Performance/leftMenu.vue b/src/componets/Performance/leftMenu.vue new file mode 100644 index 0000000..2efdcb5 --- /dev/null +++ b/src/componets/Performance/leftMenu.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/src/componets/Performance/lineComponent.vue b/src/componets/Performance/lineComponent.vue new file mode 100644 index 0000000..c0fb18c --- /dev/null +++ b/src/componets/Performance/lineComponent.vue @@ -0,0 +1,197 @@ + + + + + diff --git a/src/componets/Performance/listComponent.vue b/src/componets/Performance/listComponent.vue new file mode 100644 index 0000000..9b1d348 --- /dev/null +++ b/src/componets/Performance/listComponent.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/src/componets/Performance/paintList.vue b/src/componets/Performance/paintList.vue new file mode 100644 index 0000000..ab5c341 --- /dev/null +++ b/src/componets/Performance/paintList.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/src/componets/Performance/performanceBottom.vue b/src/componets/Performance/performanceBottom.vue new file mode 100644 index 0000000..c6a315a --- /dev/null +++ b/src/componets/Performance/performanceBottom.vue @@ -0,0 +1,182 @@ + + + + + diff --git a/src/componets/Performance/performanceMain.vue b/src/componets/Performance/performanceMain.vue new file mode 100644 index 0000000..5ef8efc --- /dev/null +++ b/src/componets/Performance/performanceMain.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/src/componets/Performance/performanceMiddle.vue b/src/componets/Performance/performanceMiddle.vue new file mode 100644 index 0000000..88bc5ea --- /dev/null +++ b/src/componets/Performance/performanceMiddle.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/componets/Performance/performanceTop.vue b/src/componets/Performance/performanceTop.vue new file mode 100644 index 0000000..f2ed62b --- /dev/null +++ b/src/componets/Performance/performanceTop.vue @@ -0,0 +1,176 @@ + + + + + diff --git a/src/views/PerformanceView.vue b/src/views/PerformanceView.vue index ad36014..4020330 100644 --- a/src/views/PerformanceView.vue +++ b/src/views/PerformanceView.vue @@ -1,29 +1,28 @@ \ No newline at end of file +.main { + display: flex; + font-family: Alibaba; +} + -- Gitee From 99715e79de64505892a7303590a88b36f953eb06 Mon Sep 17 00:00:00 2001 From: caijianhaoa <1784581164@qq.com> Date: Fri, 12 Aug 2022 20:28:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=AD=E5=8F=B0=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=80=A7=E8=83=BD=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/logo/logo.png | Bin 0 -> 2962 bytes "src/assets/\347\273\204 65.png" | Bin 0 -> 625 bytes "src/assets/\347\273\204 66.png" | Bin 0 -> 259 bytes "src/assets/\347\273\204 67.png" | Bin 0 -> 478 bytes "src/assets/\350\267\257\345\276\204 14.png" | Bin 0 -> 374 bytes src/componets/HomePage/fourGraph.vue | 16 +- src/componets/Performance/barComponent.vue | 78 +++--- src/componets/Performance/leftMenu.vue | 19 -- src/componets/Performance/lineComponent.vue | 257 ++++++++---------- src/componets/Performance/listComponent.vue | 6 +- src/componets/Performance/paintList.vue | 4 +- .../Performance/performanceBottom.vue | 105 +++---- src/componets/Performance/performanceMain.vue | 85 +++--- .../Performance/performanceMiddle.vue | 2 +- src/componets/Performance/performanceTop.vue | 31 ++- src/componets/leftMenu.vue | 94 +++++++ src/services/performance.js | 9 + src/views/PerformanceView.vue | 2 +- 18 files changed, 381 insertions(+), 327 deletions(-) create mode 100644 src/assets/logo/logo.png create mode 100644 "src/assets/\347\273\204 65.png" create mode 100644 "src/assets/\347\273\204 66.png" create mode 100644 "src/assets/\347\273\204 67.png" create mode 100644 "src/assets/\350\267\257\345\276\204 14.png" delete mode 100644 src/componets/Performance/leftMenu.vue create mode 100644 src/componets/leftMenu.vue create mode 100644 src/services/performance.js diff --git a/src/assets/logo/logo.png b/src/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UM literal 0 HcmV?d00001 diff --git "a/src/assets/\347\273\204 65.png" "b/src/assets/\347\273\204 65.png" new file mode 100644 index 0000000000000000000000000000000000000000..c961faa4911fbfee6c8e333b43c45d3a2071158c GIT binary patch literal 625 zcmV-%0*?KOP)Px%D@jB_R5(wKls{#oOeyH%!V6sjS9qr4Q(=mY~cw=vbWI9h2#jZ3#3y zuKOLEhX_q8K-_0lrtz~czERTV?t)w;4sX1Wp9P0ijlN~MYRa{U8)Ysinb9F{IiDvM zxHT}(rBfl+tX>`l+}YJGC*)6K2fb;F3(C|tn++}gl`B=Y7|?CtxYv7P%Hsah92ZZ9 z_&Q~A_eqYqyhC%ij`PRXR=6u%F`z8a<^_G3wCL-f<7&@3`k&_r_=UsWO&F!YK*g|4 zIC&xU9W z{vCiSNmJSw&{0d#P^y5VF#BVX;n5@3VSCm2Ng7hw5sA1g`IF zmkTcF?I(@+>KQ?Zto-{bJW@G}z1=a%FLf-L)(#b32(*1O95T&woe zOK{T@AKaX`=rv0IStI2tj5-mHIEooW1jQD??4E=zJm`$dq*wKC@Ok-TD?t@~00000 LNkvXXu0mjf-G2co#^NA%Cx&(BWL^R}dp%toLoEE? zPBG*<6d>S|?yyL_Q@mqoYpb}Y<~#-asUAhlfg3!vD;N}A`4TR9Cr!*&aXJ?DCtgSA zZdqGmrL|7)OF0I&4Sf8Wuhy=L+S#!5ZnJgo%O?Vi2HwH?I@zKOVtnzx`74z_8>{`5 zJ8;Bp-W65PW6M`vj5>7Youl{n%KhOLYo}fgG!uG$;JIGk?zaXR?`}Lfx9M8@CdJvl zl5TPx$m`OxIR5(w~l)YTCabW$u%U!d1A-JC&*HZ4M{CHdS?Ep{u0JOOnK1p0ik7`lx7koA|<*k6$HHKMz z=d@<3o)C-;0?V~o#&uPy{sHVOq8RFR7wjmADDESac$C9hN?`eG#_Nejp^js?cC*w6 zjc0AJM#Ic~X!7UxzZi!`B8Cr!o-o7nHds&9CJx&J`|{aq8`wFGUAtju|LTes)-khh zOBrt_TLajv?6DgONvQ?w2(wMI2TOt|?jy6EJAjp+ru?eWbpWLjoWGn9HmqOAo~`^c z<(KuY)$Z9VMlZ&Muwek=sb=QAC^53tUKKj=K<^g((B{sdu*_UiW!8tC@KG={0B|Zj zrmL$(PtW^Q1mlR4{|z*ciMg8|(Q?tjik-N|EoEFm40nU(dmTir*<}382^GKeU$Yak UXeaf1ZvX%Q07*qoM6N<$f?L4g$N&HU literal 0 HcmV?d00001 diff --git "a/src/assets/\350\267\257\345\276\204 14.png" "b/src/assets/\350\267\257\345\276\204 14.png" new file mode 100644 index 0000000000000000000000000000000000000000..d9063b9af923a58a27e4b5dbecf87b1a2676841e GIT binary patch literal 374 zcmV-+0g3*JP)Px$FiAu~R5(xVlrcy`Q5c24qtYZz4$&5W9 z4Yj!jKBtO&j{>J?4u>dvf2b+-e1bYPbjSam^WA$7hb#Il$F+osV~jN-6zlKo51|A(K=k==lXH-CI09#-WU@Ft{0w2<*Q;bCA!g(b04vj%N$N zIgsr4#2@n;L?N5fQ*)+L$ztP^?E0`L5gP!|mKb%3?MzxHD!X=+mj19M?YRt@|*LYO`#& zz+B+eVIUW(c(!R!92MgGEVaIZvTN%St3aX!6OY-HHbOFK1{-fnc=_}>o1fP87qKdn UqVM43Qvd(}07*qoM6N<$f^+<(p8x;= literal 0 HcmV?d00001 diff --git a/src/componets/HomePage/fourGraph.vue b/src/componets/HomePage/fourGraph.vue index 1541697..0491a4a 100644 --- a/src/componets/HomePage/fourGraph.vue +++ b/src/componets/HomePage/fourGraph.vue @@ -44,15 +44,17 @@ export default { } }, props: ['loadData'], - mounted() { - this.$nextTick(function () { - for (let i = 0; i < this.optionData.length; i++) { - this.optionData[i].value = this.loadData[i] + mounted() {}, + methods: { + getData() { + if (this.loadData && this.loadData.length) { + for (let i = 0; i < this.optionData.length; i++) { + this.optionData[i].value = this.loadData[i] + } } this.init() - }) - }, - methods: { + }, + init() { //构建3d饼状图 let myChart = this.$echarts.init( diff --git a/src/componets/Performance/barComponent.vue b/src/componets/Performance/barComponent.vue index 8e6b4f3..4bec27a 100644 --- a/src/componets/Performance/barComponent.vue +++ b/src/componets/Performance/barComponent.vue @@ -12,48 +12,54 @@ export default { } }, props: ['mountArr'], - mounted() { - this.mountArr.forEach((item) => { - this.nameArr.push(item.componentName) - this.data.push({ value: item.mountTime }) - }) - const chartDom = document.getElementById('main1') - const myChart = this.$echarts.init(chartDom, 'dark') + mounted() {}, + methods: { + getMountArr() { + this.mountArr.forEach((item) => { + this.nameArr.push(item.componentName) + this.data.push({ value: item.mountTime }) + }) + this.init() + }, + init() { + const chartDom = document.getElementById('main1') + const myChart = this.$echarts.init(chartDom, 'dark') - window.onresize = function () { - myChart.resize() - } + window.onresize = function () { + myChart.resize() + } - let option = { - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'shadow', + let option = { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow', + }, }, - }, - xAxis: { - type: 'category', - data: this.nameArr, - }, - backgroundColor: '#000000', - yAxis: { - type: 'value', - splitLine: { - show: false, + xAxis: { + type: 'category', + data: this.nameArr, }, - }, - series: [ - { - type: 'bar', - data: this.data, - showBackground: true, - backgroundStyle: { - color: 'rgba(180, 180, 180, 0.2)', + backgroundColor: '#000000', + yAxis: { + type: 'value', + splitLine: { + show: false, }, }, - ], - } - myChart.setOption(option) + series: [ + { + type: 'bar', + data: this.data, + showBackground: true, + backgroundStyle: { + color: 'rgba(180, 180, 180, 0.2)', + }, + }, + ], + } + myChart.setOption(option) + }, }, } diff --git a/src/componets/Performance/leftMenu.vue b/src/componets/Performance/leftMenu.vue deleted file mode 100644 index 2efdcb5..0000000 --- a/src/componets/Performance/leftMenu.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - - - diff --git a/src/componets/Performance/lineComponent.vue b/src/componets/Performance/lineComponent.vue index c0fb18c..61c4135 100644 --- a/src/componets/Performance/lineComponent.vue +++ b/src/componets/Performance/lineComponent.vue @@ -3,62 +3,13 @@ diff --git a/src/componets/Performance/listComponent.vue b/src/componets/Performance/listComponent.vue index 9b1d348..b71fe7d 100644 --- a/src/componets/Performance/listComponent.vue +++ b/src/componets/Performance/listComponent.vue @@ -9,11 +9,7 @@ export default { return {} }, props: ['loadData'], - mounted() { - this.$nextTick(function () { - this.init() - }) - }, + mounted() {}, methods: { init() { const chartDom = document.getElementById('main') diff --git a/src/componets/Performance/paintList.vue b/src/componets/Performance/paintList.vue index ab5c341..3f7904c 100644 --- a/src/componets/Performance/paintList.vue +++ b/src/componets/Performance/paintList.vue @@ -10,7 +10,9 @@
-
第一个有意义的内容出现时间(FMP)
+
+ 第一个有意义的内容出现时间(FMP) +
diff --git a/src/componets/Performance/performanceBottom.vue b/src/componets/Performance/performanceBottom.vue index c6a315a..52d0771 100644 --- a/src/componets/Performance/performanceBottom.vue +++ b/src/componets/Performance/performanceBottom.vue @@ -2,29 +2,29 @@ @@ -35,6 +35,7 @@ import titleComponent from '../HomePage/titleComponent.vue' import fourGraph from '../HomePage/fourGraph.vue' import ListComponent from './listComponent.vue' import BarComponent from './barComponent.vue' +import { getLoadArr, getMountArr } from '@/services/performance' export default { name: 'performanceBottom', @@ -46,49 +47,8 @@ export default { }, data() { return { - loadArr: [ - { - id: 89, - loadTime: 1427678475642, - type: 'ullamco sed', - kind: 'cillum veniam nulla in', - }, - { - id: 5, - loadTime: 137549105933, - type: 'ea', - kind: 'consequat aute sed quis et', - }, - { - id: 13, - loadTime: 57383004513, - type: 'ut do', - kind: 'nulla amet cillum', - }, - ], - mountArr: [ - { - id: 97, - componentName: '方话里极', - mountTime: 1, - type: 'ut adipisicing cupidatat', - kind: 'labore veniam mollit id', - }, - { - id: 5, - componentName: '自北断直上', - mountTime: 74, - type: 'esse', - kind: 'velit', - }, - { - id: 16, - componentName: '红少影适界思', - mountTime: 9364, - type: 'sed exercitation', - kind: 'deserunt tempor', - }, - ], + loadArr: [], + mountArr: [], best: 0, good: 0, bad: 0, @@ -97,22 +57,41 @@ export default { } }, mounted() { - this.loadArr.forEach((item) => { - if (item.loadTime < 1) { - this.best++ - } else if (item.loadTime < 3) { - console.log(item.loadTime) - this.good++ - } else if (item.loadTime < 5) { - this.bad++ - } else { - this.badest++ + this.getLoadArr() + this.getMountArr() + }, + methods: { + async getLoadArr() { + const res = await getLoadArr() + this.loadArr = res.data.result + this.loadArr.forEach((item) => { + if (item.loadTime < 1000) { + this.best++ + } else if (item.loadTime < 3000) { + console.log(item.loadTime) + this.good++ + } else if (item.loadTime < 5000) { + this.bad++ + } else { + this.badest++ + } + }) + this.loadData.push(this.best) + this.loadData.push(this.good) + this.loadData.push(this.bad) + this.loadData.push(this.badest) + this.$refs.list.init() + this.$refs.four.getData() + }, + async getMountArr() { + const res = await getMountArr() + for (let i = 0; i < res.data.result.length; i++) { + this.mountArr.push(res.data.result[i]) } - }) - this.loadData.push(this.best) - this.loadData.push(this.good) - this.loadData.push(this.bad) - this.loadData.push(this.badest) + + this.$refs.mount.getMountArr() + console.log(this.$refs.mount.mountArr) + }, }, } diff --git a/src/componets/Performance/performanceMain.vue b/src/componets/Performance/performanceMain.vue index 5ef8efc..0847452 100644 --- a/src/componets/Performance/performanceMain.vue +++ b/src/componets/Performance/performanceMain.vue @@ -1,10 +1,14 @@ @@ -12,6 +16,7 @@ import performanceTop from './performanceTop.vue' import performanceMiddle from './performanceMiddle.vue' import performanceBottom from './performanceBottom.vue' +import { getpaintTime } from '@/services/performance' export default { name: 'performanceMain', @@ -22,48 +27,28 @@ export default { }, data() { return { - paintArr: [ - { - firstPaint: 50, - firstContentfulPaint: 97, - firstMeaningfulPaint: 24, - largestContentfulPaint: 60, - id: '21', - day: 27, - kind: 'fugiat', - type: 'ex est id proident', - }, - { - firstPaint: 35, - firstContentfulPaint: 43, - firstMeaningfulPaint: 29, - largestContentfulPaint: 14, - id: '40', - day: 97, - kind: 'do aliqua dolore Excepteur in', - type: 'anim laboris quis', - }, - { - firstPaint: 73, - firstContentfulPaint: 61, - firstMeaningfulPaint: 23, - largestContentfulPaint: 41, - id: '99', - day: 91, - kind: 'ullamco minim', - type: 'laboris exercitation eu aliquip dolore', - }, - ], + paintArr: [], } }, - mounted() {}, + mounted() { + this.getPaintArr() + }, + methods: { + async getPaintArr() { + let res = await getpaintTime() + for (let i = 0; i < res.data.result.length; i++) { + this.paintArr.push(res.data.result[i]) + } + this.$refs.top.getPaintArr() + }, + }, } diff --git a/src/componets/Performance/performanceMiddle.vue b/src/componets/Performance/performanceMiddle.vue index 88bc5ea..f58a99a 100644 --- a/src/componets/Performance/performanceMiddle.vue +++ b/src/componets/Performance/performanceMiddle.vue @@ -1,7 +1,7 @@ diff --git a/src/componets/leftMenu.vue b/src/componets/leftMenu.vue new file mode 100644 index 0000000..ebae4fb --- /dev/null +++ b/src/componets/leftMenu.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/src/services/performance.js b/src/services/performance.js new file mode 100644 index 0000000..2fb08fe --- /dev/null +++ b/src/services/performance.js @@ -0,0 +1,9 @@ +import service from '@/utils/request' + +export const getLoadArr = () => service.get('/loadArr') + +export const getMountArr = () => service.get('/mountArr') + +export const getBlankCount = () => service.get('/blankCount') + +export const getpaintTime = () => service.get('/paintTime') diff --git a/src/views/PerformanceView.vue b/src/views/PerformanceView.vue index 4020330..713fa3c 100644 --- a/src/views/PerformanceView.vue +++ b/src/views/PerformanceView.vue @@ -7,7 +7,7 @@