|
|
@ -19,7 +19,7 @@ export default { |
|
|
|
paramsData: { |
|
|
|
name: "", |
|
|
|
type: null, |
|
|
|
dikeName: "", |
|
|
|
wagaName: "", |
|
|
|
selectLevel: "", |
|
|
|
selectType: "", |
|
|
|
}, |
|
|
@ -358,8 +358,8 @@ export default { |
|
|
|
this.$refs.ruleForm.validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
if ( |
|
|
|
!this.ruleForm.dikeList || |
|
|
|
this.ruleForm.dikeList.length < 1 |
|
|
|
!this.ruleForm.wagaList || |
|
|
|
this.ruleForm.wagaList.length < 1 |
|
|
|
) { |
|
|
|
this.$message.error("请至少添加一个堤防"); |
|
|
|
return; |
|
|
@ -367,11 +367,11 @@ export default { |
|
|
|
|
|
|
|
let formData = { |
|
|
|
...this.ruleForm, |
|
|
|
dikeCode: this.ruleForm.dikeList |
|
|
|
.map((item) => item.dikeCode) |
|
|
|
wagaCode: this.ruleForm.wagaList |
|
|
|
.map((item) => item.wagaCode) |
|
|
|
.join(","), |
|
|
|
dikeName: this.ruleForm.dikeList |
|
|
|
.map((item) => item.dikeName) |
|
|
|
wagaName: this.ruleForm.wagaList |
|
|
|
.map((item) => item.wagaName) |
|
|
|
.join(","), |
|
|
|
}; |
|
|
|
if (this.$route.query.id) { |
|
|
|