mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-24 11:26:53 +08:00
地址的更改
This commit is contained in:
@@ -63,6 +63,9 @@ export default {
|
||||
usermessage:null,
|
||||
dialogInfo1:false,
|
||||
userpeople:'',
|
||||
provinceId:'',
|
||||
cityId:'',
|
||||
districtId:'',
|
||||
list: [
|
||||
{
|
||||
id: 1,
|
||||
@@ -121,11 +124,40 @@ export default {
|
||||
});
|
||||
return
|
||||
}
|
||||
|
||||
else if(this.provinceId===''){
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '请选择省区'
|
||||
});
|
||||
return
|
||||
}
|
||||
else if(this.cityId===''){
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '请选择市区'
|
||||
});
|
||||
return
|
||||
}
|
||||
else if(this.districtId===''){
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '请选择详细的区域'
|
||||
});
|
||||
return
|
||||
}
|
||||
|
||||
else{
|
||||
this.editaddress();
|
||||
}
|
||||
},
|
||||
openclose(){
|
||||
this.$router.push({
|
||||
path: "/useraddress/openaddress",
|
||||
// query: {
|
||||
// id: userid,
|
||||
// },
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
//添加
|
||||
@@ -144,10 +176,20 @@ export default {
|
||||
let data = await editaddress(useradd);
|
||||
if(data){
|
||||
console.log(data);
|
||||
this.$message({
|
||||
if(data){
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '地址添加成功'
|
||||
});
|
||||
this.$router.push({
|
||||
path: "/useraddress/openaddress",
|
||||
// query: {
|
||||
// id: userid,
|
||||
// },
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user