| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="60%" |
| | | width="calc(100% - 250px)" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="简介" prop="detail"> |
| | | <el-input type="textarea" v-model="form.detail" placeholder="请输入简介" v-trim/> |
| | | <el-input type="textarea" :rows="10" v-model="form.detail" placeholder="请输入简介" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="发布日期" prop="releaseDate" > |
| | | <el-date-picker v-model="form.releaseDate" value-format="yyyy-MM-dd HH:mm:ss" type="datetime"> </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="内容" prop="content" > |
| | | <RichEditor :richData="form.content" :styleEditor="styleEditor" @getWangedditor="getWangedditor" :readonly="false"/> |
| | | <RichEditor :richData="form.content" :styleEditor="styleEditor" @getWangedditor="getWangedditor" :readonly="false"/> |
| | | <!-- <RichEditor :richData="form.content" :styleEditor="styleEditor" @getWangedditor="getWangedditor" :readonly="false"/>--> |
| | | </el-form-item> |
| | | <el-form-item label="状态" prop="status" required class="form-item-status"> |
| | | <el-switch v-model="form.status" :active-value="0" :inactive-value="1" active-color="#13ce66"/> |
| | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import RichEditor from '@/components/common/RichEditor' |
| | | import UploadAvatarImage from '@/components/common/UploadAvatarImage' |
| | | import RichEditor from '@/components/common/RichEditor' |
| | | import '@wangeditor/editor/dist/css/style.css' |
| | | import dayjs from 'dayjs'; |
| | | export default { |
| | | name: 'OperaInformationWindow', |
| | | extends: BaseOpera, |
| | |
| | | data () { |
| | | return { |
| | | // 表单数据 |
| | | styleEditor: 'border: 1px solid #ccc;display: inline-block;height:500px', |
| | | styleEditor: 'border: 1px solid #ccc;display: inline-block;height:800px;min-height :500px;', |
| | | form: { |
| | | id: null, |
| | | remark: '', |
| | |
| | | remark: '', |
| | | title: '', |
| | | detail: '', |
| | | releaseDate: new Date(), |
| | | releaseDate: dayjs().format('YYYY-MM-DD HH:mm:ss'), |
| | | imgurl: '', |
| | | imgurlFull: '', |
| | | thumbnailImgurl: '', |
| | | thumbnailImgurlFull: '', |
| | | fullImgurl: '', |
| | | jumpType: 0, |
| | | content: '', |
| | | sortnum: '', |
| | |
| | | for (const key in this.form) { |
| | | this.form[key] = target[key] |
| | | } |
| | | console.log(111+this.form.content) |
| | | }) |
| | | }, |
| | | // 上传图片 |
| | |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | ::v-deep .w-e-text-container { |
| | | height: 420px !important; |
| | | } |
| | | .w-e-text-container .w-e-scroll { |
| | | height: 500px !important; |
| | | -webkit-overflow-scrolling: touch; |
| | | } |
| | | </style> |