|
@@ -96,7 +96,7 @@ export default {
|
|
|
this.subCategory = null
|
|
this.subCategory = null
|
|
|
this.subCategoryOptions = []
|
|
this.subCategoryOptions = []
|
|
|
if (!newValue.item.children) {
|
|
if (!newValue.item.children) {
|
|
|
- this.$emit('update:value', newValue.value)
|
|
|
|
|
|
|
+ this.$emit('update:value', newValue.value.id)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
this.subCategoryOptions = newValue.item.children.map(item => {
|
|
this.subCategoryOptions = newValue.item.children.map(item => {
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
this.bakhshCategory = null
|
|
this.bakhshCategory = null
|
|
|
this.bakhshCategoryOptions = []
|
|
this.bakhshCategoryOptions = []
|
|
|
if (!newValue.item.children) {
|
|
if (!newValue.item.children) {
|
|
|
- this.$emit('update:value', newValue.value)
|
|
|
|
|
|
|
+ this.$emit('update:value', newValue.value.id)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
this.bakhshCategoryOptions = newValue.item.children.map(item => {
|
|
this.bakhshCategoryOptions = newValue.item.children.map(item => {
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
bakhshCategory (newValue) {
|
|
bakhshCategory (newValue) {
|
|
|
- const categoryId = newValue ? newValue.value : null
|
|
|
|
|
|
|
+ const categoryId = newValue ? newValue.value.id : null
|
|
|
this.$emit('update:value', categoryId)
|
|
this.$emit('update:value', categoryId)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -179,7 +179,6 @@ export default {
|
|
|
value: item.id
|
|
value: item.id
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
if (this.value?.parent?.parent?.id && this.value.id) {
|
|
if (this.value?.parent?.parent?.id && this.value.id) {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.setMainCategory()
|
|
this.setMainCategory()
|