|
@@ -26,7 +26,7 @@
|
|
|
</el-date-picker>
|
|
|
</div>
|
|
|
|
|
|
- <div v-if="!isDataLoaded">
|
|
|
+ <div v-if="reqpar1" class="head_taskgroup">
|
|
|
<span>任务分组</span>
|
|
|
<el-select clearable filterable v-model="valuex2" placeholder="请选择" size="small" style="margin-left:9px;width:200px" @change="taskgroupSel()">
|
|
|
<el-option
|
|
@@ -150,7 +150,7 @@ export default {
|
|
|
// 人员/项目切换
|
|
|
selChange(){
|
|
|
this.valuex = null
|
|
|
- console.log("切换按钮",this.radio1);
|
|
|
+ // console.log("切换按钮",this.radio1);
|
|
|
if (this.radio1 == "按人员查看") {
|
|
|
this.isDataLoaded = true
|
|
|
this.reqpar1 = 0
|
|
@@ -161,6 +161,7 @@ export default {
|
|
|
this.reqpar1 = 1
|
|
|
this.getList()
|
|
|
this.getXmScreen()
|
|
|
+ this.getTaskgroupList()
|
|
|
}else {
|
|
|
this.reqpar1 = 1
|
|
|
this.isDataLoaded = false
|
|
@@ -168,9 +169,10 @@ export default {
|
|
|
this.pageSize = 20
|
|
|
this.valuex = ''
|
|
|
this.valuex2 = ''
|
|
|
+ this.getDemandList()
|
|
|
this.getXmScreen()
|
|
|
this.getTaskgroupList()
|
|
|
- this.getDemandList()
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
// 时间段改变
|
|
@@ -180,7 +182,7 @@ export default {
|
|
|
},
|
|
|
// 人员/项目筛选改变
|
|
|
optupdata(){
|
|
|
- console.log(this.valuex);
|
|
|
+ // console.log(this.valuex);
|
|
|
if(this.isDataLoaded){
|
|
|
this.getList()
|
|
|
}else{
|
|
@@ -189,8 +191,13 @@ export default {
|
|
|
},
|
|
|
// 任务分组筛选改变
|
|
|
taskgroupSel(){
|
|
|
- console.log(this.valuex2);
|
|
|
- this.getDemandList()
|
|
|
+ // console.log(this.valuex2);
|
|
|
+ if(this.isDataLoaded){
|
|
|
+ this.getList()
|
|
|
+ }else{
|
|
|
+ this.getDemandList()
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
|
|
|
handleSizeChange(val){
|
|
@@ -205,7 +212,7 @@ export default {
|
|
|
demandEdit(row){
|
|
|
this.demandEditDialog = true
|
|
|
this.editParameter = JSON.parse(JSON.stringify(row))
|
|
|
- console.log('edit',this.demandEditDialog);
|
|
|
+ // console.log('edit',this.demandEditDialog);
|
|
|
},
|
|
|
demandEditSure(){
|
|
|
this.http.post('/project-requirement/addOrMod',this.editParameter,
|
|
@@ -294,15 +301,18 @@ export default {
|
|
|
},
|
|
|
// 获取甘特图数据
|
|
|
getList() {
|
|
|
- let getlistcs = {}
|
|
|
- if (this.valuex != null && this.valuex != ''){
|
|
|
- if (!this.reqpar1) {
|
|
|
- getlistcs = {type : 0 , startDate : this.reqpar2[0] , endDate : this.reqpar2[1], userId : this.valuex}
|
|
|
- }else{
|
|
|
- getlistcs = {type : 1 , startDate : this.reqpar2[0] , endDate : this.reqpar2[1], projectId : this.valuex}
|
|
|
+ let getlistcs = {type : this.reqpar1 , startDate : this.reqpar2[0] , endDate : this.reqpar2[1]}
|
|
|
+ if(this.reqpar1) {
|
|
|
+ if(this.valuex != ''){
|
|
|
+ getlistcs.projectId = this.valuex
|
|
|
+ }
|
|
|
+ if(this.valuex2 != ''){
|
|
|
+ getlistcs.groupName = this.valuex2
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ if(this.valuex != ''){
|
|
|
+ getlistcs.userId = this.valuex
|
|
|
}
|
|
|
- }else{
|
|
|
- getlistcs = {type : this.reqpar1 , startDate : this.reqpar2[0] , endDate : this.reqpar2[1]}
|
|
|
}
|
|
|
|
|
|
this.http.post('/project/getGanttData', getlistcs ,
|
|
@@ -438,13 +448,13 @@ export default {
|
|
|
width: 100%;
|
|
|
height: 60px;
|
|
|
display: flex;
|
|
|
- justify-content: left;
|
|
|
+ justify-content: space-between;
|
|
|
align-items: center;
|
|
|
}
|
|
|
.gantt_head .head_RorX{
|
|
|
height: 60px;
|
|
|
line-height: 60px;
|
|
|
- width: 30%;
|
|
|
+ width: 24%;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: left;
|
|
@@ -452,15 +462,23 @@ export default {
|
|
|
.gantt_head .head_date{
|
|
|
height: 60px;
|
|
|
line-height: 60px;
|
|
|
- width: 35%;
|
|
|
+ width: 30%;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: left;
|
|
|
}
|
|
|
+ .gantt_head .head_taskgroup{
|
|
|
+ height: 60px;
|
|
|
+ line-height: 60px;
|
|
|
+ width: 23%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
.gantt_head .head_select{
|
|
|
height: 60px;
|
|
|
line-height: 60px;
|
|
|
- width: 30%;
|
|
|
+ width: 23%;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|