Browse Source

修改合作伙伴编辑

qymljy 2 years ago
parent
commit
cb089b2f98
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/Form/marketing2/agent/edit.vue

+ 6 - 3
src/Form/marketing2/agent/edit.vue

@@ -29,7 +29,7 @@
             <el-col :span="12">
               <el-form-item label="省市县:">
                 <!--              <p class="enterpriseText">{{enterprise.province?enterprise.province:''}}</p>-->
-                <el-input v-model="enterprise.province" disabled></el-input>
+                <el-input v-model="value" disabled></el-input>
               </el-form-item>
             </el-col>
             <el-col :span="12">
@@ -245,6 +245,7 @@ export default {
       timer:0,
       radio:-1,
       title:'选择上级合作伙伴',
+      value:''
     }
   },
   components:{
@@ -257,6 +258,7 @@ export default {
       this.query_sysoptions()
       this.query_arealist()
       this.queryMain()
+
     },
     async queryMain() {
       const res = await this.$api.requested({
@@ -270,6 +272,7 @@ export default {
       res.data.sa_saleareaids?res.data.sa_saleareaids = JSON.parse(res.data.sa_saleareaids):''
       this.form = Object.assign({},this.form,res.data)
       this.enterprise = Object.assign({},this.form,res.data)
+      this.value = `${this.enterprise.province}-${this.enterprise.city}-${this.enterprise.county}`
       if (this.form.province) {
         this.form.province = [this.form.province,this.form.city,this.form.county]
       }
@@ -391,9 +394,9 @@ export default {
         this.fill = false
       }
     }
-   
+
   },
-  
+
 }
 
 </script>