diff --git a/src/mods/AppAgProducts/agAdd.vue b/src/mods/AppAgProducts/agAdd.vue index 802cd39..858aae3 100644 --- a/src/mods/AppAgProducts/agAdd.vue +++ b/src/mods/AppAgProducts/agAdd.vue @@ -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("请输入地址");