+
+
+
+
- {{ it.nickName }} |
- {{ it.jobTypeName }} |
+ {{ it.nickName }} |
+ {{ it.dName }} |
+ {{ it.deptName }} |
+ {{ it.jobTypeName }} |
+ {{ it.phonenumber }} |
-
-
@@ -255,10 +191,7 @@ export default {
projectWeight: [],
projectCategory: [],
projectLevel: [],
- projectBuildType: [],
- users11: [],//责任主体
- users4: [],//监理单位
- users2: [],//总包单位
+ projectBuildType: [],
users3: [],//分包单位
};
},
@@ -288,7 +221,8 @@ export default {
if (this.users && this.users.length > 0) {
let tmps = this.users.filter(it => it.jobTypeName == t);
if (tmps.length > 0) {
- return tmps[0].deptName;
+ let it=tmps[0];
+ return it.nickName+(it.phonenumber?`(${it.phonenumber})`:'');
}
};
return "";
@@ -382,11 +316,22 @@ export default {
this.projectBuildType = d || [];
});
- this.users11 = users.filter(d => d.deptType == 11);
- this.users4 = users.filter(d => d.deptType == 4);
- this.users2 = users.filter(d => d.deptType == 2);
- this.users3 = users.filter(d => d.deptType == 3);
-
+
+ this.users3=[];
+ this.addUsers(2,users,"总包单位","项目经理");
+ this.addUsers(4,users,"监理单位","总监");
+ this.addUsers(1,users,"设计单位","项目负责人");
+
+ },
+ addUsers(n,users,dName,jobTypeName){
+ users.filter(d=>d.deptType==n).forEach(it=>{
+ if(it.jobTypeName==jobTypeName){
+ if(this.users3.filter(item=>item.deptType==n && item.jobTypeName==jobTypeName && item.deptName==it.deptName ).length==0){
+ it.dName=dName;
+ this.users3.push(it);
+ }
+ }
+ });
},
modifyLeftBtn() {
let n = this.index;
@@ -480,7 +425,7 @@ export default {
}
.data-table {
padding: 48px 24px;
-
+ margin-top: 32px;
table {
th {
diff --git a/src/pages/projectQuality.vue b/src/pages/projectQuality.vue
index d441855..da26b56 100644
--- a/src/pages/projectQuality.vue
+++ b/src/pages/projectQuality.vue
@@ -161,7 +161,7 @@
%
-