|
|
|
@ -1,6 +1,12 @@
|
|
|
|
|
<template> |
|
|
|
|
<div class="app-container"> |
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="150px"> |
|
|
|
|
<el-form-item label="品牌馆滚动条标题"> |
|
|
|
|
<el-input v-model="form.brandIndex.title" style="width: 370px;" maxlength="4" show-word-limit /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="品牌馆滚动条内容"> |
|
|
|
|
<el-input v-model="form.brandIndex.info" style="width: 370px;" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="关于我们"> |
|
|
|
|
<!-- <el-input v-model="form.site_url" style="width: 370px;" />--> |
|
|
|
|
<vue-ueditor-wrap v-model="form.aboutUs" :config="myConfig" @beforeInit="addCustomDialog" style="width: 90%;"></vue-ueditor-wrap> |
|
|
|
@ -34,6 +40,10 @@ export default {
|
|
|
|
|
delLoading: false, |
|
|
|
|
form: { |
|
|
|
|
aboutUs:'', |
|
|
|
|
brandIndex:{ |
|
|
|
|
title:'', |
|
|
|
|
info:'' |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
rules: { |
|
|
|
|
} |
|
|
|
@ -48,6 +58,10 @@ export default {
|
|
|
|
|
if(keyName in that.form){ |
|
|
|
|
that.form[keyName] = newValue |
|
|
|
|
} |
|
|
|
|
// console.log('that.form.brandIndex',typeof (that.form.brandIndex),that.form.brandIndex) |
|
|
|
|
if (typeof (that.form.brandIndex)=="string"){ |
|
|
|
|
that.form.brandIndex=JSON.parse(that.form.brandIndex) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|