|
@@ -208,10 +208,19 @@ export default {
|
|
|
detail(this.form.firstId).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
this.form = res.data
|
|
|
- res.data.secondTags.length > 0 ? this.inside = true : this.outside = true
|
|
|
- res.data.threeTag ? '' : this.form.threeTag = []
|
|
|
- console.log(res.data.secondTags);
|
|
|
- this.typeOptions = res.data.threeTag.length > 0 ? res.data.threeTag : res.data.secondTags.map(i => i.threeTag)
|
|
|
+ if (res.data.threeTag.length > 0) {
|
|
|
+ this.outside = true
|
|
|
+ this.form.threeTag = []
|
|
|
+ this.typeOptions = res.data.threeTag
|
|
|
+ } else {
|
|
|
+ this.typeOptions = []
|
|
|
+ this.inside = true
|
|
|
+ res.data.secondTags.map(i => {
|
|
|
+ i.threeTag.map(j => {
|
|
|
+ this.typeOptions.push(j)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|