|
@@ -1433,6 +1433,12 @@
|
|
|
<el-cascader v-if="user.userNameNeedTranslate != 1" :size="'small'" v-model="deptIdForHasReport" placeholder="请选择部门" :options="departmentList" :props="{ checkStrictly: true, value: 'id' }" clearable style="width: 200px;" @change="showMonthWorkTime()"></el-cascader>
|
|
|
<vueCascader :size="'small'" :widthStr="'200'" :clearable="true" :subject="departmentList" :radios="true" :distinction="'1'" @vueCasader="vueCasader" v-if="user.userNameNeedTranslate == 1" :selectNameChuan="$t('other.allDepartments')" @change="showMonthWorkTime()"></vueCascader>
|
|
|
</div>
|
|
|
+ <div style="float: left; height:32px; padding-top:10px;">
|
|
|
+ <span style="width:20px;height:20px;background-color: orange;padding:5px 8px;">待审核</span>
|
|
|
+ <span style="width:20px;height:20px;background-color: #32CD32;padding:5px 8px;margin-left:10px;">已通过</span>
|
|
|
+ <span style="width:20px;height:20px;background-color: red;padding:5px 8px;margin-left:10px;">已驳回</span>
|
|
|
+ <span style="width:20px;height:20px;background-color: #E0E0E0;padding:5px 8px;margin-left:10px;">未提交</span>
|
|
|
+ </div>
|
|
|
<div style="float: right; vertical-align: middle;height:32px">
|
|
|
<el-link
|
|
|
type="primary"
|
|
@@ -1441,6 +1447,7 @@
|
|
|
>
|
|
|
</div>
|
|
|
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
<el-table ref="hasworkTbl"
|
|
@@ -2572,18 +2579,21 @@
|
|
|
|
|
|
const isWorkDate = filterData[0] && filterData[0].workingTime
|
|
|
const state = filterData[0] && filterData[0].state
|
|
|
- if (state == 1) {
|
|
|
+ if (state == 0 || state == -1) {
|
|
|
+ return "backgroundColor: orange"
|
|
|
+ } else if (state == 1) {
|
|
|
//审核通过
|
|
|
return "backgroundColor: #32CD32"
|
|
|
} else if (state == 2) {
|
|
|
- return "backgroundColor: #FF0000"
|
|
|
+ return "backgroundColor: red"
|
|
|
} else {
|
|
|
- if(isWorkDate < times) {
|
|
|
- return "backgroundColor: #FC3D49"
|
|
|
- }
|
|
|
- if(isWorkDate > times) {
|
|
|
- return "backgroundColor: #20a0ff"
|
|
|
- }
|
|
|
+ return "backgroundColor: #E0E0E0"
|
|
|
+ // if(isWorkDate < times) {
|
|
|
+ // return "backgroundColor: #FC3D49"
|
|
|
+ // }
|
|
|
+ // if(isWorkDate > times) {
|
|
|
+ // return "backgroundColor: #20a0ff"
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
}
|