|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<section>
|
|
<section>
|
|
- <div class="sidebars" ref="sidebars" style="width: 200px;display: block;background: #fff" v-if="!isDingding">
|
|
|
|
|
|
+ <div class="sidebars" ref="sidebars" style="width: 200px;display: block;background: #fff" v-if="!isSyncData">
|
|
<h3><i class="iconfont firerock-iconbaoxiao" style="padding-right: 10px"></i>{{ $t('navigation.evectionManagement') }}</h3>
|
|
<h3><i class="iconfont firerock-iconbaoxiao" style="padding-right: 10px"></i>{{ $t('navigation.evectionManagement') }}</h3>
|
|
<el-divider ></el-divider>
|
|
<el-divider ></el-divider>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
@@ -16,7 +16,7 @@
|
|
</template>
|
|
</template>
|
|
<!-- 导航切换 -->
|
|
<!-- 导航切换 -->
|
|
<el-menu-item index="2-1" v-if="permissions.awayOfficeAll"><p @click="bills(false, 2)">{{ $t('all') }}</p></el-menu-item>
|
|
<el-menu-item index="2-1" v-if="permissions.awayOfficeAll"><p @click="bills(false, 2)">{{ $t('all') }}</p></el-menu-item>
|
|
- <el-menu-item index="2-2" v-if="permissions.awayOfficeAudit && !isDingding"><p @click="bills(true, 1)">{{ $t('state.WaitingAudit') }}</p></el-menu-item>
|
|
|
|
|
|
+ <el-menu-item index="2-2" v-if="permissions.awayOfficeAudit && !isSyncData"><p @click="bills(true, 1)">{{ $t('state.WaitingAudit') }}</p></el-menu-item>
|
|
</el-submenu>
|
|
</el-submenu>
|
|
<el-menu-item index="3" @click="bills(false, 2)" v-if="!permissions.awayOfficeAll">
|
|
<el-menu-item index="3" @click="bills(false, 2)" v-if="!permissions.awayOfficeAll">
|
|
<i class="iconfont firerock-iconbaoxiaodan"></i>
|
|
<i class="iconfont firerock-iconbaoxiaodan"></i>
|
|
@@ -153,7 +153,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 出差列表 -->
|
|
<!-- 出差列表 -->
|
|
- <div class="tops" v-if="displayTable && apk == 0" :style="isDingding ? 'padding-left:20px' : ''">
|
|
|
|
|
|
+ <div class="tops" v-if="displayTable && apk == 0" :style="isSyncData ? 'padding-left:20px' : ''">
|
|
<div class="ctons">
|
|
<div class="ctons">
|
|
<!-- 出差列表筛选 -->
|
|
<!-- 出差列表筛选 -->
|
|
<div class="flex">
|
|
<div class="flex">
|
|
@@ -237,10 +237,10 @@
|
|
<span v-if="scope.row.way == 4">{{ $t('leave.other') }}</span>
|
|
<span v-if="scope.row.way == 4">{{ $t('leave.other') }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column :label="$t('trip')" width="120" align="center" v-if="!isDingding">
|
|
|
|
|
|
+ <el-table-column :label="$t('trip')" width="120" align="center" v-if="!isSyncData">
|
|
<template slot-scope="scope">{{scope.row.cityFrom + '-' + scope.row.cityTo}}</template>
|
|
<template slot-scope="scope">{{scope.row.cityFrom + '-' + scope.row.cityTo}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="indate" :label="$t('applytime')" width="150" align="center" v-if="!isDingding"></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="indate" :label="$t('applytime')" width="150" align="center" v-if="!isSyncData"></el-table-column>
|
|
|
|
|
|
<el-table-column prop="startDate" :label="$t('starttimeofbusinessrip')" width="150"></el-table-column>
|
|
<el-table-column prop="startDate" :label="$t('starttimeofbusinessrip')" width="150"></el-table-column>
|
|
<el-table-column prop="endDate" :label="$t('endtimeofbusinesstrip')" width="150"></el-table-column>
|
|
<el-table-column prop="endDate" :label="$t('endtimeofbusinesstrip')" width="150"></el-table-column>
|
|
@@ -260,7 +260,7 @@
|
|
<span v-if="scope.row.status == 3" style="color: #666666">{{ $t('btn.undo') }}</span>
|
|
<span v-if="scope.row.status == 3" style="color: #666666">{{ $t('btn.undo') }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column v-if="!isDingding" :label="isAuditList ? $t('other.audit') : $t('operation')" width="180" fixed="right" >
|
|
|
|
|
|
+ <el-table-column v-if="!isSyncData" :label="isAuditList ? $t('other.audit') : $t('operation')" width="180" fixed="right" >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="isAuditList">
|
|
<div v-if="isAuditList">
|
|
<el-button icon="el-icon-check" circle size="mini" @click="approve(scope.row)"></el-button>
|
|
<el-button icon="el-icon-check" circle size="mini" @click="approve(scope.row)"></el-button>
|
|
@@ -272,7 +272,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column v-if="isDingding" :label="$t('operation')" width="150" fixed="right">
|
|
|
|
|
|
+ <el-table-column v-if="isSyncData" :label="$t('operation')" width="150" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button icon="iconfont firerock-iconguanlian" circle size="mini" @click="DingdingEditor(scope.row)"></el-button>
|
|
<el-button icon="iconfont firerock-iconguanlian" circle size="mini" @click="DingdingEditor(scope.row)"></el-button>
|
|
<el-button v-if="permissions.awayOfficeDelete" icon="el-icon-delete" circle size="mini" @click="deleteOfDingding(scope.row)"></el-button>
|
|
<el-button v-if="permissions.awayOfficeDelete" icon="el-icon-delete" circle size="mini" @click="deleteOfDingding(scope.row)"></el-button>
|
|
@@ -778,7 +778,7 @@ export default {
|
|
susers: [],
|
|
susers: [],
|
|
|
|
|
|
// 钉钉环境交互
|
|
// 钉钉环境交互
|
|
- isDingding: 0,
|
|
|
|
|
|
+ isSyncData: 0,
|
|
DingdingEditDialog: false,
|
|
DingdingEditDialog: false,
|
|
DingdingTableLoading: false,
|
|
DingdingTableLoading: false,
|
|
appendAddorModDialog: false,
|
|
appendAddorModDialog: false,
|
|
@@ -815,10 +815,10 @@ export default {
|
|
window.onresize = function temp() {
|
|
window.onresize = function temp() {
|
|
that.tableHeight = window.innerHeight - 195;
|
|
that.tableHeight = window.innerHeight - 195;
|
|
};
|
|
};
|
|
- this.isDingding = this.wuduData.syncDingding
|
|
|
|
|
|
+ this.isSyncData = (this.wuduData.syncDingding || this.wuduData.syncFanwei)
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
- if(this.isDingding){
|
|
|
|
|
|
+ if(this.isSyncData){
|
|
this.staffs(2,['2'])
|
|
this.staffs(2,['2'])
|
|
}
|
|
}
|
|
this.getTableList()
|
|
this.getTableList()
|
|
@@ -1174,7 +1174,7 @@ export default {
|
|
handleSizeChange(val){
|
|
handleSizeChange(val){
|
|
this.size = val;
|
|
this.size = val;
|
|
this.page = 1
|
|
this.page = 1
|
|
- if(this.isDingding){
|
|
|
|
|
|
+ if(this.isSyncData){
|
|
this.billss()
|
|
this.billss()
|
|
}else{
|
|
}else{
|
|
this.bills()
|
|
this.bills()
|
|
@@ -1184,7 +1184,7 @@ export default {
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
// console.log(val, 1, '1')
|
|
// console.log(val, 1, '1')
|
|
this.page = val;
|
|
this.page = val;
|
|
- if(this.isDingding){
|
|
|
|
|
|
+ if(this.isSyncData){
|
|
this.billss()
|
|
this.billss()
|
|
}else{
|
|
}else{
|
|
this.bills()
|
|
this.bills()
|