|
@@ -118,7 +118,8 @@
|
|
|
</div>
|
|
|
</van-popup>
|
|
|
<!-- 项目经理 -->
|
|
|
- <van-field label="项目经理" @click="inchargerShow = true" readonly clickable>
|
|
|
+ {{user.id == projectDetail.creatorId}} , {{editProjectMan}}
|
|
|
+ <van-field label="项目经理" @click="(user.id == projectDetail.creatorId || editProjectMan) ? inchargerShow = true : ''" readonly clickable :disabled="!(user.id == projectDetail.creatorId || editProjectMan)">
|
|
|
<template #input>
|
|
|
<span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName' :openid='projectDetail.inchargerName'></ww-open-data></span>
|
|
|
<span v-else>{{projectDetail.inchargerName}}</span>
|
|
@@ -217,7 +218,8 @@ export default {
|
|
|
currentEndDate: new Date(),
|
|
|
endDateShow: false,
|
|
|
dailyUserList: [],
|
|
|
- dailyReviewFlg: false
|
|
|
+ dailyReviewFlg: false,
|
|
|
+ editProjectMan: false
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -468,6 +470,9 @@ export default {
|
|
|
if(this.user.functionList[i].name == '编辑负责项目编码和名称' || this.user.functionList[i].name == '管理全部项目'){
|
|
|
this.editCodeAndName = true
|
|
|
}
|
|
|
+ if(this.user.functionList[i].name == '管理全部项目') {
|
|
|
+ this.editProjectMan = true
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
this.$toast.fail('获取失败');
|