|
|
@ -412,6 +412,7 @@ export default { |
|
|
|
handleChangeCate () { |
|
|
|
console.log(this.$refs["myCascader"].getCheckedNodes()[0].data) |
|
|
|
this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
|
|
|
|
|
this.formData.categoryId = this.selCateObj.id |
|
|
|
}, |
|
|
|
|
|
|
@ -525,10 +526,9 @@ export default { |
|
|
|
this.$refs["ref_form"].validate((valid, messageObj) => { |
|
|
|
if (!valid) { |
|
|
|
app.util.validateRule(messageObj); |
|
|
|
|
|
|
|
// this.formData.categoryId = this.selCateObj.id |
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
this.okflag = true |
|
|
|
} |
|
|
|
}); |
|
|
|