| | |
| | | NProgress.start() |
| | | if (getToken()) { |
| | | to.meta.title && store.dispatch('settings/setTitle', to.meta.title) |
| | | console.log(to.path) |
| | | /* has token*/ |
| | | if (to.path === '/login') { |
| | | next({ path: '/' }) |
| | |
| | | hidden: true, |
| | | }, |
| | | { |
| | | path: "", |
| | | path: "/", |
| | | component: Layout, |
| | | redirect: "index", |
| | | children: [ |
| | |
| | | return (row.userName == null || row.insState == 3 || row.insState == 5) && this.checkPermi(['update:product:onPlan']) |
| | | }, |
| | | }, |
| | | { |
| | | name: "查看工时", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | this.viewManHour(row); |
| | | }, |
| | | showHide: (row) => { |
| | | return this.checkPermi(['get:working:hours:byOrder']) |
| | | }, |
| | | }, |
| | | // { |
| | | // name: "查看工时", |
| | | // type: "text", |
| | | // clickFun: (row) => { |
| | | // this.viewManHour(row); |
| | | // }, |
| | | // showHide: (row) => { |
| | | // return this.checkPermi(['get:working:hours:byOrder']) |
| | | // }, |
| | | // }, |
| | | { |
| | | name: "检验", |
| | | type: "text", |