拆分回显悬浮数据显示修改
This commit is contained in:
@@ -184,7 +184,7 @@
|
||||
scopedSlots: { customRender: 'operation' }
|
||||
})
|
||||
}
|
||||
console.log('columns',this.columns)
|
||||
// console.log('columns',this.columns)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -206,7 +206,9 @@
|
||||
pageNo: pageNo + '',
|
||||
pageSize: pageSize + ''
|
||||
}
|
||||
|
||||
if(!params.info_id){
|
||||
params.info_id=this.infoId
|
||||
}
|
||||
// console.log('parmsss',params)
|
||||
this.loading = true
|
||||
postAction(this.url.tableList, params).then((res) => {
|
||||
|
||||
@@ -13,13 +13,14 @@
|
||||
:maxTagTextLength="2"
|
||||
:placeholder="placeholder"
|
||||
:getPopupContainer="getParentContainer"
|
||||
:maxTagPlaceholder="content+'...'"
|
||||
optionFilterProp="children"
|
||||
:filterOption="filterOption">
|
||||
<a-select-option
|
||||
v-for="(item,index) in dictOptions"
|
||||
:key="index"
|
||||
:value="item.value">
|
||||
<span style="display: inline-block;width: 100%" :title=" item.text || item.label ">
|
||||
<span style="display: inline-block;width: 100%" :title="item.text || item.label">
|
||||
{{ item.text || item.label }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
@@ -54,7 +55,8 @@
|
||||
return {
|
||||
dictOptions: [],
|
||||
tagType:"",
|
||||
arrayValue:!this.value?[]:this.value.split(this.spliter)
|
||||
arrayValue:!this.value?[]:this.value.split(this.spliter),
|
||||
content:''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -81,6 +83,19 @@
|
||||
this.arrayValue = []
|
||||
}else{
|
||||
this.arrayValue = this.value.split(this.spliter)
|
||||
let arrayValue=JSON.parse(JSON.stringify(this.arrayValue))
|
||||
let item = []
|
||||
this.dictOptions.forEach(res=>{
|
||||
arrayValue.forEach((val,index)=>{
|
||||
if (res.value == val&&index!=0){
|
||||
item.push(res.text || res.label)
|
||||
}
|
||||
|
||||
})
|
||||
this.content=item.join(',')
|
||||
})
|
||||
|
||||
console.log('value111',this.content)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -106,18 +121,25 @@
|
||||
},
|
||||
onChange (selectedValue) {
|
||||
let content = []
|
||||
let item = []
|
||||
this.dictOptions.forEach(res=>{
|
||||
selectedValue.forEach(val=>{
|
||||
selectedValue.forEach((val,index)=>{
|
||||
if (res.value == val){
|
||||
content.push(res.text || res.label)
|
||||
if(index!=0){
|
||||
item.push(res.text || res.label)
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
this.content=item.join(',')
|
||||
})
|
||||
this.$emit('change', selectedValue.join(this.spliter));
|
||||
this.$emit('changeQuery', content.join(this.spliter),this.db_field_name);
|
||||
},
|
||||
setCurrentDictOptions(dictOptions){
|
||||
this.dictOptions = dictOptions
|
||||
|
||||
},
|
||||
getCurrentDictOptions(){
|
||||
return this.dictOptions
|
||||
|
||||
Reference in New Issue
Block a user