| | |
| | | <template> |
| | | <div class="main_app"> |
| | | <el-form |
| | | :model="param" |
| | | :model="form" |
| | | :rules="rules" |
| | | label-suffix=":" |
| | | ref="ruleForm" |
| | |
| | | <el-select v-model="param.aa" class="w400" placeholder="请选择,多选"> |
| | | <el-option></el-option> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | </el-form-item> |
| | | <el-form-item label="市公司日作业量"> |
| | | <el-input v-model="param.bbb" class="w400" placeholder="请输入"></el-input> |
| | | <span>万支</span> |
| | | </el-form-item>--> |
| | | <el-form-item label="物流车预约指南" required label-width="180px"> |
| | | <RichEditor :richData="form.bookTips" :styleEditor="styleEditor" @getWangedditor="getWangedditor" :readonly="false"/> |
| | | </el-form-item> |
| | | <el-form-item label="物流车预约指南"> |
| | | <RichEditor v-model="param.context" style="width: 900px" :default="param.context" /> |
| | | </el-form-item> |
| | | <el-form-item label="物流车园区导览图"> |
| | | <RichEditor v-model="param.context" style="width: 900px" placeholder="请输入内容" :default="param.context" /> |
| | | <el-form-item label="物流车园区导览图" required label-width="180px"> |
| | | <RichEditor :richData="form.tipsImg" :styleEditor="styleEditor" @getWangedditor="getWangedditor1" :readonly="false"/> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary">保存配置项</el-button> |
| | | <el-button type="primary" @click="submit">保存配置项</el-button> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | |
| | | |
| | | <script> |
| | | import RichEditor from '@/components/common/RichEditor' |
| | | import { getPlatformConfigDTO, updatePlatformConfig } from '@/api/system/common' |
| | | export default { |
| | | components: { |
| | | RichEditor: RichEditor |
| | | }, |
| | | data () { |
| | | return { |
| | | param: { |
| | | context: 'qqq' |
| | | styleEditor:'border: 1px solid #ccc;display: inline-block;', |
| | | form: { |
| | | bookTips: '', |
| | | tipsImg: '' |
| | | }, |
| | | rules: {} |
| | | } |
| | | }, |
| | | created () { |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | | getWangedditor(val){ |
| | | this.form.bookTips =val |
| | | }, |
| | | getWangedditor1(val){ |
| | | this.form.tipsImg =val |
| | | }, |
| | | getData: function () { |
| | | getPlatformConfigDTO({}) |
| | | .then(res => { |
| | | this.form.tipsImg = res.tipsImg |
| | | this.form.bookTips = res.bookTips |
| | | }) |
| | | }, |
| | | submit () { |
| | | updatePlatformConfig({ |
| | | tipsImg: this.form.tipsImg, |
| | | bookTips: this.form.bookTips |
| | | }).then(res => { |
| | | this.$message.success('保存成功') |
| | | this.getData() |
| | | }) |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |