Commit b8523b4a by crushh

update: dist

parent c85dbaaa
......@@ -214,7 +214,7 @@
</div>
<div>
<el-form>
<el-form-item label="是否已同意企微授权"> <el-switch v-model="openFlag" @change="getAgreeExternalFlag" :active-value="1" :inactive-value="0" :disabled="openFlag === 1"/></el-form-item>
<el-form-item label="是否已同意企微授权"> <el-switch v-model="openFlag" @change="getAgreeExternalFlag" :active-value="1" :inactive-value="0" :disabled="openFlag == 1"/></el-form-item>
<span class="font-12 color-909399 " style="margin-left: 110px;margin-top:10px;">提示:企微将推送授权给商户的企微管理员,管理员同意授权后,好办才能继续为您提供服务,授权推送流程示例如下:</span>
</el-form>
<img src="../../assets/示例图.png" class="example" alt="示例图" />
......@@ -346,12 +346,22 @@ export default {
});
},
getAgreeExternalFlag(val) {
getRequest('/haoban-manage3-web/agree_external_userid_flag', { openFlag: this.openFlag }).then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('操作成功', 'success');
}
});
this.$confirm('请谨慎操作!开启后,将无法关闭。并需要在开启后,尽快完成好办后台欢迎语配置和联系运营开启external_userid转换,否则将影响企微&好办的使用。(可联系达摩运营人员进行协助)', '提示', {
confirmButtonText: '确认开启',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
getRequest('/haoban-manage3-web/agree_external_userid_flag', { openFlag: this.openFlag }).then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('操作成功', 'success');
}
});
})
.catch(() => {
val == 0 ? (this.openFlag = 1) : (this.openFlag = 0);
});
},
getRefreshShow() {
const that = this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment