|
@@ -78,6 +78,10 @@ export default {
|
|
|
short:{
|
|
short:{
|
|
|
type:Boolean,
|
|
type:Boolean,
|
|
|
default:false,
|
|
default:false,
|
|
|
|
|
+ },
|
|
|
|
|
+ loading:{
|
|
|
|
|
+ type:Boolean,
|
|
|
|
|
+ default:false,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
@@ -96,6 +100,7 @@ export default {
|
|
|
tempDatas:[],
|
|
tempDatas:[],
|
|
|
tabIndex:0,
|
|
tabIndex:0,
|
|
|
currItem:{},
|
|
currItem:{},
|
|
|
|
|
+ isLoading:false,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
watch:{
|
|
watch:{
|
|
@@ -129,6 +134,9 @@ export default {
|
|
|
this.tabIndex += 1;
|
|
this.tabIndex += 1;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ loading(val,oldVal){
|
|
|
|
|
+ this.isLoading = val;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -149,6 +157,9 @@ export default {
|
|
|
this.currItem = {};
|
|
this.currItem = {};
|
|
|
},
|
|
},
|
|
|
getNextList(item){
|
|
getNextList(item){
|
|
|
|
|
+ if(this.isLoading){
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
this.tempDatas[this.tabIndex-1].item = item;
|
|
this.tempDatas[this.tabIndex-1].item = item;
|
|
|
this.currItem = item;
|
|
this.currItem = item;
|
|
|
this.$emit('choose-item',item,this.tabIndex);
|
|
this.$emit('choose-item',item,this.tabIndex);
|