@@ -279,12 +279,14 @@ import '../components/staff-survey-chart'
import '../components/idle-list-chart'
import '../components/people-number'
import '../components/people-number'
-import woorktrainDlg from './woorktrain/indexDlg'
+import worktrainDlg from './dlg/workTrainDlg.vue'
+import projectSpecialDlg from './dlg/projectSpecialDlg.vue'
import ProblemmodifyDetail from './components/ProblemmodifyDetail.vue'
export default {
components: {
- woorktrainDlg,
+ worktrainDlg,
+ projectSpecialDlg,
ProblemmodifyDetail
},
data() {
@@ -318,12 +320,7 @@ export default {
{ text: "劳务人员", value: 20 },
],
//特种作业人员
- specialData: [
- { name: '荟锦坊一期', cnt: 11, cnt2: 2, cnt3: 0 },
- { name: '泾河智谷一期', cnt: 13, cnt2: 5, cnt3: 0 },
- { name: '泊域人才中心', cnt: 11, cnt2: 3, cnt3: 0 },
- { name: '云和悦小区', cnt: 8, cnt2: 4, cnt3: 0 },
- ],
+ specialDataList:[],
//保险采购明细
insuranceData: [
{ name: '荟锦坊一期', dt1: '已购买', dt2: '正在办理' },
@@ -342,6 +339,7 @@ export default {
this.getWorkFileList();
this.getWorkTrainList();
this.getEmergencyDrillList();
+ this.getProjectSpecialView();
},
mounted() {
this.$bus.$on("deptChange", dept => {
@@ -349,11 +347,16 @@ export default {
this.doDeptChane();
this.getWorkTrainList();
this.getEmergencyDrillList();
+ this.getProjectSpecialView();
});
},
methods: {
doProbleRowClick(a,b,c){
//this.$refs.probDlg.showDialog(a,0);
+ },
+ doSpecialRowClick(row){
+ row.title = row.projectName+"特种作业人员清单";
+ this.$refs.projectSpecialDlg.showDialog(row);
},
doShowDlgTrain(it, type) {
if (type == "0") {
@@ -397,6 +400,16 @@ export default {
this.emergencyDrillList = d.rows;
});
},
+ // 获取特种人员数据列表
+ getProjectSpecialView(){
+ let deptId = '';
+ if (this.dept && this.dept.id != 0) {
+ deptId = this.dept.id;
+ }
+ this.$api.special.getProjectSpecialView(deptId).then(d => {
+ this.specialDataList = d.rows;
+ });
+ },
fmt(n) {
n = "" + n;
return " ".substring(0, 3 - n.length) + n;
@@ -623,8 +636,9 @@ export default {
display: flex;
margin-left: 20px;
margin-right: 20px;
- margin-bottom: 30px;
+ margin-bottom: 20px;
font-size: 12px;
+ width: 91%;
}
.file-item .file-detail {