yujialong 1 year ago
parent 5388145276
commit 23a5b79ecc
  1. 4
      src/const/modules.js
  2. 12
      src/pages/article/add/index.vue

@ -5471,7 +5471,8 @@ export default {
type: 'upload',
prop: 'pic',
label: '图片',
required: true
width: 392,
height: 247
},
{
type: 'input',
@ -5921,7 +5922,6 @@ export default {
type: 'upload',
prop: 'pic',
label: '图片',
required: true,
width: 392,
height: 247
},

@ -858,9 +858,6 @@ export default {
publicationYear: [
{ required: true, message: '请选择出版年份', trigger: 'change' }
],
titleImg: [
{ required: true, message: '请上传封面图', trigger: 'change' }
],
mainBody: [
{ required: true, message: '请输入正文', trigger: 'blur' }
],
@ -1113,9 +1110,8 @@ export default {
if (!form.templateStatus) {
form.articleTemplate = (data.typeId === 1 || data.typeId === 4) ? data.detailStyleId : 23
}
this.handleRules()
this.getClassification()
this.handleRules()
this.$nextTick(() => {
this.updateTime = 0
})
@ -1548,9 +1544,9 @@ export default {
}
//
if (!this.isPublication) {
if (tId === 22 || tId === 23 || tId === 24) {
if (!form.titleImg) return Util.errorMsg('请上传封面')
}
// if (tId === 22 || tId === 23 || tId === 24) {
// if (!form.titleImg) return Util.errorMsg('')
// }
if (tId === 25) {
if ((!form.time || !form.time.length) && isRelease) return Util.errorMsg('请选择起止时间')
form.activityStartTime = form.time[0]

Loading…
Cancel
Save