|
@@ -251,7 +251,6 @@ export default {
|
|
|
// 显示牧场新增 or 修改面板
|
|
|
this.visible = true
|
|
|
if (row) {
|
|
|
- console.log(row);
|
|
|
let location = row.location
|
|
|
let arr = location.split(",")
|
|
|
this.form.selectedOptions = []
|
|
@@ -444,6 +443,13 @@ export default {
|
|
|
},
|
|
|
// 校验输入是否完整
|
|
|
validComplete (val) {
|
|
|
+ var loc = "";
|
|
|
+ this.form.location1 = ''
|
|
|
+ for (let i = 0; i < this.form.selectedOptions.length; i++) {
|
|
|
+ loc += CodeToText[this.form.selectedOptions[i]]
|
|
|
+ this.form.location1 += this.form.selectedOptions[i] + ','
|
|
|
+ }
|
|
|
+ this.loc = loc
|
|
|
this.form.location = this.form.location1 + this.form.location2
|
|
|
this.form.loc = this.loc + this.form.location2
|
|
|
val && (delete this.form.id)
|