diff --git a/src/assets/jsError/p399423274.mp4 b/src/assets/jsError/p399423274.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..5a4cb1e33f9a3f36b13e722b72e276814e14e352 Binary files /dev/null and b/src/assets/jsError/p399423274.mp4 differ 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/reqError/ExampleData.vue b/src/componets/reqError/ExampleData.vue new file mode 100644 index 0000000000000000000000000000000000000000..51983761706c8e717b330678ff03e2474cbdf461 --- /dev/null +++ b/src/componets/reqError/ExampleData.vue @@ -0,0 +1,13 @@ +// reqRecord records: [ { statusCode: 404, method: "get", pathName: +"https://www.test.com", timeStamp: "最近:12:30:40", }, { statusCode: 500, +method: "post", pathName: "https://www.test.com/message", timeStamp: +"最近:12:30:30", }, { statusCode: 400, method: "Websocket", pathName: +"https://www.test.com", timeStamp: "最近:12:30:20", }, { statusCode: 302, +method: "get", pathName: "https://www.test.com", timeStamp: "最近:12:30:10", }, +{ statusCode: 301, method: "post", pathName: "https://www.test.com", timeStamp: +"最近:12:30:09", }, { statusCode: 414, method: "get", pathName: +"https://www.test.com", timeStamp: "最近:12:30:08", }, { statusCode: 502, +method: "get", pathName: "https://www.test.com", timeStamp: "最近:12:30:07", }, +], 柱状图 [ "7/1", "7/2", "7/3", "7/4", "7/5", "7/6", "7/7", "7/8", "7/9", +"7/10", "7/11", "7/12", "7/13", "7/14", ] countArray [ 820, 422, 200, 534, 790, +330, 820, 630, 702, 400, 834, 390, 930, 420, ] diff --git a/src/componets/reqError/dataShow.vue b/src/componets/reqError/dataShow.vue deleted file mode 100644 index 52b6d43d4e1382f0c5da2408ea701b4d28d15ce8..0000000000000000000000000000000000000000 --- a/src/componets/reqError/dataShow.vue +++ /dev/null @@ -1,224 +0,0 @@ - - - - - diff --git a/src/componets/reqError/mainContent.vue b/src/componets/reqError/mainContent.vue index f1cf84bc1f2c7e928dc5f7c200468a2ff759709f..2a92b14a9a85fc73db611155c96ced2672522b39 100644 --- a/src/componets/reqError/mainContent.vue +++ b/src/componets/reqError/mainContent.vue @@ -1,36 +1,26 @@ diff --git a/src/componets/reqError/miniCount.vue b/src/componets/reqError/miniCount.vue new file mode 100644 index 0000000000000000000000000000000000000000..fbdf289bff126a23676c7f2aadffaa297179c4a0 --- /dev/null +++ b/src/componets/reqError/miniCount.vue @@ -0,0 +1,198 @@ + + + + + diff --git a/src/componets/reqError/navMenu.vue b/src/componets/reqError/navMenu.vue deleted file mode 100644 index efd7fdc2735750af4047ca2ca41e9318c68f8211..0000000000000000000000000000000000000000 --- a/src/componets/reqError/navMenu.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - - - diff --git a/src/componets/reqError/reqDetailed.vue b/src/componets/reqError/reqDetailed.vue index b5b2570360acf9db283c902b449d4dcfef8e6859..35c4488fd8d316840ff29f059870014cc268b475 100644 --- a/src/componets/reqError/reqDetailed.vue +++ b/src/componets/reqError/reqDetailed.vue @@ -1,168 +1,315 @@ diff --git a/src/componets/reqError/reqOverview.vue b/src/componets/reqError/reqOverview.vue new file mode 100644 index 0000000000000000000000000000000000000000..70d80f8088edf5e51373eb263866a054e1ded9bd --- /dev/null +++ b/src/componets/reqError/reqOverview.vue @@ -0,0 +1,216 @@ + + + + + diff --git a/src/componets/reqError/reqRecord.vue b/src/componets/reqError/reqRecord.vue index 87c7f1905d40e1edbad604a19af01d8b62df2850..d110b33b5377154385460e99a778882fbfc753a2 100644 --- a/src/componets/reqError/reqRecord.vue +++ b/src/componets/reqError/reqRecord.vue @@ -1,20 +1,293 @@ diff --git a/src/componets/reqError/reqTrend.vue b/src/componets/reqError/reqTrend.vue deleted file mode 100644 index 3d7c607d773c7746afdf6caadb60d0d0b8dd0e5e..0000000000000000000000000000000000000000 --- a/src/componets/reqError/reqTrend.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - - - diff --git a/src/componets/reqError/topRight.vue b/src/componets/reqError/topRight.vue deleted file mode 100644 index a057c0f65bd3a7aaf9443944d9c06c130b8e4b62..0000000000000000000000000000000000000000 --- a/src/componets/reqError/topRight.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - - diff --git a/src/router/index.js b/src/router/index.js index f3c24ed9033ab1e6e6522533ace601239d7d4f05..b71bbbe93d704a10712bf4234db9a2627e9be0b2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3,42 +3,42 @@ * @Date: 2022-08-05 14:24:57 * @LastEditors: arvin(王德江) * @LastEditTime: 2022-08-05 15:19:53 - * @Description: + * @Description: */ -import Vue from 'vue' -import VueRouter from 'vue-router' -import HomeView from '../views/HomeView.vue' +import Vue from "vue"; +import VueRouter from "vue-router"; +import HomeView from "../views/HomeView.vue"; -Vue.use(VueRouter) +Vue.use(VueRouter); const routes = [ { - path: '/', - name: 'home', - component: HomeView + path: "/", + name: "home", + component: HomeView, }, { // js错误 - path: '/js-error', - name: 'jsError', - component: () => import('../views/JsErrorView.vue') + path: "/js-error", + name: "jsError", + component: () => import("../views/JsErrorView.vue"), }, { // 性能视图 - path: 'req-error', - name: 'performance', - component: () => import('../views/PerformanceView.vue') + path: "/performance", + name: "performance", + component: () => import("../views/PerformanceView.vue"), }, { // 请求错误视图 - path: '/req-error', - name: 'reqError', - component: () => import('../views/ReqErrorView.vue') - } -] + path: "/req-error", + name: "reqError", + component: () => import("../views/ReqErrorView.vue"), + }, +]; const router = new VueRouter({ - routes -}) + routes, +}); -export default router +export default router; diff --git a/src/utils/bus.js b/src/utils/bus.js new file mode 100644 index 0000000000000000000000000000000000000000..dc7e25b8f0cd9480edd51268869629158d989001 --- /dev/null +++ b/src/utils/bus.js @@ -0,0 +1,3 @@ +import Vue from "vue"; + +export default new Vue(); diff --git a/src/views/PerformanceView.vue b/src/views/PerformanceView.vue index 713fa3cb553e1b85636d2df617457379d19d0710..42e8e7ddd3b2461dda36989b19236d318efd8f54 100644 --- a/src/views/PerformanceView.vue +++ b/src/views/PerformanceView.vue @@ -6,23 +6,24 @@ diff --git a/src/views/ReqErrorView.vue b/src/views/ReqErrorView.vue index 264ed0242fa0a32e0d10599387c3bdf28b5029e1..ddd83b4dc4dd1d1446981b46e2c1e33615e3da56 100644 --- a/src/views/ReqErrorView.vue +++ b/src/views/ReqErrorView.vue @@ -1,26 +1,19 @@