BUG 28064

This commit is contained in:
aixianling
2022-03-07 11:23:00 +08:00
parent 3259431133
commit 3e61cfb498

View File

@@ -89,15 +89,10 @@ export default {
},
methods: {
confirm(val) {
this.form.type = val[0].value;
this.form.typeName = val[0].label;
},
submit() {
if (!!!this.form.title) return this.$u.toast("请输入标题");
if (!!!this.form.content) return this.$u.toast("请输入详细描述");
if (!!!this.form.typeName) return this.$u.toast("请选择农产品类型");
if (!!!this.form.type) return this.$u.toast("请选择农产品类型");
if (!!!this.form.contactPerson) return this.$u.toast("请输入联系人")
if (!!!this.form.phone) return this.$u.toast("请输入联系方式");
if (!!!this.form.address) return this.$u.toast("请输入地址");