From a188f609963647dad9be4b800e56a2505feb9124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=89=91=E8=B1=AA?= <764439554@qq.com> Date: Sat, 13 Aug 2022 10:33:52 +0800 Subject: [PATCH 01/10] 8/13 --- src/componets/jsError/dataShow.vue | 8 +++---- src/componets/jsError/topRight.vue | 17 -------------- src/componets/jsError/topRight1.vue | 35 ++++++++++++++++++++++++++++- src/router/index.js | 2 +- src/views/JsErrorView.vue | 7 +++--- 5 files changed, 43 insertions(+), 26 deletions(-) delete mode 100644 src/componets/jsError/topRight.vue diff --git a/src/componets/jsError/dataShow.vue b/src/componets/jsError/dataShow.vue index 643a75b..5418468 100644 --- a/src/componets/jsError/dataShow.vue +++ b/src/componets/jsError/dataShow.vue @@ -141,8 +141,8 @@ export default { display: flex; justify-content: left; position: absolute; - top: 80px; - left: 357px; + top: 10vh; + left: 17.5vw; } .jseH1 { font-size: clamp(1rem, 1.3vw, 4rem); @@ -157,8 +157,8 @@ export default { .el-select { width: 10vw; position: absolute; - left: 363px; - top: 30px; + left: 17.5vw; + top: 3vh; font-family: AlibabaMedium; font-weight: 400; } diff --git a/src/componets/jsError/topRight.vue b/src/componets/jsError/topRight.vue deleted file mode 100644 index a057c0f..0000000 --- a/src/componets/jsError/topRight.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - - diff --git a/src/componets/jsError/topRight1.vue b/src/componets/jsError/topRight1.vue index 6db04cc..043464d 100644 --- a/src/componets/jsError/topRight1.vue +++ b/src/componets/jsError/topRight1.vue @@ -1,6 +1,9 @@ -- Gitee From 4df88c0fe1fc9fa0b470061a706efcf21f0ad38f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=89=91=E8=B1=AA?= <764439554@qq.com> Date: Sat, 13 Aug 2022 17:59:58 +0800 Subject: [PATCH 05/10] . --- src/componets/jsError/jsRecord.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/componets/jsError/jsRecord.vue b/src/componets/jsError/jsRecord.vue index 4a09543..736cbab 100644 --- a/src/componets/jsError/jsRecord.vue +++ b/src/componets/jsError/jsRecord.vue @@ -34,7 +34,7 @@ export default { \ No newline at end of file diff --git a/src/componets/jsError/topRight1.vue b/src/componets/jsError/topRight1.vue index 294e709..a3ccd68 100644 --- a/src/componets/jsError/topRight1.vue +++ b/src/componets/jsError/topRight1.vue @@ -10,6 +10,7 @@
+

优秀

@@ -210,4 +211,9 @@ p { margin-left: 0.8vw; line-height: 7px; } +.grade { + margin: 3vh 0 0 5.5vw; + font-size: clamp(1rem, 1.3vw, 4rem); + font-family: AlibabaMedium; +} \ No newline at end of file -- Gitee From 9dc5da059044a8e24c6370f9bcc1a340c952e434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=89=91=E8=B1=AA?= <764439554@qq.com> Date: Wed, 17 Aug 2022 23:48:56 +0800 Subject: [PATCH 07/10] =?UTF-8?q?8/17=E9=99=A4=E4=BA=86=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=BF=98=E6=9C=AA=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/componets/jsError/dataShow.vue | 3 + src/componets/jsError/jsDetailed.vue | 79 ++++++++++++++++++++++----- src/componets/jsError/jsRecord.vue | 25 +++++++-- src/componets/jsError/jsTrend.vue | 10 ++-- src/componets/jsError/mainContent.vue | 38 ++++++++++++- src/componets/jsError/topRight1.vue | 22 +++++--- src/services/jsError/jsError.js | 10 ++++ src/services/jsError/request.js | 17 ++++++ src/views/JsErrorView.vue | 2 + 9 files changed, 171 insertions(+), 35 deletions(-) create mode 100644 src/services/jsError/jsError.js create mode 100644 src/services/jsError/request.js diff --git a/src/componets/jsError/dataShow.vue b/src/componets/jsError/dataShow.vue index 372e405..95b6fbd 100644 --- a/src/componets/jsError/dataShow.vue +++ b/src/componets/jsError/dataShow.vue @@ -28,8 +28,11 @@ export default { return { channel: "全部组件", value1: '' + } }, + + mounted () { var chartDom = document.getElementById('contemt'); var myChart = this.$echarts.init(chartDom, 'dark'); diff --git a/src/componets/jsError/jsDetailed.vue b/src/componets/jsError/jsDetailed.vue index bccf3af..1bd6b2c 100644 --- a/src/componets/jsError/jsDetailed.vue +++ b/src/componets/jsError/jsDetailed.vue @@ -1,26 +1,36 @@ @@ -29,11 +37,37 @@ import TopRight from './topRight1.vue' import JsDetailed from './jsDetailed.vue' import JsRecord from './jsRecord.vue' +import { getJsError } from '@/services/jsError/request' + export default { components: { DataShow, JsDetailed, JsRecord, TopRight }, name: 'mainComtent', data () { return { + errorDetailed: [], + current: 0 + } + }, + created () { + getJsError().then(res => { + this.errorDetailed = res.data.result + }) + + }, + methods: { + changecurrent (index) { + this.current = index + }, + solve () { + this.errorDetailed.splice(this.current, 1) + }, + neglect () { + if (this.current < this.errorDetailed.length - 1) { + this.current = this.current + 1 + } + else { + this.current = 0 + } } } diff --git a/src/componets/jsError/topRight1.vue b/src/componets/jsError/topRight1.vue index a3ccd68..80482f1 100644 --- a/src/componets/jsError/topRight1.vue +++ b/src/componets/jsError/topRight1.vue @@ -15,13 +15,21 @@ diff --git a/src/componets/jsError/jsTrend.vue b/src/componets/jsError/jsTrend.vue deleted file mode 100644 index acae313..0000000 --- a/src/componets/jsError/jsTrend.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/store/index.js b/src/store/index.js index ceffa8e..a584477 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -5,6 +5,7 @@ Vue.use(Vuex) export default new Vuex.Store({ state: { + jsCurrent: 0 }, getters: { }, -- Gitee From 5c1931070d392fea92ad102d6e720e2adee124bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=89=91=E8=B1=AA?= <764439554@qq.com> Date: Thu, 18 Aug 2022 21:36:14 +0800 Subject: [PATCH 09/10] =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/componets/jsError/dataShow.vue | 1 - src/componets/jsError/jsDetailed.vue | 1 - 2 files changed, 2 deletions(-) diff --git a/src/componets/jsError/dataShow.vue b/src/componets/jsError/dataShow.vue index 107407b..97b3e7e 100644 --- a/src/componets/jsError/dataShow.vue +++ b/src/componets/jsError/dataShow.vue @@ -43,7 +43,6 @@ export default { return item.errorCount }) - console.log(errorCount) var chartDom = document.getElementById('contemt'); var myChart = this.$echarts.init(chartDom, 'dark'); var option = { diff --git a/src/componets/jsError/jsDetailed.vue b/src/componets/jsError/jsDetailed.vue index 37bb74c..7af8d1c 100644 --- a/src/componets/jsError/jsDetailed.vue +++ b/src/componets/jsError/jsDetailed.vue @@ -82,7 +82,6 @@ export default { return item.errorCount }) this.drawChart(seriesData) - console.log(res.data.result) }) }, -- Gitee From 4d5bc5326f981aa551e1b9aeb576f1450e8a063f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=89=91=E8=B1=AA?= <764439554@qq.com> Date: Sun, 21 Aug 2022 19:57:29 +0800 Subject: [PATCH 10/10] =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/componets/jsError/dataShow.vue | 23 ++++++++++++++++++++++- src/componets/jsError/jsDetailed.vue | 23 ++++++++++------------- src/componets/jsError/mainContent.vue | 2 +- src/componets/jsError/topRight1.vue | 8 ++++++-- src/componets/reqError/reqTrend.vue | 6 +++--- 5 files changed, 42 insertions(+), 20 deletions(-) diff --git a/src/componets/jsError/dataShow.vue b/src/componets/jsError/dataShow.vue index 97b3e7e..b3e50c5 100644 --- a/src/componets/jsError/dataShow.vue +++ b/src/componets/jsError/dataShow.vue @@ -10,6 +10,16 @@ > +
+ + +
@@ -30,6 +40,7 @@ export default { return { channel: "全部组件", value1: '', + value: '' } }, @@ -133,7 +144,7 @@ export default { } - \ No newline at end of file diff --git a/src/componets/jsError/jsDetailed.vue b/src/componets/jsError/jsDetailed.vue index 7af8d1c..f99dd72 100644 --- a/src/componets/jsError/jsDetailed.vue +++ b/src/componets/jsError/jsDetailed.vue @@ -11,7 +11,7 @@

{{ errorDetailed[current].detail }}

发生页面

{{ errorDetailed[current].simpleUrl }}

-

加载信息

+

错误定位

错误代码行列 行:{{ errorDetailed[current].Position.row }},列:{{ errorDetailed[current].Position.column @@ -55,13 +55,10 @@ export default { default: 0 } }, - name: 'jsDetailed', - data () { return { data1: [], - count: [] } }, watch: { @@ -100,7 +97,7 @@ export default { grid: [{ left: '15%', bottom: '10%', - top: '30%', + top: '20%', right: '10%' }], title: { @@ -128,7 +125,7 @@ export default { backgroundColor: '', xAxis: { type: 'category', - data: ['00', '04', '08', '12', '16', '20', '24'], // 时间 + data: ['00', '04', '08', '12', '16', '20'], // 时间 boundaryGap: false, lineStyle: { color: '#647483' @@ -200,12 +197,12 @@ export default { diff --git a/src/componets/jsError/mainContent.vue b/src/componets/jsError/mainContent.vue index d9e240d..342db76 100644 --- a/src/componets/jsError/mainContent.vue +++ b/src/componets/jsError/mainContent.vue @@ -107,6 +107,6 @@ export default { } .js-record { width: 6vw; - margin-left: 415px; + margin-left: 31vw; } \ No newline at end of file diff --git a/src/componets/jsError/topRight1.vue b/src/componets/jsError/topRight1.vue index 80482f1..41ec844 100644 --- a/src/componets/jsError/topRight1.vue +++ b/src/componets/jsError/topRight1.vue @@ -1,6 +1,9 @@