|
@@ -15,10 +15,10 @@
|
|
<el-option
|
|
<el-option
|
|
v-for="(item, itemIndex) in options"
|
|
v-for="(item, itemIndex) in options"
|
|
:key="itemIndex"
|
|
:key="itemIndex"
|
|
- :label="item"
|
|
|
|
- :value="item"
|
|
|
|
|
|
+ :label="item.tag"
|
|
|
|
+ :value="item.id"
|
|
>
|
|
>
|
|
- {{ item }}
|
|
|
|
|
|
+ {{ item.tag }}
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|
|
@@ -60,8 +60,6 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
change() {
|
|
change() {
|
|
- this.tagSelectValue = Array.from(new Set(this.tagSelectValue))
|
|
|
|
- this.options = Array.from(new Set([...this.options, ...this.tagSelectValue]))
|
|
|
|
this.$emit('input', this.tagSelectValue)
|
|
this.$emit('input', this.tagSelectValue)
|
|
this.$emit('change', this.tagSelectValue)
|
|
this.$emit('change', this.tagSelectValue)
|
|
},
|
|
},
|
|
@@ -74,7 +72,7 @@ export default {
|
|
bizId: bizId_id
|
|
bizId: bizId_id
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
- this.options = res.data.map(elm => elm.tag)
|
|
|
|
|
|
+ this.options = res.data.map(elm => elm)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|