|
@@ -34,7 +34,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="display:flex;">
|
|
|
- <div v-if="permissions.reportsCompany || user.manageDeptId != 0" :style="'overflow-x:hidden;overflow-y:auto;height:' + tableHeight + 'px;'">
|
|
|
+ <div v-if="permissions.reportsCompany || user.manageDeptId != 0 || permissions.reportsDept" :style="'overflow-x:hidden;overflow-y:auto;height:' + tableHeight + 'px;'">
|
|
|
<div style="width:205px;">
|
|
|
<el-select v-model="selectState" size="small" @change="stateChange" >
|
|
|
<el-option value="-1" label="全部状态" >全部状态</el-option>
|
|
@@ -77,7 +77,7 @@
|
|
|
<div class="report_title" >
|
|
|
|
|
|
<span>工作日报 </span>
|
|
|
- <span v-if="permissions.reportsCompany||user.manageDeptId != 0">| {{depData != null ?depData.label:""}}
|
|
|
+ <span v-if="permissions.reportsCompany||user.manageDeptId != 0 || permissions.reportsDept">| {{depData != null ?depData.label:""}}
|
|
|
<span v-if="targetUid == null">
|
|
|
- 已填写
|
|
|
<el-link :underline="false" @click="showMembList(1)"><span style="margin-left:5px;margin-right:5px;color:green;">{{reportList.length}}</span></el-link>人,
|
|
@@ -3059,7 +3059,7 @@
|
|
|
getDepartment() {
|
|
|
let day = (this.choseDay+1) > 9 ? "-" + (this.choseDay + 1) : "-0" + (this.choseDay + 1);
|
|
|
var param = {date:this.date + day};
|
|
|
- if (this.user.manageDeptId != 0 && !this.permissions.reportsCompany) {
|
|
|
+ if (this.user.manageDeptId != 0 && !this.permissions.reportsCompany && !this.permissions.reportsDept) {
|
|
|
param.manageDeptId = this.user.manageDeptId;
|
|
|
}
|
|
|
this.http.post("/report/getMembList", param,
|