Browse Source

弹出框bug,鼠标悬停

master
zhang_li 12 months ago
parent
commit
5bb8002816
  1. 2
      src/components/BasicForm/src/BasicForm.vue
  2. 52
      src/components/Form/src/Form.vue
  3. 4
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
  4. 4
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

2
src/components/BasicForm/src/BasicForm.vue

@ -1,5 +1,5 @@
<template>
<Dialog :title="dialogTitle" v-model="dialogVisible" :width="isBusiness ? '60%' : '40%'">
<Dialog :title="dialogTitle" v-model="dialogVisible" :width="isBusiness ? '60%' : '40%'" :close-on-click-modal="false">
<Form
ref="formRef"
v-loading="formLoading"

52
src/components/Form/src/Form.vue

@ -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 {

4
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue

@ -141,8 +141,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:inspect-request-main:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:inspect-request-main:import'}), //
// defaultButtons.defaultAddBtn({hasPermi:'wms:inspect-request-main:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'wms:inspect-request-main:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:inspect-request-main:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //

4
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

@ -141,8 +141,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:putaway-request-main:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:putaway-request-main:import'}), //
// defaultButtons.defaultAddBtn({hasPermi:'wms:putaway-request-main:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'wms:putaway-request-main:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:putaway-request-main:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //

Loading…
Cancel
Save