diff --git a/dist.zip b/dist.zip index 02b1a3e5..7fbc9fdb 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/store/index.js b/src/store/index.js index 54ac5d88..c8320b65 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -45,16 +45,16 @@ export default new Vuex.Store({ // UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试 // FILEURL:'http://10.0.1.43:6023/image/',//测试 BASEURL: baseUrl ? baseUrl : window.location.protocol + '//' + window.location.host + '/', // - // UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', // - // FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口 + UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', // + FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口 /* 2022-05-16 */ // tag: 部署河南项目时,需要打开这两行代码 // UPLOADURL: 'http://124.71.178.44:100/upload/image', // FILEURL: 'http://124.71.178.44:100/image/', /* 2022-06-06 */ // BASEURL:'http://192.168.34.174:6023/', - UPLOADURL: 'http://192.168.34.125:6023/upload/image', - FILEURL: 'http://192.168.34.125:6023/image/', + // UPLOADURL: 'http://192.168.34.125:6023/upload/image', + // FILEURL: 'http://192.168.34.125:6023/image/', // UPLOADURL:'http://192.168.34.246:6023/upload/image', // FILEURL:'http://192.168.34.246:6023/image', diff --git a/src/views/projectAdmin/jlw/laborManage/index.vue b/src/views/projectAdmin/jlw/laborManage/index.vue index 9b4df583..94b847bf 100644 --- a/src/views/projectAdmin/jlw/laborManage/index.vue +++ b/src/views/projectAdmin/jlw/laborManage/index.vue @@ -2,10 +2,10 @@
- +
- +
@@ -24,7 +24,7 @@
- +
@@ -42,15 +42,75 @@ import centerBottom from './centerBottom' import rightTop from './rightTop' import rightCenter from './rightCenter' import rightBottom from './rightBottom' +import { + selectProjectWorkerStatisticsApi, +} from "@/assets/js/api/dataBoard.js"; export default { components: { leftTop,leftCenter,leftBottom,centerTop,centerBottom,rightTop,rightCenter,rightBottom }, data() { return { - + statisticsCount: { + attendancePersonNum: 0, + educationPersonNum: 0, + workercount: { + lwPersonYesterdayAdd: 0, + eduPersonTotal: 0, + jfGlPersonTotal: 0, + age18: 0, + age18to25: 0, + womanPersonTotal: 0, + lsPersonTotal: 0, + jlGlPersonTotal: 0, + age45to60: 0, + lwPersonTotal: 0, + manPersonTotal: 0, + totalPerson: 0, + age25to35: 0, + glPersonTotal: 0, + yfGlPersonTotal: 0, + avgage: 0, + age35to45: 0, + glPersonYesterdayAdd: 0, + age60: 0, + }, + devcount: { ufaceDevNum: 0, videoNum: 0, environmentDevNum: 0 }, + presencecount: { + jfGlPersonTotal: 0, + age18: 0, + age18to25: 0, + womanPersonTotal: 0, + lsPersonTotal: 0, + jlGlPersonTotal: 0, + age45to60: 0, + lwPersonTotal: 0, + manPersonTotal: 0, + totalPerson: 0, + age25to35: 0, + glPersonTotal: 0, + yfGlPersonTotal: 0, + avgage: 0, + age35to45: 0, + age60: 0, + }, + }, }; }, + mounted(){ + this.getStatistics() + }, + methods:{ + //项目人员统计 + getStatistics() { + selectProjectWorkerStatisticsApi({ + sn: this.$store.state.projectSn, + }).then((res) => { + console.log('项目人员统计',res); + this.statisticsCount = res.result; + }) + } + } }; diff --git a/src/views/projectAdmin/jlw/laborManage/leftCenter.vue b/src/views/projectAdmin/jlw/laborManage/leftCenter.vue index a95478f2..266f76b7 100644 --- a/src/views/projectAdmin/jlw/laborManage/leftCenter.vue +++ b/src/views/projectAdmin/jlw/laborManage/leftCenter.vue @@ -7,7 +7,7 @@
- {{ '62,590' }} + {{ statisticsCount.workercount.totalPerson }}
@@ -16,13 +16,13 @@
- +
- {{ 62590 }} + {{ statisticsCount.educationPersonNum }}
- {{ '特殊工种人数' }} + {{ '在场总人数' }}
@@ -30,7 +30,19 @@
- {{ '89%'}} + {{ + ( + (isNaN( + statisticsCount.workercount.manPersonTotal / + (statisticsCount.workercount.womanPersonTotal + + statisticsCount.workercount.manPersonTotal) + ) + ? 0 + : statisticsCount.workercount.manPersonTotal / + (statisticsCount.workercount.womanPersonTotal + + statisticsCount.workercount.manPersonTotal)) * 100 + ).toFixed(2) + }}%
{{ '在职男女比例' }} @@ -38,13 +50,13 @@
- +
- {{ 62590}} + {{ statisticsCount.workercount.totalPerson }}
- {{ '入场培训人数' }} + {{ '培训总人数' }}
@@ -60,6 +72,9 @@ export default { title: { type: String, default: "default title" + }, + statisticsCount:{ + type: Object, } }, data() { @@ -67,8 +82,6 @@ export default { }; }, - - } diff --git a/src/views/projectAdmin/jlw/laborManage/leftTop.vue b/src/views/projectAdmin/jlw/laborManage/leftTop.vue index 3863b12d..abe12b69 100644 --- a/src/views/projectAdmin/jlw/laborManage/leftTop.vue +++ b/src/views/projectAdmin/jlw/laborManage/leftTop.vue @@ -111,61 +111,14 @@