|
@@ -114,6 +114,7 @@
|
|
|
this.handleEditCreated();
|
|
|
},
|
|
|
selectProductCateValue: function (newValue) {
|
|
|
+ console.log('newValue',newValue);
|
|
|
if (newValue != null && newValue.length === 2) {
|
|
|
this.value.productCategoryId = newValue[1];
|
|
|
this.value.productCategoryName= this.getCateNameById(this.value.productCategoryId);
|
|
@@ -128,7 +129,7 @@
|
|
|
handleEditCreated(){
|
|
|
if(this.value.productCategoryId!=null){
|
|
|
this.selectProductCateValue.push(this.value.cateParentId);
|
|
|
- this.selectProductCateValue.push(this.value.productCategoryId);
|
|
|
+ this.selectProductCateValue.push(this.value.productCategoryId);
|
|
|
}
|
|
|
this.hasEditCreated=true;
|
|
|
},
|
|
@@ -170,7 +171,8 @@
|
|
|
},
|
|
|
handleNext(formName){
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
+ console.log('this.$refs[formName]',this.$refs[formName]);
|
|
|
+ if (valid) {
|
|
|
this.$emit('nextStep');
|
|
|
} else {
|
|
|
this.$message({
|