|
@@ -574,7 +574,7 @@
|
|
|
</p>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="同步企业微信通讯录" v-if="showSyncCWDialog" :visible.sync="showSyncCWDialog" customClass="customWidth" width="500px">
|
|
|
- <p>填写企业微信通讯录Secret
|
|
|
+ <p>1. 填写企业微信通讯录Secret
|
|
|
<el-popover placement="top" width="1200" trigger="hover">
|
|
|
<div class="imgFlex">
|
|
|
<div><img src="../../assets/image/Step1.jpg" style="width: 380px"/> <p><b>第一步:进入管理后台</b></p> </div>
|
|
@@ -587,6 +587,15 @@
|
|
|
<p>
|
|
|
<el-input v-model="contactSecret" style="width:380px;" :disabled="!editSecret"/><el-button @click="editSecret?saveContactSecret():editSecret=true;" >{{editSecret?'保存':'修改'}}</el-button>
|
|
|
</p>
|
|
|
+ <p v-if="contactServer == null">
|
|
|
+ 2. 联系客户配置同步服务器
|
|
|
+
|
|
|
+ </p>
|
|
|
+ <p v-if="contactServer == null" style="text-align:center;">
|
|
|
+ <img
|
|
|
+ style="width: 120px; height: 120px"
|
|
|
+ src="../../assets/image/code.jpg" />
|
|
|
+ </p>
|
|
|
<p style="display: flex;justify-content: center;padding-bottom:1em;">
|
|
|
<el-button type="primary" :underline="false" :loading="importingData" :disabled="!canSync" @click="startCorpWxImport">开始同步</el-button>
|
|
|
</p>
|
|
@@ -661,6 +670,7 @@ export default {
|
|
|
canSync: false,
|
|
|
corpid: null,
|
|
|
contactSecret: null,
|
|
|
+ contactServer: null,
|
|
|
showSyncCWDialog: false,
|
|
|
permissions: JSON.parse(sessionStorage.getItem("permissions")),
|
|
|
handleSelectionZzjgshow: false,
|
|
@@ -979,7 +989,8 @@ export default {
|
|
|
(res) => {
|
|
|
if (res.code == "ok") {
|
|
|
this.contactSecret = res.data.contactSecret;
|
|
|
- if (this.contactSecret) {
|
|
|
+ this.contactServer = res.data.contactServer;
|
|
|
+ if (this.contactSecret && this.contactServer) {
|
|
|
this.canSync = true;
|
|
|
} else {
|
|
|
this.editSecret = true;
|