update code
parent
9b2550183f
commit
6792e98194
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
|
@ -18,4 +18,14 @@
|
|||
}
|
||||
.my-module-title{
|
||||
background: url(../images/one/2x1.png) no-repeat;background-size: 100%;
|
||||
}
|
||||
|
||||
|
||||
.mytable.is-scroll .el-table__body-wrapper::-webkit-scrollbar{
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
.mytable.is-scroll .el-table__body-wrapper::-webkit-scrollbar-thumb {
|
||||
background-color: rgb(1, 169, 255);
|
||||
border-radius: 4px;
|
||||
}
|
|
@ -9,7 +9,7 @@
|
|||
<link rel="stylesheet" href="/cdn/element-ui/lib/theme-chalk/index.css">
|
||||
<link rel="stylesheet" href="css/largeScreenLayout.css?v=20240415">
|
||||
<link rel="stylesheet" href="css/largeScreenStyle.css?v=20240415">
|
||||
<link rel="stylesheet" href="css/new.css?v=2024052501">
|
||||
<link rel="stylesheet" href="css/new.css?v=2024052901">
|
||||
|
||||
<link rel="stylesheet" href="css/sichuanTibet.css?v=2024103201">
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<template>
|
||||
<div :class="red ? 'head-title red-head' : 'head-title'" class="main-header" :key="nav">
|
||||
<div :class="red ? 'head-title red-head' : 'head-title'" class="main-header" :key="nav">
|
||||
<div class="head-title-label">
|
||||
产发工程数字管理平台
|
||||
<img src="cflogo.png" style="position: absolute;height: 24px;left: 4px;top: 28px;">
|
||||
<span style="margin-left: 108px;display: block;margin-top: 3px;">产发工程数字管理平台</span>
|
||||
</div>
|
||||
<div class="head-title-tab">
|
||||
<div v-if="!isTypeBuser" :class="nav == 1 ? 'head-nav active' : 'head-nav'" @click="pageJump(1, '#/')">项目概况
|
||||
|
|
|
@ -212,6 +212,9 @@ export default {
|
|||
this.$api.dict('smz_ssp_checkstate').then(d => {
|
||||
this.checkStateDicts = d || [];
|
||||
});
|
||||
if(!this.$root.project){
|
||||
return;
|
||||
}
|
||||
this.projectId = this.$root.project.id;
|
||||
if (this.projectId == 0 && this.$root.projects.length > 1) {
|
||||
this.projectId = this.$root.projects[1].id;
|
||||
|
|
|
@ -89,8 +89,12 @@
|
|||
@click="doShowWorkTrain(1)">
|
||||
<enginChart ref="chart4" :height="300"></enginChart>
|
||||
</module-one-1-1>
|
||||
<module-one-1-1 label="特种作业人员">
|
||||
<div class="quality-table special-table">
|
||||
<module-one-1-1 label="特种作业人员" style="position: relative;">
|
||||
<img src="images/icon2001.png" v-if="isTypeBuser()"
|
||||
style="position: absolute;cursor: pointer;right: 20px;top: 13px;z-index: 9;"
|
||||
@click="doSpecialRowClick">
|
||||
<SpecialList ref="specList" v-if="isTypeBuser()"></SpecialList>
|
||||
<div v-else class="quality-table special-table">
|
||||
<el-table :data="specialDataList" class="mytable"
|
||||
style="width: 100%;background: transparent;" height="265" ref="fbsubordinateUnit"
|
||||
@row-click="doSpecialRowClick">
|
||||
|
@ -324,12 +328,13 @@ import debounce from 'lodash.debounce'
|
|||
import enginChart from './engin/enginChart.vue'
|
||||
import workTrainListDlg from './safe/workTrainListDlg.vue'
|
||||
import ProblemmodifyList from './components/ProblemmodifyList.vue'
|
||||
import SpecialList from './safe/SpecialList.vue'
|
||||
export default {
|
||||
components: {
|
||||
worktrainDlg,
|
||||
projectSpecialDlg,
|
||||
ProblemmodifyDetail, AttendanceDetailDialog,
|
||||
projectInsuranceDlg, JobWorkerDialog, enginChart, workTrainListDlg,ProblemmodifyList
|
||||
projectInsuranceDlg, JobWorkerDialog, enginChart, workTrainListDlg,ProblemmodifyList,SpecialList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -452,7 +457,7 @@ export default {
|
|||
this.initMe();
|
||||
}
|
||||
setTimeout(()=>{
|
||||
this.dtChange();
|
||||
this.dtChange(true);
|
||||
},400);
|
||||
},
|
||||
methods: {
|
||||
|
@ -501,6 +506,10 @@ export default {
|
|||
this.$refs.probDlg.showDialog(a, 0, this.safeNav, this.selDate);
|
||||
},
|
||||
doSpecialRowClick(row) {
|
||||
if(this.isTypeBuser()){
|
||||
row=this.$root.projects[1];
|
||||
row.projectId=row.id;
|
||||
}
|
||||
row.title = row.projectName + "特种作业人员清单";
|
||||
this.$refs.projectSpecialDlg.showDialog(row);
|
||||
},
|
||||
|
@ -702,13 +711,11 @@ export default {
|
|||
n = "" + n;
|
||||
return " ".substring(0, 3 - n.length) + n;
|
||||
},
|
||||
dtChange() {
|
||||
if(this.isTypeBuser() && this.$refs.probList){
|
||||
this.$refs.probList.loadData(0, this.safeNav, this.selDate);
|
||||
}
|
||||
this.doDeptChane();
|
||||
dtChange(init) {
|
||||
|
||||
this.doDeptChane(init);
|
||||
},
|
||||
doDeptChane() {
|
||||
doDeptChane(init) {
|
||||
let postData = {
|
||||
deptId: this.dept?.id || 0,
|
||||
roleType: this.safeNav,
|
||||
|
@ -721,7 +728,14 @@ export default {
|
|||
postData.endDate = this.$dt(this.selDate[1]).format("YYYY-MM-DD");
|
||||
}
|
||||
this.$api.problemmodify.safetySummary(postData).then(d => {
|
||||
|
||||
if(init){
|
||||
if(this.isTypeBuser() && this.$refs.probList){
|
||||
this.$refs.probList.loadData(0, this.safeNav, this.selDate);
|
||||
}
|
||||
if(this.$refs.specList){
|
||||
this.$refs.specList.initData();
|
||||
}
|
||||
}
|
||||
this.summary = (d || []).map(it => {
|
||||
return {
|
||||
text: it.problemArea,
|
||||
|
@ -823,6 +837,7 @@ export default {
|
|||
|
||||
//定时器|一分钟执行一次
|
||||
this.getWorkFileList();
|
||||
|
||||
//setInterval(this.getWorkFileList, 60000);
|
||||
//setInterval(this.getWorkTrainList, 60000);
|
||||
//setInterval(this.getEmergencyDrillList, 60000);
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
@click="doQueryGroup(it.dictValue, 'a')" v-for="(it, idx) in dict1" :key="it.dictValue">{{
|
||||
it.dictLabel }}</div>
|
||||
</div>
|
||||
<div v-if="!projectInfo || projectInfo.id == 0">
|
||||
<div v-if="(!projectInfo || projectInfo.id == 0)&& !isTypeBuser()">
|
||||
<div class="idle-list problemmodify_list" style="padding:0px 10px">
|
||||
<el-table style="width: 100%" ref="wgzp" :row-style="rowStyle" :data="dataList1" height="233"
|
||||
class="el-table">
|
||||
|
@ -92,7 +92,7 @@
|
|||
@click="doQueryGroup(it.dictValue, 'b')" v-for="(it, idx) in dict2" :key="it.dictValue">{{
|
||||
it.dictLabel }}</div>
|
||||
</div>
|
||||
<div v-if="!projectInfo || projectInfo.id == 0">
|
||||
<div v-if="(!projectInfo || projectInfo.id == 0) && !isTypeBuser()">
|
||||
<div class="idle-list problemmodify_list" style="padding:0px 10px">
|
||||
<el-table style="width: 100%" ref="wgzp" :row-style="rowStyle" :data="dataList2" height="233"
|
||||
class="el-table">
|
||||
|
@ -203,7 +203,7 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
mounted() {
|
||||
mounted() {
|
||||
this.$bus.$on(
|
||||
"loadProjects",
|
||||
debounce((prjs) => {
|
||||
|
@ -224,6 +224,9 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
isTypeBuser(){
|
||||
return this.$root.isTypeBuser;
|
||||
},
|
||||
doShowCheckingListDlg(lvl1) {
|
||||
this.$refs.listDlg.showDialog({
|
||||
lvl1: lvl1,
|
||||
|
@ -262,16 +265,24 @@ export default {
|
|||
} else {
|
||||
this.nav2 = nav;
|
||||
}
|
||||
if (!this.projectInfo || this.projectInfo.id == 0) {
|
||||
if(!this.projectInfo){
|
||||
return;
|
||||
}
|
||||
if ((!this.projectInfo || this.projectInfo.id == 0) && !this.isTypeBuser() ){
|
||||
this.loadGroupData(nav, t);
|
||||
} else {
|
||||
this.queryDataList(nav, t);
|
||||
}
|
||||
|
||||
},
|
||||
queryDataList(nav, t) {
|
||||
queryDataList(nav, t) {
|
||||
let prjId=this.$root.project.id;
|
||||
if(prjId==0 && this.$root.projects.length>1){
|
||||
prjId=this.$root.projects[1].id;
|
||||
this.projectInfo=this.$root.projects[1];
|
||||
}
|
||||
let postData = {
|
||||
projectId: this.projectInfo.id,
|
||||
projectId: prjId,
|
||||
dataTypeLvl2:nav
|
||||
}
|
||||
this.$api.projectChecking.queryProjectCheckingList(1, 20, postData).then(d => {
|
||||
|
|
|
@ -0,0 +1,107 @@
|
|||
<template>
|
||||
<div class="specia-lList">
|
||||
<div class="warning-info-title" style="padding-left: 8px;font-size:14px;">
|
||||
<div :class="nav == 'all' ? 'active' : ''" @click="doNav('all')">全部数据({{ tags.all }})</div>
|
||||
<div :class="nav == 'wgq' ? 'active' : ''" @click="doNav('wgq')">未过期({{ tags.wgq }})</div>
|
||||
<div :class="nav == 'ygq' ? 'active' : ''" @click="doNav('ygq')">已过期({{ tags.ygq }})</div>
|
||||
</div>
|
||||
<div v-if="dataList.length>0" class="quality-table special-table">
|
||||
<el-table :data="dataList" class="mytable is-scroll" style="width: 100%;background: transparent;" height="400">
|
||||
<el-table-column prop="deptName" align="center" label="所属单位" width="100"></el-table-column>
|
||||
<el-table-column prop="name" align="center" label="人员名称" width="80"></el-table-column>
|
||||
|
||||
<el-table-column label="人员类型" align="center" prop="specialTypeName"></el-table-column>
|
||||
|
||||
<el-table-column label="证书过期时间" align="center" prop="credentialExpirationTime"></el-table-column>
|
||||
|
||||
</el-table>
|
||||
</div>
|
||||
<div v-else style="text-align: center;padding-top:20px;">
|
||||
<img src="images/nodata.png" style="width: 240px;">
|
||||
<div style="text-align: center;">暂无数据</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
nav:"all",
|
||||
dataList: [],
|
||||
specialType:"0",
|
||||
prjId:0,
|
||||
tags:{
|
||||
all:0,
|
||||
wgq:0,
|
||||
qgq:0
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
||||
},
|
||||
|
||||
methods: {
|
||||
doNav(n){
|
||||
this.nav=n;
|
||||
this.getList();
|
||||
},
|
||||
initData(){
|
||||
this.getList();
|
||||
this.queryCount();
|
||||
},
|
||||
getList(){
|
||||
let prjId=this.$root.project.id;
|
||||
if(prjId==0 && this.$root.projects.length>1){
|
||||
prjId=this.$root.projects[1].id;
|
||||
this.projectInfo=this.$root.projects[1];
|
||||
}
|
||||
this.prjId=prjId;
|
||||
if(prjId==0){
|
||||
this.dataList=[];
|
||||
}
|
||||
this.$api.special.getProjectSpecialList(prjId,this.nav,this.specialType).then(response => {
|
||||
this.dataList = response.rows;
|
||||
});
|
||||
},
|
||||
queryCount(){
|
||||
if(this.prjId==0){
|
||||
return;
|
||||
}
|
||||
this.$api.special.findWorkSpecialCount(this.prjId,this.specialType).then(response => {
|
||||
if (response && response.data) {
|
||||
let sum = 0;
|
||||
if (response.data.notExpired) {
|
||||
sum += response.data.notExpired;
|
||||
this.tags.wgq = response.data.notExpired;
|
||||
}
|
||||
if (response.data.expired) {
|
||||
sum += response.data.expired;
|
||||
this.tags.ygq = response.data.expired;
|
||||
}
|
||||
this.tags.all = sum;
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="less">
|
||||
.specia-lList{
|
||||
.warning-info-title{
|
||||
padding:10px 0px 0px;
|
||||
}
|
||||
.quality-table{
|
||||
padding:0px;
|
||||
.mytable{
|
||||
&.is-scroll{
|
||||
.el-table__body-wrapper{
|
||||
height:210px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue