校验
This commit is contained in:
@@ -146,15 +146,15 @@ export default {
|
||||
if (!this.form.publicityDeadline) {
|
||||
return this.$u.toast('请选择公示截止时间')
|
||||
}
|
||||
if (this.form.type == 1 && this.opts == 0 && !this.form.contents) {
|
||||
if (this.form.type == 1 && this.opts == 0 && !this.contents) {
|
||||
return this.$u.toast('请输入单选选项')
|
||||
}
|
||||
if (this.opts == 1 && !this.list.length) {
|
||||
return this.$u.toast('请输入多选选项')
|
||||
}
|
||||
|
||||
if (this.form.contents) {
|
||||
this.list.push(this.form.contents)
|
||||
if (this.contents) {
|
||||
this.list.push(this.contents)
|
||||
}
|
||||
if (this.opts == 1) {
|
||||
var lists = []
|
||||
|
||||
Reference in New Issue
Block a user