Browse Source

看板改变

master
ruanqi 4 years ago
parent
commit
d9c4900530
  1. 43
      src/router/index.js
  2. 6
      src/views/newScheduledBoard.vue

43
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({

6
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"))

Loading…
Cancel
Save