|
|
|
@ -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] |
|
|
|
|