From d9c4900530fcd8b70407f8ede4f2ca4b3453d785 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Wed, 6 Apr 2022 13:19:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=8B=E6=9D=BF=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 43 +++++++++++++++++---------------- src/views/newScheduledBoard.vue | 6 +++-- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 22c22a3..aa8bca1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -14,32 +14,33 @@ const routes = [ path: '/home', name: 'home', component:Home, - }, + } + // , // { // path: '/', // name: 'home2', // component: Home, // }, - { - path: '/orderBoard', - name: 'orderBoard', - component: () => import('../views/orderBoard.vue'), - }, - { - path: '/scheduledBoard', - name: 'scheduledBoard', - component: () => import('../views/scheduledBoard.vue'), - }, - { - path: '/reportAbnormal', - name: 'reportAbnormal', - component: () => import('../views/reportAbnormal.vue'), - }, - { - path: '/productOutBoard', - name: 'productOutBoard', - component: () => import('../views/productOutBoard.vue'), - } + // { + // path: '/orderBoard', + // name: 'orderBoard', + // component: () => import('../views/orderBoard.vue'), + // }, + // { + // path: '/scheduledBoard', + // name: 'scheduledBoard', + // component: () => import('../views/scheduledBoard.vue'), + // }, + // { + // path: '/reportAbnormal', + // name: 'reportAbnormal', + // component: () => import('../views/reportAbnormal.vue'), + // }, + // { + // path: '/productOutBoard', + // name: 'productOutBoard', + // component: () => import('../views/productOutBoard.vue'), + // } ]; const router = new VueRouter({ diff --git a/src/views/newScheduledBoard.vue b/src/views/newScheduledBoard.vue index 6d1acd4..cb90771 100644 --- a/src/views/newScheduledBoard.vue +++ b/src/views/newScheduledBoard.vue @@ -76,7 +76,10 @@ dataType: "json", success: (data) => { if (data.number==999) { - + that.pieList=data.pieList; + that.barList=data.barList; + this.draw(); + this.draw2() }else { that.number1=data.number; that.pieList=data.pieList; @@ -531,7 +534,6 @@ }, 4000*Number(that.refreshTime)); }, }) - }, getIp(){ console.log(localStorage.getItem("tvIP"))