|
@@ -69,7 +69,7 @@
|
|
|
<span style="margin-right:20px;margin-left:5px;font-size:14px;">
|
|
|
<span v-if="user.timeType.showCorpwxCardtime" :style="item.cardTime !=item.reportTime?'color:#ff0000;':''">考勤时长:{{item.cardTime | amounts}}h</span>
|
|
|
总填报时长:
|
|
|
- <span>{{ parseFloat(item.reportTime).toFixed(1) }}h</span>
|
|
|
+ <span>{{ hideWorkingHours ? '*' : parseFloat(item.reportTime).toFixed(1) }}h</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div v-if="user.timeType.enableNewWeeklyfill == 1 && item.summary != null" style="margin-left:20px;"
|
|
@@ -155,9 +155,9 @@
|
|
|
<span v-if="item1.reportTimeType == 0" style="margin-right:10px;">{{
|
|
|
fullDayTxt[item1.timeType] }}</span>
|
|
|
<span v-if="item1.reportTimeType == 2" style="margin-right:10px;">{{ item1.startTime + '-' +
|
|
|
- item1.endTime }}</span>{{ item1.time.toFixed(1) }}h
|
|
|
+ item1.endTime }}</span>{{ hideWorkingHours ? '*' : item1.time.toFixed(1) }}h
|
|
|
<div class="button" v-if="item1.isOvertime == 1">加班<span v-if="item1.overtimeHours">{{
|
|
|
- item1.overtimeHours.toFixed(1) }}h</span></div>
|
|
|
+ hideWorkingHours ? '*' : item1.overtimeHours.toFixed(1) }}h</span></div>
|
|
|
</div>
|
|
|
<div class="project_time" v-else>用时占比:
|
|
|
{{ item1.progress }}%
|
|
@@ -167,9 +167,9 @@
|
|
|
|
|
|
</div>
|
|
|
<div v-if="item1.multiWorktime == 1">
|
|
|
- <div>项目时长:<span style="margin-right:10px;">{{ item1.time.toFixed(1) }}h</span>
|
|
|
+ <div>项目时长:<span style="margin-right:10px;">{{ hideWorkingHours ? '*' : item1.time.toFixed(1) }}h</span>
|
|
|
<div class="button" v-if="item1.isOvertime == 1">加班<span v-if="item1.overtimeHours">{{
|
|
|
- item1.overtimeHours.toFixed(1) }}h</span></div>
|
|
|
+ hideWorkingHours ? '*' : item1.overtimeHours.toFixed(1) }}h</span></div>
|
|
|
</div>
|
|
|
<div style="position:relative;border:#ccc 0.5px solid;padding:3px;margin:5px 0px;"
|
|
|
v-for="(timeItem, index) in item1.worktimeList" :key="index">
|
|
@@ -323,7 +323,8 @@ export default {
|
|
|
label: 'label'
|
|
|
},
|
|
|
reportsCompany: false,
|
|
|
- reportsDept: false
|
|
|
+ reportsDept: false,
|
|
|
+ hideWorkingHours: false
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -331,6 +332,9 @@ export default {
|
|
|
filters:{
|
|
|
// 过滤
|
|
|
amounts(value) {
|
|
|
+ if(value == '*') {
|
|
|
+ return '*'
|
|
|
+ }
|
|
|
if(value == NaN || value == undefined || value == 'undefined' || value == null || value == 'null') {
|
|
|
return 0
|
|
|
}
|
|
@@ -577,6 +581,9 @@ export default {
|
|
|
if (functionList[i].name == '查看本部门工时') {
|
|
|
this.查看本部门工时 = true
|
|
|
}
|
|
|
+ if(functionList[i].name == '隐藏工时数') {
|
|
|
+ this.hideWorkingHours = true
|
|
|
+ }
|
|
|
}
|
|
|
this.getReport();
|
|
|
this.getUsers()
|