|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<el-select
|
|
|
ref="select"
|
|
|
- v-model="tagSelectValue"
|
|
|
+ :value="value"
|
|
|
style="width: 100%"
|
|
|
multiple
|
|
|
remote
|
|
@@ -13,8 +13,8 @@
|
|
|
@change="change"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(item, itemIndex) in options"
|
|
|
- :key="itemIndex"
|
|
|
+ v-for="item in options"
|
|
|
+ :key="item.id"
|
|
|
:label="item.tag"
|
|
|
:value="item.id"
|
|
|
>
|
|
@@ -47,11 +47,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- visible: false,
|
|
|
- isAddTag: true,
|
|
|
- options: [],
|
|
|
- tagSelectValue: [],
|
|
|
- tagValue: []
|
|
|
+ options: []
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -60,9 +56,9 @@ export default {
|
|
|
}, 700)
|
|
|
},
|
|
|
methods: {
|
|
|
- change() {
|
|
|
- this.$emit('input', this.tagSelectValue)
|
|
|
- this.$emit('change', this.tagSelectValue)
|
|
|
+ change(value) {
|
|
|
+ this.$emit('input', value)
|
|
|
+ this.$emit('change', value)
|
|
|
},
|
|
|
remoteMethod(searchTag = '') {
|
|
|
if (!this.$route.query.bizId) return
|