Commit 2c439c19 authored by Damon's avatar Damon

Merge branch 'dev-1.5.0' into test

parents ca963126 b4375778
...@@ -272,6 +272,7 @@ export default { ...@@ -272,6 +272,7 @@ export default {
this.scrollId = `brand${item.id}` this.scrollId = `brand${item.id}`
} else { } else {
this.brandId = this.brand?.[0]?.id this.brandId = this.brand?.[0]?.id
this.scrollId = `brand${this.brandId}`
this.lists = [] this.lists = []
this.getThreeLevel() this.getThreeLevel()
} }
...@@ -287,9 +288,9 @@ export default { ...@@ -287,9 +288,9 @@ export default {
speciesId: '' speciesId: ''
} }
if (this.classifyId === 1) { if (this.classifyId === 1) {
params.partnerCompanyId = this.brandId params.partnerCompanyId = this.brandId || ''
} else { } else {
params.speciesId = this.brandId params.speciesId = this.brandId || ''
} }
this.$u.api.getThreeLevel(params).then(res => { this.$u.api.getThreeLevel(params).then(res => {
...@@ -309,6 +310,7 @@ export default { ...@@ -309,6 +310,7 @@ export default {
this.scrollModelId = `model${item.id}` this.scrollModelId = `model${item.id}`
} else { } else {
this.modelId = this.model?.[0]?.id this.modelId = this.model?.[0]?.id
this.scrollModelId = `model${this.modelId}`
this.lists = [] this.lists = []
this.getPartsList() this.getPartsList()
} }
...@@ -335,7 +337,6 @@ export default { ...@@ -335,7 +337,6 @@ export default {
} else { } else {
params.speciesId = this.brandId || '' params.speciesId = this.brandId || ''
} }
this.$u.api.getPartsList(params).then((res) => { this.$u.api.getPartsList(params).then((res) => {
if (res.code === 200) { if (res.code === 200) {
const data = res.data const data = res.data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment