diff --git a/hb_client/src/api/hrm.js b/hb_client/src/api/hrm.js index 3aef7e2..6aca137 100644 --- a/hb_client/src/api/hrm.js +++ b/hb_client/src/api/hrm.js @@ -22,11 +22,11 @@ export function notWork(id, data) { }) } -export function getEmployee(data) { +export function getEmployee(query) { return request({ url: '/hrm/employee/', method: 'get', - data + params: query }) } diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index 1b9cb25..5012c77 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -213,7 +213,7 @@ export const asyncRoutes = [ component: Layout, redirect: '/wpm/worktask', name: 'wpm', - meta: { title: '生产执行', icon: 'execute', perms: ['equipment_set'] }, + meta: { title: '生产执行', icon: 'execute', perms: ['wpm_manage'] }, children: [ { path: 'worktask', @@ -231,20 +231,20 @@ export const asyncRoutes = [ path: 'operationdo/:id', name: 'operationdo', component: () => import('@/views/wpm/operationdo'), - meta: { title: '车间操作跳转界面', icon: 'home', perms: ['index_manage'] }, + meta: { title: '车间操作执行', icon: 'home'}, hidden: true }, { path: 'need', name: 'need', component: () => import('@/views/wpm/need'), - meta: { title: '过程检验', icon: 'processTest', perms: ['wpm_need'] } + meta: { title: '过程检验', icon: 'processTest', perms: ['wpm_test'] } }, { path: 'productjy', name: 'productjy', component: () => import('@/views/wpm/productjy'), - meta: { title: '成品检验', icon: 'finishedCheck', perms: ['wpm_productjy'] } + meta: { title: '成品检验', icon: 'finishedCheck', perms: ['wpm_test'] } }, { path: 'firstCheck', @@ -746,33 +746,33 @@ export const asyncRoutes = [ } ] }, - { - path: '/testModel', - component: Layout, - redirect: '/testModel/faceLogin/', - name: 'testModel', - meta: { title: '测试模块', icon: 'home' }, - children: [ - { - path: 'faceLogin', - name: 'faceLogin', - component: () => import('@/views/testModel/faceLogin'), - meta: { title: '人脸识别登录', icon: 'home' } - }, - { - path: 'caram', - name: 'caram', - component: () => import('@/views/testModel/caram'), - meta: { title: '相机调用', icon: 'home' } - }, - { - path: 'markImage', - name: 'markImage', - component: () => import('@/views/testModel/markImage'), - meta: { title: '图片标记', icon: 'home' } - } - ] - }, + // { + // path: '/testModel', + // component: Layout, + // redirect: '/testModel/faceLogin/', + // name: 'testModel', + // meta: { title: '测试模块', icon: 'home' }, + // children: [ + // { + // path: 'faceLogin', + // name: 'faceLogin', + // component: () => import('@/views/testModel/faceLogin'), + // meta: { title: '人脸识别登录', icon: 'home' } + // }, + // { + // path: 'caram', + // name: 'caram', + // component: () => import('@/views/testModel/caram'), + // meta: { title: '相机调用', icon: 'home' } + // }, + // { + // path: 'markImage', + // name: 'markImage', + // component: () => import('@/views/testModel/markImage'), + // meta: { title: '图片标记', icon: 'home' } + // } + // ] + // }, // 404 page must be placed at the end !!! { path: '*', redirect: '/404', hidden: true } ] diff --git a/hb_client/src/views/bigScreen/index.vue b/hb_client/src/views/bigScreen/index.vue index 30c6abd..364deba 100644 --- a/hb_client/src/views/bigScreen/index.vue +++ b/hb_client/src/views/bigScreen/index.vue @@ -653,9 +653,9 @@ getUserList() { let that = this; that.listUser = false; - getEmployee({page: 0, type: 'big_screen'}).then((response) => { + getEmployee({page: 0,type:'big_screen',show_atwork:true}).then((response) => { if (response.data) { - let list = response.data.results; + let list = response.data; let data = []; list.forEach(item => { let obj = []; diff --git a/hb_client/src/views/inm/product.vue b/hb_client/src/views/inm/product.vue index 871eaec..9c83387 100644 --- a/hb_client/src/views/inm/product.vue +++ b/hb_client/src/views/inm/product.vue @@ -48,6 +48,14 @@ + + + -