|
@@ -1,195 +1,41 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
-
|
|
|
|
- <el-tabs v-model="step">
|
|
|
|
- <el-tab-pane label="商户信息" name="first"></el-tab-pane>
|
|
|
|
- <el-tab-pane label="商城配置信息" name="second"></el-tab-pane>
|
|
|
|
- <el-tab-pane label="企微配置信息" name="third"></el-tab-pane>
|
|
|
|
- </el-tabs>
|
|
|
|
-
|
|
|
|
- <div v-show="step == 'first'">
|
|
|
|
- <el-form class="my-form" ref="step1Form" :model="step1Form" label-width="100px" label-position="right">
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <el-form class="my-form" ref="mainForm" :model="mainForm" label-width="100px" label-position="right">
|
|
<el-form-item label="商户账号" prop="account">
|
|
<el-form-item label="商户账号" prop="account">
|
|
- <el-input v-model="step1Form.account" disabled></el-input>
|
|
|
|
|
|
+ <el-input v-model="mainForm.account" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="账户昵称" prop="nickName">
|
|
<el-form-item label="账户昵称" prop="nickName">
|
|
- <el-input v-model="step1Form.nickName" disabled></el-input>
|
|
|
|
|
|
+ <el-input v-model="mainForm.nickName" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="小程序名称" prop="appName">
|
|
<el-form-item label="小程序名称" prop="appName">
|
|
- <el-input v-model="step1Form.appName" disabled></el-input>
|
|
|
|
|
|
+ <el-input v-model="mainForm.appName" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="负责人" prop="chargePerson">
|
|
<el-form-item label="负责人" prop="chargePerson">
|
|
- <el-input v-model="step1Form.chargePerson" disabled></el-input>
|
|
|
|
|
|
+ <el-input v-model="mainForm.chargePerson" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="联系电话" prop="phone">
|
|
<el-form-item label="联系电话" prop="phone">
|
|
- <el-input v-model="step1Form.phone" disabled></el-input>
|
|
|
|
|
|
+ <el-input v-model="mainForm.phone" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="电子邮箱" prop="email">
|
|
<el-form-item label="电子邮箱" prop="email">
|
|
- <el-input v-model="step1Form.email" disabled></el-input>
|
|
|
|
|
|
+ <el-input v-model="mainForm.email" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="地址" prop="address">
|
|
<el-form-item label="地址" prop="address">
|
|
- <el-input v-model="step1Form.address" disabled></el-input>
|
|
|
|
|
|
+ <el-input v-model="mainForm.address" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="登录密码" prop="password">
|
|
<el-form-item label="登录密码" prop="password">
|
|
- <el-input v-model="step1Form.password" type="password" disabled></el-input>
|
|
|
|
|
|
+ <el-input v-model="mainForm.password" type="password" disabled></el-input>
|
|
<el-button class="reset" @click="handleReset()">重置密码</el-button>
|
|
<el-button class="reset" @click="handleReset()">重置密码</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- <el-form-item class="tr">
|
|
<!-- <el-form-item class="tr">
|
|
- <el-button type="primary" @click="submitStep1Form">保存</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="submitmainForm">保存</el-button>
|
|
</el-form-item> -->
|
|
</el-form-item> -->
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div v-show="step == 'second'">
|
|
|
|
- <el-form label-width="100px" label-position="right">
|
|
|
|
- <el-upload
|
|
|
|
- class="avatar-uploader"
|
|
|
|
- :action="baseURL + 'common/upload'"
|
|
|
|
- :headers="myHeaders"
|
|
|
|
- :show-file-list="false"
|
|
|
|
- :on-success="uploadSuccess"
|
|
|
|
- :before-upload="beforeUpload">
|
|
|
|
- </el-upload>
|
|
|
|
- <el-form-item label="主logo" prop="imgUrl">
|
|
|
|
- <div class="images">
|
|
|
|
- <div class="main-img">
|
|
|
|
- <div class="img" v-if="img1_url" @mouseover="img1_hover = true;" @mouseout="img1_hover = false;">
|
|
|
|
- <el-image ref="img1" :src="img1_url" :preview-src-list="[img1_url]" style="width: 120px; height: 120px" fit="contain"></el-image>
|
|
|
|
- <div class="mask" v-show="img1_hover">
|
|
|
|
- <i class="el-icon-zoom-in" @click="previewImage('img1')"></i>
|
|
|
|
- <i class="el-icon-upload2" @click="uploadImage('img1')"></i>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="add" v-else @click="uploadImage('img1')">
|
|
|
|
- <i class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="tmp-img">
|
|
|
|
- <el-image :src="require('@/assets/template/template_1.png')" :preview-src-list="[require('@/assets/template/template_1.png')]" style="width: 120px; height: 120px; display: block" fit="contain"></el-image>
|
|
|
|
- <div class="tmp">示例图</div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="tips">
|
|
|
|
- <span>建议尺寸:400*400</span>
|
|
|
|
- </div>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="通用logo" prop="imgUrl">
|
|
|
|
- <div class="images">
|
|
|
|
- <div class="main-img">
|
|
|
|
- <div class="img" v-if="img2_url" @mouseover="img2_hover = true;" @mouseout="img2_hover = false;">
|
|
|
|
- <el-image ref="img2" :src="img2_url" :preview-src-list="[img2_url]" style="width: 120px; height: 120px" fit="contain"></el-image>
|
|
|
|
- <div class="mask" v-show="img2_hover">
|
|
|
|
- <i class="el-icon-zoom-in" @click="previewImage('img2')"></i>
|
|
|
|
- <i class="el-icon-upload2" @click="uploadImage('img2')"></i>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="add" v-else @click="uploadImage('img2')">
|
|
|
|
- <i class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="tmp-img">
|
|
|
|
- <el-image :src="require('@/assets/template/template_2.png')" :preview-src-list="[require('@/assets/template/template_2.png')]" style="width: 120px; height: 120px; display: block" fit="contain"></el-image>
|
|
|
|
- <div class="tmp">示例图</div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="tips">
|
|
|
|
- <span>建议尺寸:280*60</span>
|
|
|
|
- </div>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="头像logo" prop="imgUrl">
|
|
|
|
- <div class="images">
|
|
|
|
- <div class="main-img">
|
|
|
|
- <div class="img" v-if="img3_url" @mouseover="img3_hover = true;" @mouseout="img3_hover = false;">
|
|
|
|
- <el-image ref="img3" :src="img3_url" :preview-src-list="[img3_url]" style="width: 120px; height: 120px" fit="contain"></el-image>
|
|
|
|
- <div class="mask" v-show="img3_hover">
|
|
|
|
- <i class="el-icon-zoom-in" @click="previewImage('img3')"></i>
|
|
|
|
- <i class="el-icon-upload2" @click="uploadImage('img3')"></i>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="add" v-else @click="uploadImage('img3')">
|
|
|
|
- <i class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="tmp-img">
|
|
|
|
- <el-image :src="require('@/assets/template/template_3.png')" :preview-src-list="[require('@/assets/template/template_3.png')]" style="width: 120px; height: 120px; display: block" fit="contain"></el-image>
|
|
|
|
- <div class="tmp">示例图</div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="tips">
|
|
|
|
- <span>建议尺寸:400*400</span>
|
|
|
|
- </div>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div v-show="step == 'third'">
|
|
|
|
- <div class="tips">说明:企微配置是指通过配置企业微信将企微用户和系统打通,实现企业微信用户信息同平台互通,聊天会话信息同步</div>
|
|
|
|
-
|
|
|
|
- <el-form class="my-form2" ref="step3Form" :model="step3Form" :rules="step3FormRules" label-width="200px" label-position="right">
|
|
|
|
- <el-card shadow="never" class="my-card">
|
|
|
|
- <div class="title">1.配置企业ID</div>
|
|
|
|
- <div class="box">指引:进入<el-link type="primary" :underline="false" href="https://element.eleme.io" target="_blank">企业微信</el-link>打开【我的企业】,将企业ID分别复制并填写到下方输入框中</div>
|
|
|
|
- <el-form-item label="企业ID" prop="enterpriseId">
|
|
|
|
- <el-input v-model="step3Form.enterpriseId" autocomplete="off" placeholder="请输入企业ID"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-card>
|
|
|
|
-
|
|
|
|
- <el-card shadow="never" class="my-card">
|
|
|
|
- <div class="title">2.配置通讯录密钥(Secret)</div>
|
|
|
|
- <div class="box">进入<el-link type="primary" :underline="false" href="https://element.eleme.io" target="_blank">企业微信</el-link>打开【客户联系】-选择【客户】-展开右侧【API】。将外部联系人Secret复制并填写到下方输入框中。如果外部联系人Secret不更新,请将更新后的外部联系人Secret更新复制更新到下方输入框中。</div>
|
|
|
|
- <el-form-item label="通讯录密钥(Secret)" prop="listSecret">
|
|
|
|
- <el-input v-model="step3Form.listSecret" autocomplete="off" placeholder="请输入通讯录密钥(Secret)"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-divider></el-divider>
|
|
|
|
- <div class="title">配置通讯录同步密钥(Secret)</div>
|
|
|
|
- <div class="box">进入<el-link type="primary" :underline="false" href="https://element.eleme.io" target="_blank">企业微信</el-link>打开【管理工具】-选择【通讯录同步】-获取通讯录同步Secret。将通讯录同步Secret复制并填写到下方输入框中。如果通讯录同步Secret不更新,请将更新后的通讯录同步Secret更新复制更新到下方输入框中。</div>
|
|
|
|
- <el-form-item label="通讯录同步密钥(Secret)" prop="listSyncSecret">
|
|
|
|
- <el-input v-model="step3Form.listSyncSecret" autocomplete="off" placeholder="请输入通讯录同步密钥(Secret)"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-card>
|
|
|
|
-
|
|
|
|
- <el-card shadow="never" class="my-card">
|
|
|
|
- <div class="title">3.配置小程序</div>
|
|
|
|
- <div class="box">进入<el-link type="primary" :underline="false" href="https://element.eleme.io" target="_blank">企业微信</el-link>打开【应用管理】-选择【应用】-选择【小程序】-获取小程序AgentiD、小程序Secret。将小程序AgentiD、小程序Secret复制并填写到下方输入框中。</div>
|
|
|
|
- <el-form-item label="小程序(AgentiD)" prop="appAgentId">
|
|
|
|
- <el-input v-model="step3Form.appAgentId" autocomplete="off" placeholder="请输入小程序(AgentiD)"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="小程序(Secret)" prop="appSecret">
|
|
|
|
- <el-input v-model="step3Form.appSecret" autocomplete="off" placeholder="请输入小程序(Secret)"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-card>
|
|
|
|
-
|
|
|
|
- <el-card shadow="never" class="my-card">
|
|
|
|
- <div class="title" style="margin-bottom: 20px;">4.其他基础配置</div>
|
|
|
|
- <el-form-item label="小程序appId" prop="appId">
|
|
|
|
- <el-input v-model="step3Form.appId" autocomplete="off" placeholder="请输入小程序appId"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="商户号Id" prop="merchantId">
|
|
|
|
- <el-input v-model="step3Form.merchantId" autocomplete="off" placeholder="请输入商户号Id"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="商户号Key" prop="merchantKey">
|
|
|
|
- <el-input v-model="step3Form.merchantKey" autocomplete="off" placeholder="请输入商户号Key"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="子appId" prop="childAppId">
|
|
|
|
- <el-input v-model="step3Form.childAppId" autocomplete="off" placeholder="请输入子appId"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="子密钥" prop="childKey">
|
|
|
|
- <el-input v-model="step3Form.childKey" autocomplete="off" placeholder="请输入子密钥"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="子商户号Id" prop="childMerchantId">
|
|
|
|
- <el-input v-model="step3Form.childMerchantId" autocomplete="off" placeholder="请输入子商户号Id"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="微信订阅模版" prop="templateId">
|
|
|
|
- <el-input v-model="step3Form.templateId" autocomplete="off" placeholder="请输入微信订阅模版"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-card>
|
|
|
|
- </el-form>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
<div class="page-footer">
|
|
<div class="page-footer">
|
|
<div class="footer" :class="classObj">
|
|
<div class="footer" :class="classObj">
|
|
- <el-button type="primary" @click="submitStep2Form" :loading="formLoading" v-if="step == 'second'">{{ formLoading ? '保存中 ...' : '保 存' }}</el-button>
|
|
|
|
- <el-button type="primary" @click="submitStep3Form" :loading="formLoading" v-if="step == 'third'">{{ formLoading ? '保存中 ...' : '保 存' }}</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="submitMainForm" :loading="formLoading">{{ formLoading ? '保存中 ...' : '保 存' }}</el-button>
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
title="确定关闭吗?"
|
|
title="确定关闭吗?"
|
|
@onConfirm="goBack"
|
|
@onConfirm="goBack"
|
|
@@ -260,7 +106,7 @@ export default {
|
|
id: null,
|
|
id: null,
|
|
companyWechatId: null,
|
|
companyWechatId: null,
|
|
step: 'first',
|
|
step: 'first',
|
|
- step1Form: {
|
|
|
|
|
|
+ mainForm: {
|
|
account: '', // 账号
|
|
account: '', // 账号
|
|
nickName: '', // 用户名
|
|
nickName: '', // 用户名
|
|
appName: '', // 小程序名称
|
|
appName: '', // 小程序名称
|
|
@@ -275,14 +121,7 @@ export default {
|
|
passwordType1: 'password',
|
|
passwordType1: 'password',
|
|
passwordType2: 'password',
|
|
passwordType2: 'password',
|
|
|
|
|
|
- uploadImageType: null,
|
|
|
|
- img1_url: '',
|
|
|
|
- img1_hover: false,
|
|
|
|
- img2_url: '',
|
|
|
|
- img2_hover: false,
|
|
|
|
- img3_url: '',
|
|
|
|
- img3_hover: false,
|
|
|
|
-
|
|
|
|
|
|
+
|
|
resetFormVisible: false,
|
|
resetFormVisible: false,
|
|
resetForm: {
|
|
resetForm: {
|
|
newPassword: '', // 新密码
|
|
newPassword: '', // 新密码
|
|
@@ -297,38 +136,6 @@ export default {
|
|
],
|
|
],
|
|
},
|
|
},
|
|
|
|
|
|
- step3Form: {
|
|
|
|
- enterpriseId: '',
|
|
|
|
- listSecret: '',
|
|
|
|
- listSyncSecret: '',
|
|
|
|
- appAgentId: '',
|
|
|
|
- appSecret: '',
|
|
|
|
- appId: '',
|
|
|
|
- merchantId: '',
|
|
|
|
- merchantKey: '',
|
|
|
|
- childAppId: '',
|
|
|
|
- childKey: '',
|
|
|
|
- childMerchantId: '',
|
|
|
|
- templateId: '',
|
|
|
|
- },
|
|
|
|
- step3FormRules: {
|
|
|
|
- enterpriseId: [
|
|
|
|
- { required: true, message: '请输入企业ID', trigger: 'blur' }
|
|
|
|
- ],
|
|
|
|
- listSecret: [
|
|
|
|
- { required: true, message: '请输入通讯录密钥(Secret)', trigger: 'blur' }
|
|
|
|
- ],
|
|
|
|
- listSyncSecret: [
|
|
|
|
- { required: true, message: '请输入通讯录同步密钥(Secret)', trigger: 'blur' }
|
|
|
|
- ],
|
|
|
|
- appAgentId: [
|
|
|
|
- { required: true, message: '请输入小程序(AgentiD)', trigger: 'blur' }
|
|
|
|
- ],
|
|
|
|
- appSecret: [
|
|
|
|
- { required: true, message: '请输入小程序(Secret)', trigger: 'blur' }
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
formLoading: false,
|
|
formLoading: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -344,17 +151,9 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- const { id, type } = this.$route.query;
|
|
|
|
|
|
+ const { id } = this.$route.query;
|
|
this.id = id;
|
|
this.id = id;
|
|
this.getDetail();
|
|
this.getDetail();
|
|
-
|
|
|
|
- if(type === 1) {
|
|
|
|
- this.step = 'first';
|
|
|
|
- }else if(type === 2) {
|
|
|
|
- this.step = 'second';
|
|
|
|
- }else if(type === 3) {
|
|
|
|
- this.step = 'third';
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
goBack() {
|
|
goBack() {
|
|
@@ -364,32 +163,14 @@ export default {
|
|
// 获取详情
|
|
// 获取详情
|
|
getDetail() {
|
|
getDetail() {
|
|
getDetail({adminUserId: this.id}).then(res => {
|
|
getDetail({adminUserId: this.id}).then(res => {
|
|
- this.step1Form.account = res.data.userName;
|
|
|
|
- this.step1Form.nickName = res.data.nickName;
|
|
|
|
- this.step1Form.appName = res.data.minAppName;
|
|
|
|
- this.step1Form.chargePerson = res.data.linkName;
|
|
|
|
- this.step1Form.phone = res.data.linkPhone;
|
|
|
|
- this.step1Form.email = res.data.email;
|
|
|
|
- this.step1Form.address = res.data.address;
|
|
|
|
- this.step1Form.password = '************';
|
|
|
|
-
|
|
|
|
- this.img1_url = res.data.minLogo1;
|
|
|
|
- this.img2_url = res.data.minLogo2;
|
|
|
|
- this.img3_url = res.data.minLogo3;
|
|
|
|
-
|
|
|
|
- this.step3Form.enterpriseId = res.data.corpId;
|
|
|
|
- this.step3Form.listSecret = res.data.secret2;
|
|
|
|
- this.step3Form.listSyncSecret = res.data.secret3;
|
|
|
|
- this.step3Form.appAgentId = res.data.agentId1;
|
|
|
|
- this.step3Form.appSecret = res.data.secret1;
|
|
|
|
- this.step3Form.appId = res.data.appId;
|
|
|
|
- this.step3Form.merchantId = res.data.mchId;
|
|
|
|
- this.step3Form.merchantKey = res.data.mchKey;
|
|
|
|
- this.step3Form.childAppId = res.data.subAppId;
|
|
|
|
- this.step3Form.childKey = res.data.subSecret;
|
|
|
|
- this.step3Form.childMerchantId = res.data.subMchId;
|
|
|
|
- this.step3Form.templateId = res.data.template;
|
|
|
|
- this.companyWechatId = res.data.companyWechatId;
|
|
|
|
|
|
+ this.mainForm.account = res.data.userName;
|
|
|
|
+ this.mainForm.nickName = res.data.nickName;
|
|
|
|
+ this.mainForm.appName = res.data.minAppName;
|
|
|
|
+ this.mainForm.chargePerson = res.data.linkName;
|
|
|
|
+ this.mainForm.phone = res.data.linkPhone;
|
|
|
|
+ this.mainForm.email = res.data.email;
|
|
|
|
+ this.mainForm.address = res.data.address;
|
|
|
|
+ this.mainForm.password = '************';
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
@@ -448,78 +229,25 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
- uploadImage(type) {
|
|
|
|
- this.uploadImageType = type;
|
|
|
|
- document.querySelector('.avatar-uploader input').click();
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- // 上传图片
|
|
|
|
- uploadSuccess(res, file) {
|
|
|
|
- this[this.uploadImageType + '_url'] = res.data.url;
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- beforeUpload(file) {
|
|
|
|
- const fileSuffix = file.name.substring(file.name.lastIndexOf(".") + 1);
|
|
|
|
- const whiteList = ['jpg', 'jpeg', 'png'];
|
|
|
|
- if (whiteList.indexOf(fileSuffix) === -1) {
|
|
|
|
- this.$errorMsg('只支持上传jpg/jpeg/png文件!');
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- // 预览图片
|
|
|
|
- previewImage(type) {
|
|
|
|
- this.$refs[type].showViewer = true;
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- submitStep2Form() {
|
|
|
|
- if(!this.img1_url) {
|
|
|
|
- return this.$errorMsg('请上传主logo');
|
|
|
|
- }
|
|
|
|
- if(!this.img2_url) {
|
|
|
|
- return this.$errorMsg('请上传通用logo');
|
|
|
|
- }
|
|
|
|
- if(!this.img3_url) {
|
|
|
|
- return this.$errorMsg('请上传头像logo');
|
|
|
|
- }
|
|
|
|
- this.formLoading = true;
|
|
|
|
- let params = {
|
|
|
|
- adminUserId: this.id,
|
|
|
|
- minLogo1: this.img1_url,
|
|
|
|
- minLogo2: this.img2_url,
|
|
|
|
- minLogo3: this.img3_url,
|
|
|
|
- companyWechatId: this.companyWechatId
|
|
|
|
- }
|
|
|
|
- editAccount(params).then(res => {
|
|
|
|
- this.$successMsg('保存成功');
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.goBack();
|
|
|
|
- }, 1500)
|
|
|
|
- }).finally(res => {
|
|
|
|
- this.formLoading = false;
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- submitStep3Form() {
|
|
|
|
- this.$refs.step3Form.validate((valid) => {
|
|
|
|
|
|
+ submitMainForm() {
|
|
|
|
+ this.$refs.mainForm.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.formLoading = true;
|
|
this.formLoading = true;
|
|
|
|
|
|
let params = {
|
|
let params = {
|
|
adminUserId: this.id,
|
|
adminUserId: this.id,
|
|
- corpId: this.step3Form.enterpriseId,
|
|
|
|
- secret2: this.step3Form.listSecret,
|
|
|
|
- secret3: this.step3Form.listSyncSecret,
|
|
|
|
- agentId1: this.step3Form.appAgentId,
|
|
|
|
- secret1: this.step3Form.appSecret,
|
|
|
|
- appId: this.step3Form.appId,
|
|
|
|
- mchId: this.step3Form.merchantId,
|
|
|
|
- mchKey: this.step3Form.merchantKey,
|
|
|
|
- subAppId: this.step3Form.childAppId,
|
|
|
|
- subSecret: this.step3Form.childKey,
|
|
|
|
- subMchId: this.step3Form.childMerchantId,
|
|
|
|
- template: this.step3Form.templateId,
|
|
|
|
|
|
+ corpId: this.mainForm.enterpriseId,
|
|
|
|
+ secret2: this.mainForm.listSecret,
|
|
|
|
+ secret3: this.mainForm.listSyncSecret,
|
|
|
|
+ agentId1: this.mainForm.appAgentId,
|
|
|
|
+ secret1: this.mainForm.appSecret,
|
|
|
|
+ appId: this.mainForm.appId,
|
|
|
|
+ mchId: this.mainForm.merchantId,
|
|
|
|
+ mchKey: this.mainForm.merchantKey,
|
|
|
|
+ subAppId: this.mainForm.childAppId,
|
|
|
|
+ subSecret: this.mainForm.childKey,
|
|
|
|
+ subMchId: this.mainForm.childMerchantId,
|
|
|
|
+ template: this.mainForm.templateId,
|
|
companyWechatId: this.companyWechatId
|
|
companyWechatId: this.companyWechatId
|
|
}
|
|
}
|
|
editAccount(params).then(res => {
|
|
editAccount(params).then(res => {
|