| | |
| | | <el-input type="textarea" :autosize="{ minRows: 12, maxRows: 6 }" v-model="form.introduction" placeholder="请输入应用简介" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="应用详情" prop="details"> |
| | | <el-input v-model="form.details" placeholder="请输入应用详情" v-trim/> |
| | | <RichEditor :content="{ content: form.details }" @edit="form.details = $event" :max-length="0" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | </GlobalWindow> |
| | |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import UploadAvatarImage from '@/components/common/UploadAvatarImage' |
| | | import { fetchList } from '@/api/business/serverProvider' |
| | | import RichEditor from '@/components/common/RichEditor' |
| | | export default { |
| | | name: 'OperaApplicationInfoWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, UploadAvatarImage }, |
| | | components: { GlobalWindow, UploadAvatarImage, RichEditor }, |
| | | data () { |
| | | return { |
| | | // 表单数据 |
| | |
| | | this.visible = true |
| | | // 新建 |
| | | if (target == null) { |
| | | this.file.imgurl = '' |
| | | this.file.imgurlfull = '' |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form[this.configData['field.id']] = null |
| | |
| | | for (const key in this.form) { |
| | | this.form[key] = target[key] |
| | | } |
| | | setTimeout(() => { |
| | | this.form.details = target.details |
| | | }, 500) |
| | | this.file.imgurl = target.logo |
| | | this.file.imgurlfull = target.fullLog |
| | | }) |