|
@@ -56,18 +56,18 @@
|
|
|
|
|
|
<!-- 钉钉环境对接 -->
|
|
<!-- 钉钉环境对接 -->
|
|
<template v-if="isDingding">
|
|
<template v-if="isDingding">
|
|
- <el-menu-item index="7">
|
|
|
|
- <template slot="title">
|
|
|
|
- <i class="iconfont firerock-iconbaoxiaodan"></i>
|
|
|
|
- <span slot="title">请假单列表</span>
|
|
|
|
- </template>
|
|
|
|
- </el-menu-item>
|
|
|
|
- <el-menu-item index="8">
|
|
|
|
- <template slot="title">
|
|
|
|
- <i class="iconfont firerock-iconbaoxiaodan"></i>
|
|
|
|
- <span slot="title">假期剩余表</span>
|
|
|
|
- </template>
|
|
|
|
- </el-menu-item>
|
|
|
|
|
|
+ <el-menu-item index="7" v-if="permissions.leaveAll">
|
|
|
|
+ <template slot="title">
|
|
|
|
+ <i class="iconfont firerock-iconbaoxiaodan"></i>
|
|
|
|
+ <span slot="title">请假单列表</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-menu-item>
|
|
|
|
+ <el-menu-item index="8" v-if="permissions.leaveAll">
|
|
|
|
+ <template slot="title">
|
|
|
|
+ <i class="iconfont firerock-iconbaoxiaodan"></i>
|
|
|
|
+ <span slot="title">假期剩余表</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-menu-item>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@@ -553,7 +553,7 @@
|
|
<el-pagination
|
|
<el-pagination
|
|
@size-change="vacationSizeChange"
|
|
@size-change="vacationSizeChange"
|
|
@current-change="vacationCurrentChange"
|
|
@current-change="vacationCurrentChange"
|
|
- :current-page="currentPage4"
|
|
|
|
|
|
+ :current-page="page"
|
|
:page-sizes="[50]"
|
|
:page-sizes="[50]"
|
|
:page-size="50"
|
|
:page-size="50"
|
|
layout="total, sizes, prev, pager, next"
|
|
layout="total, sizes, prev, pager, next"
|
|
@@ -850,7 +850,7 @@ export default {
|
|
this.http.post(this.port.manage.depList,{
|
|
this.http.post(this.port.manage.depList,{
|
|
},res =>{
|
|
},res =>{
|
|
if(res.code == 'ok'){
|
|
if(res.code == 'ok'){
|
|
- console.log('getDepartment',res.data);
|
|
|
|
|
|
+ // console.log('getDepartment',res.data);
|
|
this.departmentOptions = this.changeArr(res.data)
|
|
this.departmentOptions = this.changeArr(res.data)
|
|
}else {
|
|
}else {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -866,11 +866,13 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
departmentOptionsChg(){
|
|
departmentOptionsChg(){
|
|
- console.log(this.departmentSel);
|
|
|
|
|
|
+ // console.log(this.departmentSel);
|
|
|
|
+ this.page = 1
|
|
this.getVacationList(1)
|
|
this.getVacationList(1)
|
|
},
|
|
},
|
|
userChg(){
|
|
userChg(){
|
|
- console.log(this.userSelId);
|
|
|
|
|
|
+ // console.log(this.userSelId);
|
|
|
|
+ this.page = 1
|
|
this.getVacationList(1)
|
|
this.getVacationList(1)
|
|
},
|
|
},
|
|
|
|
|
|
@@ -929,7 +931,8 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
leaveTypeChange(){
|
|
leaveTypeChange(){
|
|
- console.log(this.leaveTypeItem);
|
|
|
|
|
|
+ // console.log(this.leaveTypeItem);
|
|
|
|
+ this.page = 1
|
|
this.getVacationList(1)
|
|
this.getVacationList(1)
|
|
},
|
|
},
|
|
|
|
|
|
@@ -1333,10 +1336,11 @@ export default {
|
|
this.apk2 = 8
|
|
this.apk2 = 8
|
|
this.displayTable = true
|
|
this.displayTable = true
|
|
this.apk = true
|
|
this.apk = true
|
|
- this.getVacationList()
|
|
|
|
- this.getDepartmentOptions()
|
|
|
|
this.userSelId = ''
|
|
this.userSelId = ''
|
|
|
|
+ this.page = 1
|
|
this.departmentSel = []
|
|
this.departmentSel = []
|
|
|
|
+ this.getVacationList()
|
|
|
|
+ this.getDepartmentOptions()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
bills(audit, tr){
|
|
bills(audit, tr){
|
|
@@ -1618,13 +1622,13 @@ export default {
|
|
this.page = val;
|
|
this.page = val;
|
|
this.bills()
|
|
this.bills()
|
|
},
|
|
},
|
|
- vacationSizeChange(){
|
|
|
|
|
|
+ vacationSizeChange(val){
|
|
this.size = val
|
|
this.size = val
|
|
- this.getVacationList()
|
|
|
|
|
|
+ this.getVacationList(1)
|
|
},
|
|
},
|
|
- vacationCurrentChange(){
|
|
|
|
|
|
+ vacationCurrentChange(val){
|
|
this.page = val
|
|
this.page = val
|
|
- this.getVacationList()
|
|
|
|
|
|
+ this.getVacationList(1)
|
|
},
|
|
},
|
|
statistical() {
|
|
statistical() {
|
|
this.loading = true
|
|
this.loading = true
|