Compare commits
2 Commits
ab3b77dbac
...
3e5ffbacf8
Author | SHA1 | Date |
---|---|---|
|
3e5ffbacf8 | |
|
eacaab5234 |
|
@ -8,6 +8,7 @@ import workTrain from './workTrain/index'
|
||||||
import special from './special/index'
|
import special from './special/index'
|
||||||
import dict from './dict/index'
|
import dict from './dict/index'
|
||||||
import attendance from './attendance/index'
|
import attendance from './attendance/index'
|
||||||
|
import insurance from './insurance/index'
|
||||||
export default {
|
export default {
|
||||||
project,
|
project,
|
||||||
dept,
|
dept,
|
||||||
|
@ -18,5 +19,6 @@ export default {
|
||||||
workTrain,
|
workTrain,
|
||||||
special,
|
special,
|
||||||
dict,
|
dict,
|
||||||
attendance
|
attendance,
|
||||||
|
insurance
|
||||||
}
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
const getProjectInsuranceList=(deptId,projectId)=> {
|
||||||
|
return request({
|
||||||
|
url: `bgscreen/insurance/getProjectInsuranceList?deptId=${deptId}&projectId=${projectId}`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export default{
|
||||||
|
getProjectInsuranceList
|
||||||
|
}
|
|
@ -538,6 +538,7 @@ export default {
|
||||||
this.majorInterval = setInterval(this.timer, 5000);
|
this.majorInterval = setInterval(this.timer, 5000);
|
||||||
//正在发生 定时器
|
//正在发生 定时器
|
||||||
this.warningInterval = setInterval(this.automaticRoll, 5000);
|
this.warningInterval = setInterval(this.automaticRoll, 5000);
|
||||||
|
setInterval(this.getDeptWorksList, 60000);
|
||||||
},
|
},
|
||||||
doPrjProcess(n, text) {
|
doPrjProcess(n, text) {
|
||||||
this.prjProcessNav = n;
|
this.prjProcessNav = n;
|
||||||
|
@ -554,24 +555,45 @@ export default {
|
||||||
this.staffText = n==0?'在岗人数':'今日出勤'
|
this.staffText = n==0?'在岗人数':'今日出勤'
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
this.surveyUrl = 'images/survey_icon_4.png'
|
this.surveyUrl = 'images/survey_icon_4.png'
|
||||||
this.laborPersonnelData = [
|
|
||||||
{ text: "总包人员", value: this.prjInfo?.servicePersonnel||0 },
|
|
||||||
{ text: "监理人员", value: this.prjInfo?.supervisorPersonnel||0 },
|
|
||||||
{ text: "劳务人员", value: this.prjInfo?.generalContractor||0 },
|
|
||||||
]
|
|
||||||
let sum=0;
|
|
||||||
this.laborPersonnelData.forEach(it=>{
|
|
||||||
sum+=it.value;
|
|
||||||
})
|
|
||||||
this.laborPersonnelTotal = sum;
|
|
||||||
} else {
|
} else {
|
||||||
this.surveyUrl = 'images/survey_icon_5.png'
|
this.surveyUrl = 'images/survey_icon_5.png'
|
||||||
this.laborPersonnelTotal = 133;
|
}
|
||||||
this.laborPersonnelData = [
|
this.getDeptWorksList();
|
||||||
{ text: "总包人员", value: 25 },
|
},
|
||||||
{ text: "监理人员", value: 3 },
|
//查询在岗人数
|
||||||
{ text: "劳务人员", value: 105 },
|
getDeptWorksList(){
|
||||||
]
|
let deptId = '';
|
||||||
|
// if (this.dept && this.dept.id != 0) {
|
||||||
|
// deptId = this.dept.id;
|
||||||
|
// }
|
||||||
|
if (this.infoNav == 0) {
|
||||||
|
//查询在岗人数
|
||||||
|
this.$api.attendance.getDeptWorksList(deptId).then(d => {
|
||||||
|
this.laborPersonnelTotal=0;
|
||||||
|
this.laborPersonnelData=[];
|
||||||
|
if(d.rows.length>0 && d.rows[0]!=null){
|
||||||
|
this.laborPersonnelTotal += d.rows[0].servicePersonnel;
|
||||||
|
this.laborPersonnelData.push({text: "劳务人员", value: d.rows[0].servicePersonnel});
|
||||||
|
this.laborPersonnelTotal += d.rows[0].supervisorPersonnel;
|
||||||
|
this.laborPersonnelData.push({text: "监理人员", value: d.rows[0].supervisorPersonnel});
|
||||||
|
this.laborPersonnelTotal += d.rows[0].contractorPersonnel;
|
||||||
|
this.laborPersonnelData.push({text: "总包人员", value: d.rows[0].contractorPersonnel});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
//查询出勤人数
|
||||||
|
this.$api.attendance.getWorkAttendanceList(deptId).then(d => {
|
||||||
|
this.laborPersonnelTotal=0;
|
||||||
|
this.laborPersonnelData=[];
|
||||||
|
if(d.rows.length>0 && d.rows[0]!=null){
|
||||||
|
this.laborPersonnelTotal += d.rows[0].servicePersonnel;
|
||||||
|
this.laborPersonnelData.push({text: "劳务人员", value: d.rows[0].servicePersonnel});
|
||||||
|
this.laborPersonnelTotal += d.rows[0].supervisorPersonnel;
|
||||||
|
this.laborPersonnelData.push({text: "监理人员", value: d.rows[0].supervisorPersonnel});
|
||||||
|
this.laborPersonnelTotal += d.rows[0].contractorPersonnel;
|
||||||
|
this.laborPersonnelData.push({text: "总包人员", value: d.rows[0].contractorPersonnel});
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//设备概况点击事件定时器方法
|
//设备概况点击事件定时器方法
|
||||||
|
|
|
@ -207,13 +207,13 @@
|
||||||
</module-one-1-1>
|
</module-one-1-1>
|
||||||
<module-one-1-1 label="保险采购明细">
|
<module-one-1-1 label="保险采购明细">
|
||||||
<div class="quality-table special-table">
|
<div class="quality-table special-table">
|
||||||
<el-table :data="insuranceData" style="width: 100%;background: transparent;" height="265"
|
<el-table :data="insuranceDataList" style="width: 100%;background: transparent;" height="265"
|
||||||
ref="fbsubordinateUnit">
|
ref="fbsubordinateUnit">
|
||||||
|
|
||||||
<el-table-column prop="name" label="项目名称"> </el-table-column>
|
<el-table-column prop="projectName" label="项目名称" align="left" min-width="180"> </el-table-column>
|
||||||
<el-table-column prop="cnt" label="安责险" class-name="td-left">
|
<el-table-column prop="azxstate" label="安责险" class-name="td-center" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<svg v-if="scope.row.dt1" style="width: 1em;height: 1em;position: relative;
|
<svg v-if="scope.row.azxstate=='已办理'" style="width: 1em;height: 1em;position: relative;
|
||||||
top: -2px;vertical-align: middle;fill: currentColor;overflow: hidden;"
|
top: -2px;vertical-align: middle;fill: currentColor;overflow: hidden;"
|
||||||
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||||
p-id="3100">
|
p-id="3100">
|
||||||
|
@ -229,12 +229,12 @@
|
||||||
d="M512 981.333333C252.8 981.333333 42.666667 771.2 42.666667 512S252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333z m44.245333-469.333333l159.914667-159.914667a31.274667 31.274667 0 1 0-44.245333-44.245333L512 467.754667 352.085333 307.84a31.274667 31.274667 0 1 0-44.245333 44.245333L467.754667 512l-159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333 44.245333L512 556.245333l159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333-44.245333L556.245333 512z"
|
d="M512 981.333333C252.8 981.333333 42.666667 771.2 42.666667 512S252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333z m44.245333-469.333333l159.914667-159.914667a31.274667 31.274667 0 1 0-44.245333-44.245333L512 467.754667 352.085333 307.84a31.274667 31.274667 0 1 0-44.245333 44.245333L467.754667 512l-159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333 44.245333L512 556.245333l159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333-44.245333L556.245333 512z"
|
||||||
fill="#F5222D" p-id="3473"></path>
|
fill="#F5222D" p-id="3473"></path>
|
||||||
</svg>
|
</svg>
|
||||||
<span style="color:#fff">{{ scope.row.dt1 }}</span>
|
<span style="color:#fff">{{ scope.row.azxstate }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="cnt3" class-name="td-left" label="一切险">
|
<el-table-column prop="yqxstate" class-name="td-center" label="一切险" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<svg v-if="scope.row.dt2" style="width: 1em;height: 1em;position: relative;
|
<svg v-if="scope.row.yqxstate=='已办理'" style="width: 1em;height: 1em;position: relative;
|
||||||
top: -2px;vertical-align: middle;fill: currentColor;overflow: hidden;"
|
top: -2px;vertical-align: middle;fill: currentColor;overflow: hidden;"
|
||||||
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||||
p-id="3100">
|
p-id="3100">
|
||||||
|
@ -250,7 +250,7 @@
|
||||||
d="M512 981.333333C252.8 981.333333 42.666667 771.2 42.666667 512S252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333z m44.245333-469.333333l159.914667-159.914667a31.274667 31.274667 0 1 0-44.245333-44.245333L512 467.754667 352.085333 307.84a31.274667 31.274667 0 1 0-44.245333 44.245333L467.754667 512l-159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333 44.245333L512 556.245333l159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333-44.245333L556.245333 512z"
|
d="M512 981.333333C252.8 981.333333 42.666667 771.2 42.666667 512S252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333z m44.245333-469.333333l159.914667-159.914667a31.274667 31.274667 0 1 0-44.245333-44.245333L512 467.754667 352.085333 307.84a31.274667 31.274667 0 1 0-44.245333 44.245333L467.754667 512l-159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333 44.245333L512 556.245333l159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333-44.245333L556.245333 512z"
|
||||||
fill="#F5222D" p-id="3473"></path>
|
fill="#F5222D" p-id="3473"></path>
|
||||||
</svg>
|
</svg>
|
||||||
<span style="color:#fff">{{ scope.row.dt2 }}</span>
|
<span style="color:#fff">{{ scope.row.yqxstate }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -323,7 +323,7 @@ export default {
|
||||||
//特种作业人员
|
//特种作业人员
|
||||||
specialDataList:[],
|
specialDataList:[],
|
||||||
//保险采购明细
|
//保险采购明细
|
||||||
insuranceData: [
|
insuranceDataList: [
|
||||||
{ name: '荟锦坊一期', dt1: '已购买', dt2: '正在办理' },
|
{ name: '荟锦坊一期', dt1: '已购买', dt2: '正在办理' },
|
||||||
{ name: '泾河智谷一期', dt1: '正在办理', dt2: '正在办理' },
|
{ name: '泾河智谷一期', dt1: '正在办理', dt2: '正在办理' },
|
||||||
{ name: '泊域人才中心', dt1: '正在办理', dt2: '正在办理' },
|
{ name: '泊域人才中心', dt1: '正在办理', dt2: '正在办理' },
|
||||||
|
@ -337,11 +337,6 @@ export default {
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.init();
|
this.init();
|
||||||
this.getWorkFileList();
|
|
||||||
this.getWorkTrainList();
|
|
||||||
this.getEmergencyDrillList();
|
|
||||||
this.getProjectSpecialView();
|
|
||||||
this.getDeptWorksList();
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$bus.$on("deptChange", dept => {
|
this.$bus.$on("deptChange", dept => {
|
||||||
|
@ -350,11 +345,8 @@ export default {
|
||||||
this.getWorkTrainList();
|
this.getWorkTrainList();
|
||||||
this.getEmergencyDrillList();
|
this.getEmergencyDrillList();
|
||||||
this.getProjectSpecialView();
|
this.getProjectSpecialView();
|
||||||
if (this.infoNav == 0) {
|
this.getDeptWorksList();
|
||||||
this.getDeptWorksList();
|
this.getProjectInsuranceList();
|
||||||
} else {
|
|
||||||
this.getWorkAttendanceList();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -423,7 +415,9 @@ export default {
|
||||||
if (this.dept && this.dept.id != 0) {
|
if (this.dept && this.dept.id != 0) {
|
||||||
deptId = this.dept.id;
|
deptId = this.dept.id;
|
||||||
}
|
}
|
||||||
this.$api.attendance.getDeptWorksList(deptId).then(d => {
|
if (this.infoNav == 0) {
|
||||||
|
//查询在岗人数
|
||||||
|
this.$api.attendance.getDeptWorksList(deptId).then(d => {
|
||||||
this.laborPersonnelTotal=0;
|
this.laborPersonnelTotal=0;
|
||||||
this.laborPersonnelData=[];
|
this.laborPersonnelData=[];
|
||||||
if(d.rows.length>0 && d.rows[0]!=null){
|
if(d.rows.length>0 && d.rows[0]!=null){
|
||||||
|
@ -435,14 +429,9 @@ export default {
|
||||||
this.laborPersonnelData.push({text: "总包人员", value: d.rows[0].contractorPersonnel});
|
this.laborPersonnelData.push({text: "总包人员", value: d.rows[0].contractorPersonnel});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
} else {
|
||||||
//查询出勤人数
|
//查询出勤人数
|
||||||
getWorkAttendanceList(){
|
this.$api.attendance.getWorkAttendanceList(deptId).then(d => {
|
||||||
let deptId = '';
|
|
||||||
if (this.dept && this.dept.id != 0) {
|
|
||||||
deptId = this.dept.id;
|
|
||||||
}
|
|
||||||
this.$api.attendance.getWorkAttendanceList(deptId).then(d => {
|
|
||||||
this.laborPersonnelTotal=0;
|
this.laborPersonnelTotal=0;
|
||||||
this.laborPersonnelData=[];
|
this.laborPersonnelData=[];
|
||||||
if(d.rows.length>0 && d.rows[0]!=null){
|
if(d.rows.length>0 && d.rows[0]!=null){
|
||||||
|
@ -454,6 +443,19 @@ export default {
|
||||||
this.laborPersonnelData.push({text: "总包人员", value: d.rows[0].contractorPersonnel});
|
this.laborPersonnelData.push({text: "总包人员", value: d.rows[0].contractorPersonnel});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getProjectInsuranceList(){
|
||||||
|
let deptId = '';
|
||||||
|
if (this.dept && this.dept.id != 0) {
|
||||||
|
deptId = this.dept.id;
|
||||||
|
}
|
||||||
|
this.$api.insurance.getProjectInsuranceList(deptId).then(d => {
|
||||||
|
this.insuranceDataList=[];
|
||||||
|
if(d.rows.length>0 && d.rows[0]!=null){
|
||||||
|
this.insuranceDataList = d.rows;
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
fmt(n) {
|
fmt(n) {
|
||||||
n = "" + n;
|
n = "" + n;
|
||||||
|
@ -526,11 +528,10 @@ export default {
|
||||||
this.staffText = text
|
this.staffText = text
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
this.surveyUrl = 'images/survey_icon_4.png'
|
this.surveyUrl = 'images/survey_icon_4.png'
|
||||||
this.getDeptWorksList();
|
|
||||||
} else {
|
} else {
|
||||||
this.surveyUrl = 'images/survey_icon_5.png'
|
this.surveyUrl = 'images/survey_icon_5.png'
|
||||||
this.getWorkAttendanceList();
|
|
||||||
}
|
}
|
||||||
|
this.getDeptWorksList();
|
||||||
},
|
},
|
||||||
doSafeNav(n, t) {
|
doSafeNav(n, t) {
|
||||||
this.safeNav = n;
|
this.safeNav = n;
|
||||||
|
@ -548,6 +549,14 @@ export default {
|
||||||
this.warningInterval = setInterval(this.automaticRoll, 5000);
|
this.warningInterval = setInterval(this.automaticRoll, 5000);
|
||||||
//预警类型 定时器
|
//预警类型 定时器
|
||||||
this.warningTypeInterval = setInterval(this.automaticRollType, 5000);
|
this.warningTypeInterval = setInterval(this.automaticRollType, 5000);
|
||||||
|
|
||||||
|
//定时器|一分钟执行一次
|
||||||
|
setInterval(this.getWorkFileList, 60000);
|
||||||
|
setInterval(this.getWorkTrainList, 60000);
|
||||||
|
setInterval(this.getEmergencyDrillList, 60000);
|
||||||
|
setInterval(this.getProjectSpecialView, 60000);
|
||||||
|
setInterval(this.getDeptWorksList, 60000);
|
||||||
|
setInterval(this.getProjectInsuranceList, 60000);
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -694,6 +703,10 @@ export default {
|
||||||
text-align: left !important;
|
text-align: left !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td.td-center {
|
||||||
|
text-align: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
.file-list {
|
.file-list {
|
||||||
max-height: calc(100% - 90px);
|
max-height: calc(100% - 90px);
|
||||||
margin-right: 12px;
|
margin-right: 12px;
|
||||||
|
|
Loading…
Reference in New Issue