|
@@ -7,8 +7,8 @@
|
|
|
@close="$emit('close')"
|
|
|
>
|
|
|
<div class="partic-dialog-container">
|
|
|
- <el-select v-model="hashtagValue" multiple filterable remote reserve-keyword placeholder="请输入路演主题标签(可多选)" :remote-method="remoteMethod" style="width:392px;margin-bottom:20px">
|
|
|
- <el-option v-for="item in hashtagOptions" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
|
+ <el-select v-model="hashtagValue" multiple filterable remote reserve-keyword placeholder="请输入路演主题标签(可多选)" :remote-method="remoteMethodHandler" style="width:392px;margin-bottom:20px" @change="tagSelectHandler">
|
|
|
+ <el-option v-for="item in hashtagOptions" :key="item.Md5Key" :label="item.TagName" :value="item.Md5Key"> </el-option>
|
|
|
</el-select>
|
|
|
<div class="inline" v-for="(item, index) in dynamicItem" :key="index">
|
|
|
<div class="inline-content">
|
|
@@ -58,6 +58,10 @@ export default {
|
|
|
RsCalendarId:{
|
|
|
type:Number,
|
|
|
default:0
|
|
|
+ },
|
|
|
+ ResearcherId:{
|
|
|
+ type:Number,
|
|
|
+ default:0
|
|
|
}
|
|
|
},
|
|
|
watch:{
|
|
@@ -75,6 +79,8 @@ export default {
|
|
|
warningIsShow:false,
|
|
|
hashtagValue:'',// 主题标签
|
|
|
hashtagOptions:[],// 主题数据
|
|
|
+ tagIdTypes:[],// /标签类型
|
|
|
+ tagIds:[],//标签ID
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -160,9 +166,31 @@ export default {
|
|
|
this.$emit('confirm')
|
|
|
})
|
|
|
},
|
|
|
- remoteMethod(query){
|
|
|
- if (query !== '') {}
|
|
|
+ async remoteMethodHandler(query){
|
|
|
+ if (query !== '') {
|
|
|
+ const res = await roadshowInterence.rai_serve_search_tag({
|
|
|
+ KeyWord:query,
|
|
|
+ ResearcherId:this.ResearcherId,
|
|
|
+ })
|
|
|
+ if( res.Ret===200 ){
|
|
|
+ this.hashtagOptions = res.Data.List || []
|
|
|
+ }
|
|
|
+ }else if(!this.hashtagValue && !query){
|
|
|
+ this.hashtagOptions =[]
|
|
|
+ }
|
|
|
},
|
|
|
+ tagSelectHandler(){
|
|
|
+ let types = []
|
|
|
+ let ids =[]
|
|
|
+ this.hashtagOptions.forEach(item=>{
|
|
|
+ if(this.hashtagValue && this.hashtagValue.includes(item.Md5Key)) {
|
|
|
+ types.push(item.TagType)
|
|
|
+ ids.push(item.TagId)
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ console.log(arr,this.hashtagValue);
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|