企微控制是否为单服务

This commit is contained in:
aixianling
2022-08-08 11:06:32 +08:00
parent 6d90c17ed3
commit 8eda688d37

View File

@@ -56,6 +56,11 @@
</el-table-column> </el-table-column>
</ai-table> </ai-table>
</template> </template>
<template v-else-if="form.type=='wxwork'">
<el-form-item label="接口是否单服务">
<el-checkbox v-model="form.isSingleService"/>
</el-form-item>
</template>
</template> </template>
</ai-card> </ai-card>
</el-form> </el-form>
@@ -153,9 +158,11 @@ export default {
submit() { submit() {
this.$refs.AddForm.validate(v => { this.$refs.AddForm.validate(v => {
if (v) { if (v) {
const {tabBar, appId, form: {type}} = this const {tabBar, form: {type, appId, isSingleService}} = this
if (type == 'mp') { if (type == 'mp') {
this.form.extra = {tabBar, appId} this.form.extra = {tabBar, appId}
} else if (v == 'wxwork') {
this.form.extra = {isSingleService}
} }
this.instance.post("/node/custom/addOrUpdate", this.form).then(res => { this.instance.post("/node/custom/addOrUpdate", this.form).then(res => {
if (res?.code == 0) { if (res?.code == 0) {
@@ -170,6 +177,8 @@ export default {
if (v == 'mp') { if (v == 'mp') {
this.form.appId = data.appId this.form.appId = data.appId
this.tabBar = data?.tabBar || this.tabBar this.tabBar = data?.tabBar || this.tabBar
} else if (v == 'wxwork') {
this.form.isSingleService = data.isSingleService
} }
}, },
handleTabbarChange(row, {name, label}) { handleTabbarChange(row, {name, label}) {