|
@@ -208,6 +208,16 @@ var releaseContainer = new Vue({
|
|
|
}else{
|
|
|
_this.paramKeyList = data.parametersList;
|
|
|
}
|
|
|
+ // 下拉列表初始化
|
|
|
+ setTimeout(function(){
|
|
|
+ _this.ChangeClassificationFirst({bigTypeId:data.bigTypeId, name:data.bigTypeName});
|
|
|
+ setTimeout(function(){
|
|
|
+ _this.ChangeClassificationTwo({smallTypeId:data.smallTypeId, name:data.smallTypeName});
|
|
|
+ setTimeout(function(){
|
|
|
+ _this.ChangeClassificationThree({tinyTypeId:data.tinyTypeId, name:data.tinyTypeName});
|
|
|
+ },500);
|
|
|
+ },500);
|
|
|
+ },500);
|
|
|
}else{
|
|
|
CAIMEI.Alert(response.msg, '确定', false);
|
|
|
}
|
|
@@ -425,7 +435,7 @@ var releaseContainer = new Vue({
|
|
|
_this.classificationThreeList =[];
|
|
|
_this.isSelectActive = 0;
|
|
|
if(_this.releaseParams.bigTypeId!=''){
|
|
|
- _this.GetTwoClassFn(_this.releaseParams.bigTypeId);
|
|
|
+ _this.GetTwoClassFn(option.bigTypeId);
|
|
|
}
|
|
|
},
|
|
|
ChangeClassificationTwo: function(option){//选择二级分类
|
|
@@ -436,7 +446,7 @@ var releaseContainer = new Vue({
|
|
|
_this.releaseParams.smallTypeId = option.smallTypeId;
|
|
|
_this.releaseParams.twoClassifyName = option.name;
|
|
|
_this.isSelectActive = 0;
|
|
|
- _this.GetThreeClassFn(_this.releaseParams.smallTypeId);
|
|
|
+ _this.GetThreeClassFn(option.smallTypeId);
|
|
|
},
|
|
|
ChangeClassificationThree: function(option){//选择三级分类
|
|
|
var _this = this;
|
|
@@ -1108,6 +1118,10 @@ var releaseContainer = new Vue({
|
|
|
this.newNum = value;
|
|
|
},
|
|
|
},
|
|
|
+ created: function () {
|
|
|
+ // 获取初始一级分类菜单
|
|
|
+ this.GetFistClassFn(this.releaseParams.commodityType);
|
|
|
+ },
|
|
|
mounted: function () {
|
|
|
var _this = this;
|
|
|
// var NODE_ENV_BASE_URL = $('#spiServer').val();
|
|
@@ -1122,6 +1136,5 @@ var releaseContainer = new Vue({
|
|
|
_this.GetEditReleaseProductInfo(_this.productId);
|
|
|
}
|
|
|
}
|
|
|
- _this.GetFistClassFn(_this.releaseParams.commodityType)
|
|
|
}
|
|
|
});
|