| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="main_app" style="overflow: auto;height: calc(100% - 100px);"> |
| | | <el-form |
| | | :model="form" |
| | | :rules="rules" |
| | | label-suffix="ï¼" |
| | | ref="ruleForm" |
| | | label-width="140px" |
| | | > |
| | | <!-- <el-form-item label="å¸å
¬å¸å®¡æ¹äºº"> |
| | | <el-select v-model="param.aa" class="w400" placeholder="è¯·éæ©ï¼å¤é"> |
| | | <el-option></el-option> |
| | | </el-select> |
| | | </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="ç©æµè½¦ååºå¯¼è§å¾" required label-width="180px"> |
| | | <RichEditor :richData="form.tipsImg" :styleEditor="styleEditor" @getWangedditor="getWangedditor1" :readonly="false"/> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="submit">ä¿åé
置项</el-button> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import RichEditor from '@/components/common/RichEditor' |
| | | import { getPlatformConfigDTO, updatePlatformConfig } from '@/api/system/common' |
| | | export default { |
| | | components: { |
| | | RichEditor: RichEditor |
| | | }, |
| | | data () { |
| | | return { |
| | | 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> |
| | | |
| | | <style> |
| | | </style> |