diff --git a/src/assets/jsError/yuanquan.jpg b/src/assets/jsError/yuanquan.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..a2d0b6e66031401431ca3acd4f46846dbbd549dc
Binary files /dev/null and b/src/assets/jsError/yuanquan.jpg differ
diff --git a/src/componets/jsError/dataShow.vue b/src/componets/jsError/dataShow.vue
index 643a75bdfac3a442fc2d57cea4786125855dbe78..b3e50c5efb51d8083e864dc6f0426d1fa0e33d58 100644
--- a/src/componets/jsError/dataShow.vue
+++ b/src/componets/jsError/dataShow.vue
@@ -4,14 +4,23 @@
-
-
-
+
+
+
+
+
+
JS错误概况
@@ -23,101 +32,119 @@
-
\ No newline at end of file
diff --git a/src/componets/jsError/jsDetailed.vue b/src/componets/jsError/jsDetailed.vue
index bccf3affdd1aa17ade3d0052d9f51d72c40a7ab0..f99dd72ec8e3452f9a05517b5088ccacaa6c342d 100644
--- a/src/componets/jsError/jsDetailed.vue
+++ b/src/componets/jsError/jsDetailed.vue
@@ -1,62 +1,208 @@
-
+
事件类型
-
Error
-
2022-9-20 12:30:20
+
{{ errorDetailed[current].errorTypes }}
+
{{ errorDetailed[current].timeStamp }}
事件内容
-
error is not defined
+
{{ errorDetailed[current].message }}
错误内容
-
暂无
+
{{ errorDetailed[current].detail }}
发生页面
-
https://www.(检测对象网址)
-
加载信息
-
错误代码行列 行:xx,列:xx
-
解决
-
忽略
+
{{ errorDetailed[current].simpleUrl }}
+
错误定位
+
+ 错误代码行列 行:{{ errorDetailed[current].Position.row }},列:{{
+ errorDetailed[current].Position.column
+ }}
+
+
解决
+
忽略
-
1,100
+
+ {{ errorDetailed[current].errorCount }}
+
发生总次数
-
+
diff --git a/src/componets/jsError/jsRecord.vue b/src/componets/jsError/jsRecord.vue
index faa0ddedeac9780d0787436298e648242fa71a5f..7be1e75609418f1df5d6b9a921f1c65d272b1711 100644
--- a/src/componets/jsError/jsRecord.vue
+++ b/src/componets/jsError/jsRecord.vue
@@ -1,13 +1,43 @@
-
+
+
+
+ -
+
+
+
+
{{ item.errorType }}
+
{{ item.timeStamp }}
+
+
{{ item.message }}
+
+
+
+
+
-
-
\ No newline at end of file
diff --git a/src/componets/jsError/mainContent.vue b/src/componets/jsError/mainContent.vue
index ec9f735c54055e73e5e5ca4623c08af1c9dac0d8..342db764a357db47c3f7ec8cfe49df2aaf0191fc 100644
--- a/src/componets/jsError/mainContent.vue
+++ b/src/componets/jsError/mainContent.vue
@@ -16,9 +16,17 @@
@@ -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
+ }
}
}
@@ -73,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/navMenu.vue b/src/componets/jsError/navMenu.vue
deleted file mode 100644
index a476f53a2c76f36abbe90e9dde31bf9360c2fa3d..0000000000000000000000000000000000000000
--- a/src/componets/jsError/navMenu.vue
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/componets/jsError/topRight.vue b/src/componets/jsError/topRight.vue
deleted file mode 100644
index a057c0f65bd3a7aaf9443944d9c06c130b8e4b62..0000000000000000000000000000000000000000
--- 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 6db04ccdd8a9b71c5c81ae8c4a4b87e742f63340..41ec84406e55e7f077246371915aceaf57df3b05 100644
--- a/src/componets/jsError/topRight1.vue
+++ b/src/componets/jsError/topRight1.vue
@@ -1,25 +1,65 @@