|
@@ -180,6 +180,9 @@ var releaseContainer = new Vue({
|
|
|
_this.selectText.bigTypeID = data.bigTypeName;
|
|
|
_this.selectText.smallTypeID = data.smallTypeName;
|
|
|
_this.selectText.tinyTypeID = data.tinyTypeName;
|
|
|
+ _this.releaseParams.bigTypeID = data.bigTypeID;
|
|
|
+ _this.releaseParams.smallTypeID =data.smallTypeID;
|
|
|
+ _this.releaseParams.tinyTypeID =data.tinyTypeID;
|
|
|
_this.releaseParams.firstClassifyName = data.bigTypeName;
|
|
|
_this.releaseParams.twoClassifyName = data.smallTypeName;
|
|
|
_this.releaseParams.threeClassifyName = data.tinyTypeName;
|
|
@@ -189,7 +192,7 @@ var releaseContainer = new Vue({
|
|
|
_this.classificationTwoList = data.smallTypeName;
|
|
|
_this.classificationThreeList = data.tinyTypeName;
|
|
|
if(data.commodityType !=null){
|
|
|
- _this.releaseParams.commodityTyp = data.commodityType;
|
|
|
+ _this.releaseParams.commodityType = data.commodityType;
|
|
|
_this.GetFistClassFn(_this.releaseParams.commodityTyp);
|
|
|
}
|
|
|
if(_this.classificationTwoList!=''){
|
|
@@ -382,7 +385,13 @@ var releaseContainer = new Vue({
|
|
|
var _this = this;
|
|
|
PublicApi.GetTwoClassFication({bigTypeId:value},function (response) {
|
|
|
if(response.code == 0){
|
|
|
- _this.classificationTwoList = response.data;
|
|
|
+ if(response.data.length>0){
|
|
|
+ _this.classificationTwoList = response.data;
|
|
|
+ }else {
|
|
|
+ _this.classificationTwoList = [];
|
|
|
+ _this.releaseParams.twoClassifyName = '';
|
|
|
+ _this.releaseParams.smallTypeID = ''
|
|
|
+ }
|
|
|
}else{
|
|
|
CAIMEI.Alert(response.msg, '确定', false);
|
|
|
}
|
|
@@ -392,7 +401,13 @@ var releaseContainer = new Vue({
|
|
|
var _this = this;
|
|
|
PublicApi.GetThreeClassFication({smallTypeId:value},function (response) {
|
|
|
if(response.code == 0){
|
|
|
- _this.classificationThreeList = response.data;
|
|
|
+ if(response.data.length>0){
|
|
|
+ _this.classificationThreeList = response.data;
|
|
|
+ }else {
|
|
|
+ _this.releaseParams.threeClassifyName = '';
|
|
|
+ _this.classificationThreeList = [];
|
|
|
+ _this.releaseParams.tinyTypeID = ''
|
|
|
+ }
|
|
|
}else{
|
|
|
CAIMEI.Alert(response.msg, '确定', false);
|
|
|
}
|