|
@@ -66,8 +66,8 @@ var releaseContainer = new Vue({
|
|
|
paramKeyList:[{paramsName:'',paramsContent:''}],//相关参数
|
|
|
formData:new FormData(),
|
|
|
classificationFirstList:[{name:'请选择',value:''}],
|
|
|
- classificationTwoList:[{name:'请选择',value:''}],
|
|
|
- classificationThreeList:[{name:'请选择',value:''}],
|
|
|
+ classificationTwoList:[],
|
|
|
+ classificationThreeList:[],
|
|
|
keywordText:'请务必准确定义关键词,关键词会影响商品的搜索结果,建议从品牌,商品学名,商品别名,商品大类别和商品小类别5个方面考虑,每个关键词不超过16个汉字',
|
|
|
selectText:{
|
|
|
bigTypeID:'请选择一级分类',
|
|
@@ -140,7 +140,6 @@ var releaseContainer = new Vue({
|
|
|
this.selectText.bigTypeID='请选择一级分类';
|
|
|
this.selectText.smallTypeID = '请选择二级分类';
|
|
|
this.releaseParams.bigTypeID ='';
|
|
|
- this.classificationTwoList = [{name:'请选择',value:''}];
|
|
|
this.GetFistClassFn(val);
|
|
|
},
|
|
|
GetEditReleaseProductInfo: function(productId){
|
|
@@ -369,7 +368,7 @@ var releaseContainer = new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- GetTwoClassFn: function(value){//获取一级分类菜单
|
|
|
+ GetTwoClassFn: function(value){//获取二级分类菜单
|
|
|
var _this = this;
|
|
|
PublicApi.GetTwoClassFication({bigTypeId:value},function (response) {
|
|
|
if(response.code == 0){
|
|
@@ -379,7 +378,7 @@ var releaseContainer = new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- GetThreeClassFn: function(value){//获取一级分类菜单
|
|
|
+ GetThreeClassFn: function(value){//获取三级分类菜单
|
|
|
var _this = this;
|
|
|
PublicApi.GetThreeClassFication({smallTypeId:value},function (response) {
|
|
|
if(response.code == 0){
|
|
@@ -398,6 +397,7 @@ var releaseContainer = new Vue({
|
|
|
_this.selectText.tinyTypeID = '请选择三级分类';
|
|
|
_this.isSelectActive = 0;
|
|
|
if(_this.releaseParams.bigTypeID!=''){
|
|
|
+
|
|
|
_this.GetTwoClassFn(_this.releaseParams.bigTypeID);
|
|
|
}
|
|
|
},
|
|
@@ -1072,5 +1072,6 @@ var releaseContainer = new Vue({
|
|
|
_this.GetEditReleaseProductInfo(_this.productId);
|
|
|
}
|
|
|
}
|
|
|
+ console.log(_this.classificationTwoList)
|
|
|
}
|
|
|
});
|