系统设置数据结构适应,定制方案增加web端系统信息设置
This commit is contained in:
@@ -39,6 +39,51 @@
|
||||
</template>
|
||||
</ai-card>
|
||||
<ai-card title="扩展设置">
|
||||
<template #right>
|
||||
<template v-if="form.type=='web'">
|
||||
<ai-dialog-btn text="设置系统信息" dialogTitle="系统信息">
|
||||
<el-form size="small" label-width="140px">
|
||||
<el-form-item label="系统标题">
|
||||
<el-input v-model="form.sysInfo.fullTitle" placeholder="请输入..." clearable/>
|
||||
</el-form-item>
|
||||
<el-form-item label="logo">
|
||||
<el-input v-model="form.sysInfo.logo" placeholder="请输入..." clearable/>
|
||||
</el-form-item>
|
||||
<el-form-item label="登录页">
|
||||
<el-row type="flex">
|
||||
<el-input v-model="form.sysInfo.name" placeholder="左上角标题" clearable>
|
||||
<template #prepend>左上角标题</template>
|
||||
</el-input>
|
||||
<el-input class="mar-l10" v-model="form.sysInfo.title" placeholder="左上角副标题" clearable>
|
||||
<template #prepend>左上角副标题</template>
|
||||
</el-input>
|
||||
</el-row>
|
||||
<el-input class="mar-t10" type="textarea" rows="5" v-model="form.sysInfo.desc" placeholder="副标题" clearable/>
|
||||
</el-form-item>
|
||||
<el-row type="flex">
|
||||
<div class="fill">
|
||||
<el-form-item label="版权所有">
|
||||
<el-input v-model="form.sysInfo.recordDesc" placeholder="请输入..." clearable/>
|
||||
</el-form-item>
|
||||
<el-form-item label="备案号">
|
||||
<el-input v-model="form.sysInfo.recordNo" placeholder="请输入..." clearable/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="fill">
|
||||
<el-form-item label="框架版本">
|
||||
<!--edition :版本,标准版:standard、上架版:saas 简易版(不带扫码):simple -->
|
||||
<el-input v-model="form.sysInfo.edition" placeholder="请输入..." clearable/>
|
||||
</el-form-item>
|
||||
<el-form-item label="备案跳转链接">
|
||||
<el-input v-model="form.sysInfo.recordURL" placeholder="请输入..." clearable/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</el-row>
|
||||
|
||||
</el-form>
|
||||
</ai-dialog-btn>
|
||||
</template>
|
||||
</template>
|
||||
<template #content>
|
||||
<template v-if="form.type=='mp'">
|
||||
<el-form-item label="小程序AppId">
|
||||
@@ -145,7 +190,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form: {apps: [], type: null},
|
||||
form: {apps: [], type: null, sysInfo: {}},
|
||||
rules: {
|
||||
name: {required: true, message: "请输入"},
|
||||
type: {required: true, message: "请选择"},
|
||||
@@ -186,7 +231,7 @@ export default {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.form = res.data
|
||||
this.form = {...this.form, ...res.data}
|
||||
this.handleSysTypeChange(this.form.type, this.form.extra)
|
||||
}
|
||||
})
|
||||
@@ -197,11 +242,11 @@ export default {
|
||||
submit() {
|
||||
this.$refs.AddForm.validate(v => {
|
||||
if (v) {
|
||||
const {tabBar, form: {type, appId, isSingleService, homePage, hmt, dv, downloadCenter, showTool, helpDoc, customerService}} = this
|
||||
const {tabBar, form: {type, appId, isSingleService, homePage, hmt, dv, downloadCenter, showTool, helpDoc, customerService, sysInfo}} = this
|
||||
if (type == 'mp') {
|
||||
this.form.extra = {tabBar, appId}
|
||||
} else if (type == 'web') {
|
||||
this.form.extra = {isSingleService, homePage, hmt, dv, downloadCenter, showTool, helpDoc, customerService}
|
||||
this.form.extra = {isSingleService, homePage, hmt, dv, downloadCenter, showTool, helpDoc, customerService, sysInfo}
|
||||
} else if (type == 'wxwork') {
|
||||
this.form.extra = {isSingleService, homePage, hmt}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user