From 4267885e710b75de5df01b1976f643c10df05e45 Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Thu, 17 Mar 2022 13:05:15 +0800 Subject: [PATCH] xigai --- hb_client/.env.production | 2 +- hb_client/src/api/hrm.js | 4 +- hb_client/src/views/bigScreen/index.vue | 4 +- hb_client/src/views/inm/product.vue | 11 + hb_client/src/views/personnel/userupdate.vue | 511 ++++++++++--------- hb_client/src/views/sam/contract.vue | 5 + hb_client/src/views/wpm/productjy.vue | 12 +- 7 files changed, 298 insertions(+), 251 deletions(-) diff --git a/hb_client/.env.production b/hb_client/.env.production index a6efc10..87cb653 100644 --- a/hb_client/.env.production +++ b/hb_client/.env.production @@ -2,6 +2,6 @@ ENV = 'production' # base api -VUE_APP_BASE_API = 'http://49.232.14.174:2222/api' +VUE_APP_BASE_API = 'http://hberp.com/api' #VUE_APP_BASE_API = 'http://127.0.0.1:8000/api' 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/views/bigScreen/index.vue b/hb_client/src/views/bigScreen/index.vue index ee5698a..b9b7fbb 100644 --- a/hb_client/src/views/bigScreen/index.vue +++ b/hb_client/src/views/bigScreen/index.vue @@ -422,9 +422,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 @@ + + + -