|
|
@ -223,23 +223,43 @@ export default defineComponent({ |
|
|
|
// 如果有 isSearchList: true ,使用查询弹层列表 |
|
|
|
const formItemSlotsSearchList: Recordable = setFormItemSlots(slots, item.field) |
|
|
|
if (item?.componentProps?.isSearchList) { |
|
|
|
formItemSlotsSearchList[item.field] = () => { |
|
|
|
if(item?.componentProps?.multiple){ |
|
|
|
|
|
|
|
formItemSlotsSearchList[item.field] = () => { |
|
|
|
return ( |
|
|
|
<> |
|
|
|
|
|
|
|
<ElTooltip placement="top" content={formModel.value[item.field]}> |
|
|
|
<ElInput class={'myInput'} v-model={formModel.value[item.field]} placeholder={item?.componentProps?.searchListPlaceholder} disabled={true} /></ElTooltip> |
|
|
|
<ElButton icon={Search} onClick={()=>{ |
|
|
|
opensearchTable( |
|
|
|
item.field, item?.componentProps?.searchField, |
|
|
|
item?.componentProps?.searchTitle, |
|
|
|
item?.componentProps?.searchAllSchemas, |
|
|
|
item?.componentProps?.searchPage, |
|
|
|
item?.componentProps?.searchCondition, |
|
|
|
item?.componentProps?.multiple, |
|
|
|
)}}/> |
|
|
|
</> |
|
|
|
) |
|
|
|
<ElTooltip placement="top" content={formModel.value[item.field]} visible={formModel.value[item.field]}> |
|
|
|
<ElInput class={'myInput'} v-model={formModel.value[item.field]} placeholder={item?.componentProps?.searchListPlaceholder} disabled={true} /> |
|
|
|
</ElTooltip> |
|
|
|
<ElButton icon={Search} onClick={()=>{ |
|
|
|
opensearchTable( |
|
|
|
item.field, item?.componentProps?.searchField, |
|
|
|
item?.componentProps?.searchTitle, |
|
|
|
item?.componentProps?.searchAllSchemas, |
|
|
|
item?.componentProps?.searchPage, |
|
|
|
item?.componentProps?.searchCondition, |
|
|
|
item?.componentProps?.multiple, |
|
|
|
)}}/> |
|
|
|
</> |
|
|
|
) |
|
|
|
} |
|
|
|
}else{ |
|
|
|
formItemSlotsSearchList[item.field] = () => { |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<ElInput class={'myInput'} v-model={formModel.value[item.field]} placeholder={item?.componentProps?.searchListPlaceholder} disabled={true} /> |
|
|
|
<ElButton icon={Search} onClick={()=>{ |
|
|
|
opensearchTable( |
|
|
|
item.field, item?.componentProps?.searchField, |
|
|
|
item?.componentProps?.searchTitle, |
|
|
|
item?.componentProps?.searchAllSchemas, |
|
|
|
item?.componentProps?.searchPage, |
|
|
|
item?.componentProps?.searchCondition, |
|
|
|
item?.componentProps?.multiple, |
|
|
|
)}}/> |
|
|
|
</> |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return ( |
|
|
@ -333,7 +353,7 @@ export default defineComponent({ |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.myInput{ |
|
|
|
.myInput { |
|
|
|
width: calc(100% - 46px); |
|
|
|
} |
|
|
|
.#{$elNamespace}-form.#{$namespace}-form .#{$elNamespace}-row { |
|
|
|