|
@@ -101,6 +101,7 @@
|
|
|
|
|
|
<!-- 部门筛选 -->
|
|
<!-- 部门筛选 -->
|
|
<vueCascader :size="'small'" :widthStr="'125'" :clearable="true" :subject="departmentList" :radios="true" :distinction="'1'" @vueCasader="vueCasader" v-if="((ins == 15 || (ins == 9 && permissions.reportAllTimely) || (ins == 8 && permissions.reportAllTimeDivide) || (ins == 6 && permissions.reportAllOvertime) || (ins == 11 && permissions.reportPersonnel) || (ins == 14)) && user.userNameNeedTranslate == 1)" :selectNameChuan="$t('qing-xuan-ze-bu-men')"></vueCascader>
|
|
<vueCascader :size="'small'" :widthStr="'125'" :clearable="true" :subject="departmentList" :radios="true" :distinction="'1'" @vueCasader="vueCasader" v-if="((ins == 15 || (ins == 9 && permissions.reportAllTimely) || (ins == 8 && permissions.reportAllTimeDivide) || (ins == 6 && permissions.reportAllOvertime) || (ins == 11 && permissions.reportPersonnel) || (ins == 14)) && user.userNameNeedTranslate == 1)" :selectNameChuan="$t('qing-xuan-ze-bu-men')"></vueCascader>
|
|
|
|
+ <!-- <vueCascader :size="'small'" :widthStr="'125'" :clearable="true" :subject="departmentList" :radios="true" :distinction="'1'" @vueCasader="vueCasader" v-if="((ins == 15 || (ins == 9 && permissions.reportAllTimely) || (ins == 8 && permissions.reportAllTimeDivide) || (ins == 6 && permissions.reportAllOvertime) || (ins == 11 && permissions.reportPersonnel) || (ins == 14)) && user.userNameNeedTranslate != 1)" :selectNameChuan="$t('qing-xuan-ze-bu-men')"></vueCascader> -->
|
|
|
|
|
|
<!-- 任务筛选 -->
|
|
<!-- 任务筛选 -->
|
|
<el-select v-if="ins == 1" v-model="taskTypeId" :placeholder="$t('pleaseselecttype')" clearable filterable size="small" @change="selcts()" style="margin-left:10px">
|
|
<el-select v-if="ins == 1" v-model="taskTypeId" :placeholder="$t('pleaseselecttype')" clearable filterable size="small" @change="selcts()" style="margin-left:10px">
|
|
@@ -498,7 +499,11 @@
|
|
<el-table-column prop="deptName" :label="$t('subordinatedepartments')" width="150">
|
|
<el-table-column prop="deptName" :label="$t('subordinatedepartments')" width="150">
|
|
<template slot-scope="scope" >
|
|
<template slot-scope="scope" >
|
|
<span v-if="user.userNameNeedTranslate == '1'">
|
|
<span v-if="user.userNameNeedTranslate == '1'">
|
|
- <ww-open-data type='departmentName' :openid='scope.row.deptName'></ww-open-data>
|
|
|
|
|
|
+ <!-- <span v-for="item, index in scope.row.deptName" :key="index">
|
|
|
|
+ <ww-open-data type='departmentName' :openid='item'></ww-open-data>
|
|
|
|
+ <span v-if="index < scope.row.deptName.length - 1">/</span>
|
|
|
|
+ </span> -->
|
|
|
|
+ <ww-open-data type='departmentName' :openid='scope.row.deptName'></ww-open-data>
|
|
</span>
|
|
</span>
|
|
<span v-if="user.userNameNeedTranslate != '1'">
|
|
<span v-if="user.userNameNeedTranslate != '1'">
|
|
{{scope.row.deptName}}
|
|
{{scope.row.deptName}}
|
|
@@ -752,7 +757,18 @@
|
|
|
|
|
|
<!-- 部门参与项目情况表 -->
|
|
<!-- 部门参与项目情况表 -->
|
|
<el-table v-if="ins == 15" key="15" border :data="tableList" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
<el-table v-if="ins == 15" key="15" border :data="tableList" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
- <el-table-column align="center" prop="deptName" :label="$t('departmentname')" min-width="150"></el-table-column>
|
|
|
|
|
|
+ <el-table-column align="center" prop="deptName" :label="$t('departmentname')" min-width="150">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ <span v-if="user.userNameNeedTranslate == '1'">
|
|
|
|
+ <ww-open-data type='departmentName' :openid='scope.row.deptName'></ww-open-data>
|
|
|
|
+ </span>
|
|
|
|
+ <span v-if="user.userNameNeedTranslate != '1'">
|
|
|
|
+ {{scope.row.deptName}}
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column align="center" prop="deptHeadCount" :label="'部门人数'" min-width="150"></el-table-column>
|
|
<el-table-column align="center" prop="deptHeadCount" :label="'部门人数'" min-width="150"></el-table-column>
|
|
<el-table-column align="center" prop="projectCount" :label="$t('can-yu-de-xiang-mu-de-shu-liang')" min-width="150"></el-table-column>
|
|
<el-table-column align="center" prop="projectCount" :label="$t('can-yu-de-xiang-mu-de-shu-liang')" min-width="150"></el-table-column>
|
|
<el-table-column align="center" prop="centerCount" :label="this.user.timeType.customDegreeName + '数量'" min-width="150"></el-table-column>
|
|
<el-table-column align="center" prop="centerCount" :label="this.user.timeType.customDegreeName + '数量'" min-width="150"></el-table-column>
|
|
@@ -1775,15 +1791,23 @@ export default {
|
|
startDate: this.rangeDatas[0],
|
|
startDate: this.rangeDatas[0],
|
|
endDate: this.rangeDatas[1],
|
|
endDate: this.rangeDatas[1],
|
|
}
|
|
}
|
|
|
|
+ console.log(this.userId, '人员')
|
|
if(this.userId) {
|
|
if(this.userId) {
|
|
obj.userId = this.userId
|
|
obj.userId = this.userId
|
|
}
|
|
}
|
|
|
|
+ console.log(this.departmentIdArray, '加班情况统计表')
|
|
if(this.departmentIdArray.length != 0){
|
|
if(this.departmentIdArray.length != 0){
|
|
let deptid = []
|
|
let deptid = []
|
|
- for(let i in this.departmentIdArray){
|
|
|
|
- deptid.push(this.departmentIdArray[i][this.departmentIdArray[i].length - 1])
|
|
|
|
|
|
+ if(this.user.userNameNeedTranslate != '1') {
|
|
|
|
+ for(let i in this.departmentIdArray){
|
|
|
|
+ deptid.push(this.departmentIdArray[i][this.departmentIdArray[i].length - 1])
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ deptid = this.departmentIdArray
|
|
}
|
|
}
|
|
obj.departmentId = deptid
|
|
obj.departmentId = deptid
|
|
|
|
+ console.log(obj, deptid, '加班情况统计表')
|
|
|
|
+ // obj.departmentId = this.departmentIdArray[this.departmentIdArray.length - 1]
|
|
}
|
|
}
|
|
this.http.post('/project/getOvertimeList', obj,
|
|
this.http.post('/project/getOvertimeList', obj,
|
|
res => {
|
|
res => {
|
|
@@ -1992,6 +2016,9 @@ export default {
|
|
res => {
|
|
res => {
|
|
this.listLoading = false
|
|
this.listLoading = false
|
|
if(res.code == 'ok'){
|
|
if(res.code == 'ok'){
|
|
|
|
+ // if(this.user.userNameNeedTranslate == '1') {
|
|
|
|
+ // res.data.result = res.data.result.deptName.split('/')
|
|
|
|
+ // }
|
|
this.userWorkHoursList = res.data.result
|
|
this.userWorkHoursList = res.data.result
|
|
this.total = res.data.total
|
|
this.total = res.data.total
|
|
}else {
|
|
}else {
|