|
@@ -212,6 +212,9 @@
|
|
<div style="margin: 0 0 0 20px" v-if="userComLis.dingdingUserid != null">
|
|
<div style="margin: 0 0 0 20px" v-if="userComLis.dingdingUserid != null">
|
|
<el-button size="small" type="primary" @click="dingdingListExport()" >{{ $t('export.export') }}</el-button>
|
|
<el-button size="small" type="primary" @click="dingdingListExport()" >{{ $t('export.export') }}</el-button>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div style="margin: 0 0 0 20px" >
|
|
|
|
+ <el-button size="small" type="primary" @click="syncData()" :loading="syncLoading">同步出差数据</el-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<!-- 出差列表 -->
|
|
<!-- 出差列表 -->
|
|
<el-table :data="tableList" style="width: 100%" height="90%" :loading="tableListLoading">
|
|
<el-table :data="tableList" style="width: 100%" height="90%" :loading="tableListLoading">
|
|
@@ -774,6 +777,7 @@ export default {
|
|
// }
|
|
// }
|
|
// };
|
|
// };
|
|
return {
|
|
return {
|
|
|
|
+ syncLoading: false,
|
|
themeColor: getThemeColor(),
|
|
themeColor: getThemeColor(),
|
|
denyDialogV: false,
|
|
denyDialogV: false,
|
|
denyInfo: {},
|
|
denyInfo: {},
|
|
@@ -922,6 +926,32 @@ export default {
|
|
this.getUsers()
|
|
this.getUsers()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ syncData(){
|
|
|
|
+ this.syncLoading=true
|
|
|
|
+ var startTime = this.createDate[0]
|
|
|
|
+ var endTime = this.createDate[1]
|
|
|
|
+ this.http.post('/business-trip/syncData',{startDate:startTime, endDate: endTime},
|
|
|
|
+ res => {
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: this.$t('operationissuccessful'),
|
|
|
|
+ type: "success"
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: res.msg,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ this.syncLoading=false
|
|
|
|
+ },
|
|
|
|
+ error => {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: error,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
// 自定义事件
|
|
// 自定义事件
|
|
selectCal(obj) {
|
|
selectCal(obj) {
|
|
if(obj.distinction == '1') {
|
|
if(obj.distinction == '1') {
|