|
@@ -7,7 +7,9 @@
|
|
|
@close="$emit('close')"
|
|
|
>
|
|
|
<div class="partic-dialog-container">
|
|
|
- <div v-if="isShowPermission">{{this.chartPermissionName}}</div>
|
|
|
+ <div v-if="isShowPermission" style="margin-bottom:20px">
|
|
|
+ <el-tag type="info" size="small"> {{this.chartPermissionName}}</el-tag>
|
|
|
+ </div>
|
|
|
<el-select v-else 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>
|
|
@@ -82,6 +84,7 @@ export default {
|
|
|
hashtagValue:'',// 主题标签
|
|
|
hashtagOptions:[],// 主题数据
|
|
|
tagList:[],// /标签类型
|
|
|
+ tagName: '',
|
|
|
chartPermissionName:'',
|
|
|
isShowPermission:false
|
|
|
};
|
|
@@ -172,12 +175,13 @@ export default {
|
|
|
},
|
|
|
async remoteMethodHandler(query){
|
|
|
if (query !== '') {
|
|
|
+ let KeyWord = this.tagName? this.tagName + ',' + query : query;
|
|
|
const res = await roadshowInterence.rai_serve_search_tag({
|
|
|
- KeyWord:query,
|
|
|
+ KeyWord,
|
|
|
ResearcherId:this.ResearcherId,
|
|
|
})
|
|
|
if( res.Ret===200 ){
|
|
|
- this.hashtagOptions = this.hashtagOptions.concat(res.Data.List || [])
|
|
|
+ this.hashtagOptions = res.Data.List || []
|
|
|
}
|
|
|
}else if(!this.hashtagValue.length && !query){
|
|
|
this.hashtagOptions =[]
|
|
@@ -185,18 +189,21 @@ export default {
|
|
|
},
|
|
|
tagSelectHandler(){
|
|
|
let tagListArr = []
|
|
|
+ let nameArr = []
|
|
|
this.hashtagOptions.forEach(item=>{
|
|
|
if(this.hashtagValue.length && this.hashtagValue.includes(item.Md5Key)) {
|
|
|
tagListArr.push({
|
|
|
TagType: item.TagType,
|
|
|
TagId: item.TagId,
|
|
|
})
|
|
|
+ nameArr.push(item.TagName)
|
|
|
}
|
|
|
})
|
|
|
this.tagList = tagListArr
|
|
|
+ this.tagName = nameArr.join(',')
|
|
|
},
|
|
|
async getIsPermissionName(){
|
|
|
- const res = await roadshowInterence.rai_serve_search_chcck_PermissionName()
|
|
|
+ const res = await roadshowInterence.rai_serve_search_chcck_PermissionName({ResearcherId:this.ResearcherId})
|
|
|
if( res.Ret===200 ){
|
|
|
this.chartPermissionName = res.Data.ChartPermissionName
|
|
|
this.isShowPermission = res.Data.Belong
|