|
@@ -398,6 +398,10 @@ export default {
|
|
|
formConfirm() {
|
|
|
this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
+ if (this.formData.websits.length == 0) {
|
|
|
+ this.$message.warning('网点必须至少选择一个!')
|
|
|
+ return
|
|
|
+ }
|
|
|
;(this.formType ? noticeWebsitUpdate : noticeWebsitAdd)({
|
|
|
...this.formData,
|
|
|
websitIds: this.formData.websits.map(item => item.websitId),
|