mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-04 03:06:39 +08:00
地址的更改
This commit is contained in:
parent
4d41716532
commit
5cf7ebfe00
@ -89,6 +89,7 @@ export default {
|
||||
},
|
||||
pickValue(pickId,pickName){
|
||||
let areaObj={id:pickId,name:pickName};
|
||||
console.log(pickId,pickName);
|
||||
this.returnValueArr[this.curDisplayingColIndex]=areaObj;
|
||||
this.validatePickedValues();
|
||||
|
||||
@ -113,6 +114,9 @@ export default {
|
||||
onChange(picker,values) { //values = [{id:this.columns[0].id, name:this.columns[0].name},{id:this.columns[1].id, name:this.columns[1].name},{id:this.columns[3].id, name:this.columns[3].name}];
|
||||
//Support single choice only , index = 0 province, index = 1 city, index = 2 area
|
||||
let curSelection={'province':'','city':'','area':''};
|
||||
// console.log(picker,values);
|
||||
this.$emit('getmenu',values)
|
||||
this.$emit("closeDialog");
|
||||
if(!values)
|
||||
return;
|
||||
let _self=this;
|
||||
@ -201,7 +205,7 @@ export default {
|
||||
this.hideAddress();
|
||||
},
|
||||
onCancel() {
|
||||
|
||||
|
||||
},
|
||||
fitlerValuesInArray(stringStartWith,dataColArea){
|
||||
let result=[];
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<addressInput @getmenu="onGetMenu" @closeDialog = "handleClose1" :dialogInfo1="dialogInfo1"></addressInput>
|
||||
|
||||
</div>
|
||||
<div class="rc-button">
|
||||
@ -38,6 +40,8 @@
|
||||
</div> -->
|
||||
|
||||
<MyFooter></MyFooter>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</template>
|
||||
@ -46,6 +50,7 @@
|
||||
|
||||
import Myheader from '~/components/header.vue'
|
||||
import MyFooter from '~/components/rc-footer.vue'
|
||||
import addressInput from '~/components/addressInput.vue'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -53,6 +58,7 @@ export default {
|
||||
checked: true,
|
||||
userid: null,
|
||||
usermessage:null,
|
||||
dialogInfo1:false,
|
||||
list: [
|
||||
{
|
||||
id: 1,
|
||||
@ -77,6 +83,12 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
onGetMenu(values){
|
||||
console.log(values,+'111111');
|
||||
},
|
||||
handleClose1(){
|
||||
this.dialogInfo1 = false
|
||||
},
|
||||
onEdit(item, index) {
|
||||
// let userid = item.id;
|
||||
console.log(item);
|
||||
@ -119,7 +131,8 @@ export default {
|
||||
},
|
||||
components: {
|
||||
Myheader,
|
||||
MyFooter
|
||||
MyFooter,
|
||||
addressInput
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
@ -63,7 +63,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { areaList } from '@vant/area-data';
|
||||
|
||||
import Myheader from '~/components/header.vue'
|
||||
import MyFooter from '~/components/rc-footer.vue'
|
||||
export default {
|
||||
@ -94,7 +94,6 @@ export default {
|
||||
address: "浙江省杭州市拱墅区莫干山路 50 号",
|
||||
},
|
||||
],
|
||||
areaList,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
Loading…
Reference in New Issue
Block a user