소스 검색

2021-05-20

East 4 년 전
부모
커밋
992a057a1f
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  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)