|
@@ -36,6 +36,7 @@
|
|
|
<i v-else
|
|
|
class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
+ <p class="imageSize" v-if="imageSize">上传图片尺寸为:{{ imageSize }}</p>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="内容"
|
|
|
prop="content">
|
|
@@ -70,6 +71,7 @@
|
|
|
import { newsQueryId, newsAdd, newsUpdate } from '@/api/contentManager'
|
|
|
import store from '@/store'
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
+import { vaildStudentUrl } from '@/utils/validate'
|
|
|
// import E from 'wangeditor'
|
|
|
// require styles
|
|
|
import 'quill/dist/quill.core.css'
|
|
@@ -157,7 +159,7 @@ export default {
|
|
|
title: null,
|
|
|
order: null,
|
|
|
coverImage: null,
|
|
|
- linkUrl: 'http://mstudev.dayaedu.com/#/specialdetail',
|
|
|
+ linkUrl: vaildStudentUrl() + '/#/specialdetail',
|
|
|
type: this.$route.query.type,
|
|
|
status: 1,
|
|
|
content: null
|
|
@@ -168,13 +170,25 @@ export default {
|
|
|
linkUrl: [{ required: true, message: '请输入连接地址', trigger: 'blur' }],
|
|
|
coverImage: [{ required: true, message: '请选择封面图', trigger: 'blur' }],
|
|
|
content: [{ required: true, message: '请编辑内容', trigger: 'blur' }]
|
|
|
- }
|
|
|
+ },
|
|
|
+ imageSize: null
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
// console.log('this is current quill instance object', this.editor)
|
|
|
this.getList()
|
|
|
this.addQuillTitle()
|
|
|
+
|
|
|
+ // this.form.type
|
|
|
+ let tempTitle = {
|
|
|
+ 1: "468px * 552px",
|
|
|
+ 2: "456px * 288px",
|
|
|
+ 3: "686px * 140px",
|
|
|
+ 4: null
|
|
|
+ }
|
|
|
+ this.imageSize = tempTitle[this.form.type]
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
addQuillTitle () {
|