|
@@ -185,6 +185,11 @@
|
|
</a-tabs>
|
|
</a-tabs>
|
|
</div>
|
|
</div>
|
|
</a-card> -->
|
|
</a-card> -->
|
|
|
|
+
|
|
|
|
+ <!-- 选择部门 -->
|
|
|
|
+ <div v-if="pageRoleNum === 0" class="choose-dept-container">
|
|
|
|
+ <j-select-depart v-model="selecteddeparts" :multi="true" @back="backDepartInfo" :backDepart="true" :treeOpera="true">></j-select-depart>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@@ -379,6 +384,8 @@
|
|
zrbmCharts: [],
|
|
zrbmCharts: [],
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ selecteddeparts: [],
|
|
|
|
+ deptParams: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -431,7 +438,7 @@
|
|
},
|
|
},
|
|
getZhibiaoCollect(){
|
|
getZhibiaoCollect(){
|
|
this.loading = true
|
|
this.loading = true
|
|
- getZhibiaoCollect().then(res => {
|
|
|
|
|
|
+ getZhibiaoCollect(this.deptParams).then(res => {
|
|
console.log(res)
|
|
console.log(res)
|
|
if (res.success) {
|
|
if (res.success) {
|
|
// 0:所领导,1:部门领导,2:员工;3:未赋值或选了多个前面所说角色
|
|
// 0:所领导,1:部门领导,2:员工;3:未赋值或选了多个前面所说角色
|
|
@@ -471,12 +478,14 @@
|
|
time: 'month',
|
|
time: 'month',
|
|
beginDate: beginDate,
|
|
beginDate: beginDate,
|
|
endDate: endDate,
|
|
endDate: endDate,
|
|
|
|
+ departNameList: this.deptParams
|
|
}
|
|
}
|
|
} else if (sType === 'year') {
|
|
} else if (sType === 'year') {
|
|
this.searchParams = {
|
|
this.searchParams = {
|
|
time: 'year',
|
|
time: 'year',
|
|
beginDate: year,
|
|
beginDate: year,
|
|
endDate: year,
|
|
endDate: year,
|
|
|
|
+ departNameList: this.deptParams
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.getDataByDate()
|
|
this.getDataByDate()
|
|
@@ -598,6 +607,7 @@
|
|
time: 'month',
|
|
time: 'month',
|
|
beginDate: moment(value[0]).format('YYYY-MM'),
|
|
beginDate: moment(value[0]).format('YYYY-MM'),
|
|
endDate: moment(value[1]).format('YYYY-MM'),
|
|
endDate: moment(value[1]).format('YYYY-MM'),
|
|
|
|
+ departNameList: this.deptParams
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(this.searchMode[0] === 'year'){
|
|
if(this.searchMode[0] === 'year'){
|
|
@@ -605,6 +615,7 @@
|
|
time: 'year',
|
|
time: 'year',
|
|
beginDate: moment(value[0]).format('YYYY'),
|
|
beginDate: moment(value[0]).format('YYYY'),
|
|
endDate: moment(value[1]).format('YYYY'),
|
|
endDate: moment(value[1]).format('YYYY'),
|
|
|
|
+ departNameList: this.deptParams
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// this.modeMonth = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]];
|
|
// this.modeMonth = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]];
|
|
@@ -683,6 +694,14 @@
|
|
changeopen() {
|
|
changeopen() {
|
|
this.zbphYearIsopen = true;
|
|
this.zbphYearIsopen = true;
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ backDepartInfo(info) {
|
|
|
|
+ console.log(info)
|
|
|
|
+ this.deptParams = info.map(item => item.text)
|
|
|
|
+ console.log(this.deptParams)
|
|
|
|
+ this.getZhibiaoCollect()
|
|
|
|
+ this.handlePanelChange()
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -738,4 +757,10 @@
|
|
.dept-zbph-table{
|
|
.dept-zbph-table{
|
|
padding: 0 20px 20px;
|
|
padding: 0 20px 20px;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .choose-dept-container{
|
|
|
|
+ position: fixed;
|
|
|
|
+ right: 10px;
|
|
|
|
+ top: 84px;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|