quanwei
7 days ago 30563323a53b0d0260c97d08a9e8bd4cc8227a95
supplier_vue/src/views/setting/supplier/index.vue
@@ -25,12 +25,12 @@
        <el-form-item label="坐标">
          <el-row class="mb16">
            <el-col :span="24">
              <el-input v-model="form.supplier.coordinate" class="max-w460"></el-input>
              <el-input v-model="formData.coordinate" class="max-w460"></el-input>
            </el-col>
          </el-row>
          <el-row class="mb16">
            <el-col :span="24">
              <Getpoint :form="form.supplier" @getMapdata="getMapdataFunc" @chose="choseFunc"></Getpoint>
              <Getpoint :form="formData.supplier" @getMapdata="getMapdataFunc" @chose="choseFunc"></Getpoint>
            </el-col>
          </el-row>
        </el-form-item>
@@ -91,7 +91,8 @@
            description:'',
            logo_id:0,
            //business_id:0,
            notice: ''
            notice: '',
            coordinate:''
          },
          /*是否打开图片选择*/
          isupload:false,
@@ -107,22 +108,22 @@
      methods:{
        /*初始化城市id*/
        initCity() {
          this.form.supplier.city_id = ''
          this.formData.city_id = ''
        },
        /*初始化区id*/
        initRegion() {
          this.form.supplier.region_id = ''
          this.formData.region_id = ''
        },
        /*获取经纬度*/
        getMapdataFunc(e) {
          this.form.supplier.coordinate = e.data[0].toFixed(6) + ',' + e.data[1].toFixed(6);
          this.formData.coordinate = e.data[0].toFixed(6) + ',' + e.data[1].toFixed(6);
        },
        /*选择的地址*/
        choseFunc(e){
          this.form.supplier.coordinate=e.location.lat+','+e.location.lng;
          this.form.supplier.address=e.address;
          this.formData.coordinate=e.location.lat+','+e.location.lng;
          this.formData.address=e.address;
        },