East 4 vuotta sitten
vanhempi
commit
992a057a1f
2 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. BIN
      dist.zip
  2. 7 1
      src/views/modules/basicdata/branch.vue

BIN
dist.zip


+ 7 - 1
src/views/modules/basicdata/branch.vue

@@ -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)