|
@@ -1,7 +1,11 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-alert class="diy-tip" title="温馨提示:" @close="tips_close" v-show="tips_show" type="success" description show-icon>
|
|
|
- 当前组织架构成员通过微信通讯录同步,员工开启积分管理后才能正式启用并进入“功道云积分制”,如果您的微信通讯录有变动,点击立即同步
|
|
|
+ 当前组织架构成员通过微信通讯录同步,员工开启积分管理后才能正式启用并进入“功道云积分制”,如果您的微信通讯录有变动,点击
|
|
|
+ <span class="blue" style="margin-left: 10px;cursor: pointer;" @click="tb()" v-loading="tbLoading">
|
|
|
+ <i class="el-icon-refresh"></i>
|
|
|
+ 立即同步
|
|
|
+ </span>
|
|
|
</el-alert>
|
|
|
|
|
|
<el-row class="architecture">
|
|
@@ -89,13 +93,12 @@
|
|
|
@change="entryclick(scope.row)"
|
|
|
clear-icon="el-icon-circle-close"
|
|
|
v-model="scope.row.accedence_time"
|
|
|
- type="datetime"
|
|
|
- format="yyyy-MM-dd HH:mm"
|
|
|
+ type="date"
|
|
|
+ format="yyyy-MM-dd"
|
|
|
value-format="timestamp"
|
|
|
placeholder="选择日期时间"
|
|
|
:clearable="false"
|
|
|
- :picker-options="assistantOptions"
|
|
|
- default-time="18:00:00">
|
|
|
+ :picker-options="assistantOptions">
|
|
|
</el-date-picker>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -314,21 +317,28 @@ export default {
|
|
|
},
|
|
|
//同步信息
|
|
|
tb() {
|
|
|
- this.$confirm('下次同步时间需在10分钟之后,是否同步?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- this.tbLoading = true;
|
|
|
- this.$http('post','/api/ding/department_sync').then(res => {
|
|
|
- this.$message.success({ message: '同步成功' });
|
|
|
- this.dept_id=0;
|
|
|
- this.getInfo();
|
|
|
- this.getEmployee();
|
|
|
- }).finally(()=>{
|
|
|
- this.tbLoading = false;
|
|
|
- });
|
|
|
- });
|
|
|
+ this.$http('get','/api/sync').then(res => {
|
|
|
+ if(res.data.code == 1){
|
|
|
+ this.$message.success({ message: '正在同步,请稍候刷新页面查看同步结果' });
|
|
|
+ // this.getEmployee();
|
|
|
+ // this.getInfo();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // this.$confirm('下次同步时间需在10分钟之后,是否同步?', '提示', {
|
|
|
+ // confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // type: 'warning'
|
|
|
+ // }).then(() => {
|
|
|
+ // this.tbLoading = true;
|
|
|
+ // this.$http('post','/api/ding/department_sync').then(res => {
|
|
|
+ // this.$message.success({ message: '同步成功' });
|
|
|
+ // this.dept_id=0;
|
|
|
+ // this.getInfo();
|
|
|
+ // this.getEmployee();
|
|
|
+ // }).finally(()=>{
|
|
|
+ // this.tbLoading = false;
|
|
|
+ // });
|
|
|
+ // });
|
|
|
},
|
|
|
//搜索
|
|
|
searchUser: _debounce(function() {
|
|
@@ -755,13 +765,13 @@ el-tooltip {
|
|
|
}
|
|
|
|
|
|
/deep/ .tabaccTIme{
|
|
|
- width: 70px;
|
|
|
+ width: 100px;
|
|
|
.el-input__inner{
|
|
|
border: 0;
|
|
|
background-color: transparent;
|
|
|
cursor: pointer;
|
|
|
padding: 0;
|
|
|
- width: 70px;
|
|
|
+ width: 100px;
|
|
|
}
|
|
|
.el-input__prefix{
|
|
|
display: none;
|