<el-form-item label="市">
<el-select v-model="form.m_address2" placeholder="请选择">
<el-option v-for="item1 in fromData.a2" :label="item1.city_name" :value="item1.city_id">
</el-option>
</el-select>
</el-form-item>
var Main = {
data() { return {
a2:[],
}
}
}
methods: {
selectMajor:function(){
var that = this;
$.ajax({
url:"{:url('Member/getProvince')}", type: 'POST',
data: {'address1':this.form.m_address1},
success:function(data){
console.log(JSON.stringify (data));
that.a2=JSON.stringify(data);
},error:function(data){
alert("网络错误!请稍后再试!");
},
});
},
添加回答
举报
0/150
提交
取消