This commit is contained in:
yanran200730
2022-08-08 11:24:29 +08:00
5 changed files with 87 additions and 12 deletions

View File

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