|
@@ -57,7 +57,7 @@
|
|
<el-dropdown-item divided @click.native="renameGroup(item)" :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement || isManageDept)">
|
|
<el-dropdown-item divided @click.native="renameGroup(item)" :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement || isManageDept)">
|
|
<i class="el-icon-edit"></i>
|
|
<i class="el-icon-edit"></i>
|
|
{{ $t('changegroups') }}</el-dropdown-item>
|
|
{{ $t('changegroups') }}</el-dropdown-item>
|
|
- <el-dropdown-item divided @click.native="setManDay(item)" v-if="user.timeType.projectManDay==1" :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement || isManageDept)">
|
|
|
|
|
|
+ <el-dropdown-item divided @click.native="setManDay()" v-if="user.timeType.projectManDay==1" :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement || isManageDept)">
|
|
<i class="el-icon-time"></i>
|
|
<i class="el-icon-time"></i>
|
|
预估工时</el-dropdown-item>
|
|
预估工时</el-dropdown-item>
|
|
<el-dropdown-item divided @click.native="addToTemplate(item)" :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement || isManageDept)">
|
|
<el-dropdown-item divided @click.native="addToTemplate(item)" :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement || isManageDept)">
|
|
@@ -3202,9 +3202,9 @@
|
|
this.groupForm = JSON.parse(JSON.stringify(item));
|
|
this.groupForm = JSON.parse(JSON.stringify(item));
|
|
this.setInchargerDialog = true;
|
|
this.setInchargerDialog = true;
|
|
},
|
|
},
|
|
- setManDay(item) {
|
|
|
|
|
|
+ setManDay() {
|
|
this.modGroupManDayKey++
|
|
this.modGroupManDayKey++
|
|
- this.groupForm = JSON.parse(JSON.stringify(item));
|
|
|
|
|
|
+ // this.groupForm = JSON.parse(JSON.stringify(item));
|
|
this.modGroupManDayDialog = true;
|
|
this.modGroupManDayDialog = true;
|
|
},
|
|
},
|
|
renameGroup(item) {
|
|
renameGroup(item) {
|
|
@@ -3421,11 +3421,15 @@
|
|
this.addGroupDialog = true;
|
|
this.addGroupDialog = true;
|
|
this.groupForm = {projectId: this.curProjectId};
|
|
this.groupForm = {projectId: this.curProjectId};
|
|
},
|
|
},
|
|
- getInsideData() {
|
|
|
|
- this.getTaskGroups();
|
|
|
|
|
|
+ getInsideData(action) {
|
|
|
|
+ var targetGpId = null;
|
|
|
|
+ if (action) {
|
|
|
|
+ targetGpId = action.split('-')[1];
|
|
|
|
+ }
|
|
|
|
+ this.getTaskGroups(targetGpId);
|
|
},
|
|
},
|
|
//加载项目内的任务分组
|
|
//加载项目内的任务分组
|
|
- getTaskGroups() {
|
|
|
|
|
|
+ getTaskGroups(errorGroupId) {
|
|
this.http.post('/task-group/list',{projectId: this.curProjectId},
|
|
this.http.post('/task-group/list',{projectId: this.curProjectId},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
@@ -3439,6 +3443,10 @@
|
|
} else {
|
|
} else {
|
|
this.groupList = res.data;
|
|
this.groupList = res.data;
|
|
}
|
|
}
|
|
|
|
+ if (errorGroupId != null) {
|
|
|
|
+ //需要修正分组工时
|
|
|
|
+ this.setManDay();
|
|
|
|
+ }
|
|
console.log(this.groupList, '返回的数据')
|
|
console.log(this.groupList, '返回的数据')
|
|
console.log(this.groupList,'grouplist');
|
|
console.log(this.groupList,'grouplist');
|
|
if (this.groupList.length > 0) {
|
|
if (this.groupList.length > 0) {
|
|
@@ -3865,7 +3873,6 @@
|
|
},
|
|
},
|
|
// 企业微信搜索
|
|
// 企业微信搜索
|
|
echartDepartment() {
|
|
echartDepartment() {
|
|
- console.log('我点击了搜索')
|
|
|
|
if(this.participantsFilterText != '') {
|
|
if(this.participantsFilterText != '') {
|
|
this.filterNodeFlag = true
|
|
this.filterNodeFlag = true
|
|
this.http.post("/user/getEmployeeList", {
|
|
this.http.post("/user/getEmployeeList", {
|
|
@@ -3935,15 +3942,15 @@
|
|
}, 1000)
|
|
}, 1000)
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
-
|
|
|
|
this.curProjectId = parseInt(this.$route.params.id);
|
|
this.curProjectId = parseInt(this.$route.params.id);
|
|
this.activeName = this.$route.path.split("/")[1];
|
|
this.activeName = this.$route.path.split("/")[1];
|
|
this.getDetail();
|
|
this.getDetail();
|
|
-
|
|
|
|
this.getUsers();
|
|
this.getUsers();
|
|
this.getMyProjectList();
|
|
this.getMyProjectList();
|
|
-
|
|
|
|
- this.getInsideData();
|
|
|
|
|
|
+ console.log('action==params='+sessionStorage.action);
|
|
|
|
+ var action = sessionStorage.action
|
|
|
|
+ this.getInsideData(action);
|
|
|
|
+ sessionStorage.removeItem('action');
|
|
this.getGroupTemplate();
|
|
this.getGroupTemplate();
|
|
}
|
|
}
|
|
};
|
|
};
|