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