|
@@ -480,6 +480,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ showMenu:false,
|
|
|
// 人员选择器
|
|
|
checkType: "multiple",
|
|
|
// 数据回显
|
|
@@ -612,19 +613,18 @@ export default {
|
|
|
},
|
|
|
getButtonItem(row) {
|
|
|
this.showMarkBtn = false;
|
|
|
+ this.isInitiator = false;
|
|
|
// 是否是发起人
|
|
|
- this.isInitiator = row.promoterId == this.user.userId;
|
|
|
+ let isInitiator = row.promoterId == this.user.userId;
|
|
|
// 参与人数组
|
|
|
let participantsIdList = row.participantsId.split(",");
|
|
|
// console.log("是否是发起人",this.isInitiator)
|
|
|
// console.log("参与人数组",participantsIdList,"this.user.userId=",this.user.userId,participantsIdList.indexOf(this.user.userId) > -1)
|
|
|
- if (this.isInitiator) {
|
|
|
+ if (isInitiator) {
|
|
|
// 参与人里面包含发起人
|
|
|
if (participantsIdList.indexOf(this.user.userId) > -1) {
|
|
|
this.showMarkBtn = true;
|
|
|
}
|
|
|
- } else {
|
|
|
- this.showMarkBtn = true;
|
|
|
}
|
|
|
// console.log("this.showMarkBtn=",this.showMarkBtn)
|
|
|
getCanScoringMeetingId(row.id).then((response) => {
|
|
@@ -632,9 +632,14 @@ export default {
|
|
|
if (response.tProjectScoring) {
|
|
|
this.showLookMark = true;
|
|
|
this.$store.commit("SET_TPROJECTSCORING", response.tProjectScoring);
|
|
|
+ this.isInitiator = true;
|
|
|
} else {
|
|
|
// 去打分
|
|
|
this.showLookMark = false;
|
|
|
+ this.isInitiator = false;
|
|
|
+ if (!this.showMarkBtn) {
|
|
|
+ this.$message.warning("暂无更多操作权限");
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -672,6 +677,7 @@ export default {
|
|
|
// this.$refs.selecDepts1.show(type);
|
|
|
} else {
|
|
|
this.$refs.selecDepts.show(type);
|
|
|
+ this.$refs.selecDepts.handler(this.form.promoter,this.form.promoterId)
|
|
|
}
|
|
|
},
|
|
|
getDeptUserInfo(info) {
|
|
@@ -702,7 +708,7 @@ export default {
|
|
|
// 获取公司信息
|
|
|
getProjectInfo(info) {
|
|
|
if (info.length > 0) {
|
|
|
- console.log("info=",info)
|
|
|
+ // console.log("info=", info);
|
|
|
this.form.projectPoolId = info[0].id;
|
|
|
this.form.projectName = info[0].projectName;
|
|
|
this.form.projectStage = info[0].projectStage;
|