mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-23 19:06:54 +08:00
addressInput error fixed
This commit is contained in:
@@ -477,11 +477,15 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.routeParams=this.$route.query;
|
||||
if(this.routeParams.stype)
|
||||
|
||||
let stype = this.routeParams.stype;
|
||||
stype = (stype=='0'?0:1);
|
||||
|
||||
if(stype>-1)
|
||||
this.activeIndex = this.routeParams.stype;//Initialized pet type selection
|
||||
},
|
||||
mounted() {
|
||||
let stype = this.routeParams.stype;
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.$refs.userstandard[0].style.margin = 0 + "px";
|
||||
});
|
||||
@@ -539,7 +543,7 @@ export default {
|
||||
this.userstype = data;
|
||||
this.isLoading = false;
|
||||
}
|
||||
this.usercatlist = this.userstype.filter((item) => item.petType == "0");
|
||||
this.usercatlist = this.userstype.filter((item) => item.petType == this.activeIndex);
|
||||
this.usercatlist.map((element) => {
|
||||
if (element.name == "品种") {
|
||||
pinzhong.push(element);
|
||||
@@ -569,7 +573,7 @@ export default {
|
||||
element.checked = false;
|
||||
});
|
||||
}
|
||||
console.log(pinzhong);
|
||||
//console.log(pinzhong);
|
||||
// debugger
|
||||
});
|
||||
let _self = this;
|
||||
|
||||
Reference in New Issue
Block a user