|
@ -1,5 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<Dialog :title="dialogTitle" v-model="searchDialogVisible" :width="'80%'"> |
|
|
<Dialog :title="dialogTitle" v-model="searchDialogVisible" :width="dialogWidth" > |
|
|
<!-- 搜索工作栏 --> |
|
|
<!-- 搜索工作栏 --> |
|
|
<!-- <Search :schema="searchSchema" @search="setSearchParamsRef" @reset="setSearchParamsRef" /> --> |
|
|
<!-- <Search :schema="searchSchema" @search="setSearchParamsRef" @reset="setSearchParamsRef" /> --> |
|
|
|
|
|
|
|
@ -72,6 +72,7 @@ const multipleBol = ref(false) |
|
|
const searchConditionRef = ref() |
|
|
const searchConditionRef = ref() |
|
|
|
|
|
|
|
|
const openData = (titleName: any, tableObject:any ,allSchemas: any,multiple: any) => { |
|
|
const openData = (titleName: any, tableObject:any ,allSchemas: any,multiple: any) => { |
|
|
|
|
|
dialogWidth.value = '80%' |
|
|
HeadButttondata.value = [ |
|
|
HeadButttondata.value = [ |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
] |
|
|
] |
|
@ -84,6 +85,7 @@ const openData = (titleName: any, tableObject:any ,allSchemas: any,multiple: any |
|
|
tableColumns.value = allSchemas.tableColumns |
|
|
tableColumns.value = allSchemas.tableColumns |
|
|
} |
|
|
} |
|
|
const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, searchField: any,multiple: any, type: any, row: any, searchCondition:any , isCountRequestRe:any,isConcatDetailSchemas=false,detailSchemas: any) => { |
|
|
const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, searchField: any,multiple: any, type: any, row: any, searchCondition:any , isCountRequestRe:any,isConcatDetailSchemas=false,detailSchemas: any) => { |
|
|
|
|
|
dialogWidth.value = '80%' |
|
|
HeadButttondata.value = [ |
|
|
HeadButttondata.value = [ |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
] |
|
|
] |
|
@ -121,7 +123,10 @@ const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, s |
|
|
getListRef.value = getList |
|
|
getListRef.value = getList |
|
|
getList() |
|
|
getList() |
|
|
} |
|
|
} |
|
|
|
|
|
const dialogWidth = ref('80%') |
|
|
|
|
|
const changeDialogWidth = (width: any) => { |
|
|
|
|
|
dialogWidth.value = width |
|
|
|
|
|
} |
|
|
const hiddenFilterButton = ()=>{ |
|
|
const hiddenFilterButton = ()=>{ |
|
|
HeadButttondata.value = [] |
|
|
HeadButttondata.value = [] |
|
|
} |
|
|
} |
|
@ -167,7 +172,7 @@ const searchFormClick = (searchData) => { |
|
|
getListRef.value() // 刷新当前列表 |
|
|
getListRef.value() // 刷新当前列表 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
defineExpose({ open,openData,hiddenFilterButton }) // 提供 open 方法,用于打开弹窗 |
|
|
defineExpose({ open,openData,hiddenFilterButton ,changeDialogWidth}) // 提供 open 方法,用于打开弹窗 |
|
|
|
|
|
|
|
|
// Table 组件 ref |
|
|
// Table 组件 ref |
|
|
const searchTableRef = ref() |
|
|
const searchTableRef = ref() |
|
|