|
@ -50,9 +50,9 @@ const dialogTitle = ref('') // 弹窗的标题 |
|
|
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 |
|
|
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 |
|
|
|
|
|
|
|
|
// 列表头部按钮 |
|
|
// 列表头部按钮 |
|
|
const HeadButttondata = [ |
|
|
const HeadButttondata = ref([ |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
] |
|
|
]) |
|
|
|
|
|
|
|
|
/** 打开弹窗 */ |
|
|
/** 打开弹窗 */ |
|
|
const getListRef = ref() |
|
|
const getListRef = ref() |
|
@ -70,6 +70,9 @@ 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) => { |
|
|
|
|
|
HeadButttondata.value = [ |
|
|
|
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
|
|
|
] |
|
|
dialogTitle.value = titleName |
|
|
dialogTitle.value = titleName |
|
|
tableObjectRef.value = tableObject |
|
|
tableObjectRef.value = tableObject |
|
|
searchDialogVisible.value = true |
|
|
searchDialogVisible.value = true |
|
@ -79,6 +82,10 @@ 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) => { |
|
|
|
|
|
HeadButttondata.value = [ |
|
|
|
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
searchDialogVisible.value = true |
|
|
searchDialogVisible.value = true |
|
|
formFieldRef.value = formField |
|
|
formFieldRef.value = formField |
|
|
searchFieldRef.value = searchField |
|
|
searchFieldRef.value = searchField |
|
@ -112,6 +119,10 @@ const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, s |
|
|
getList() |
|
|
getList() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const hiddenFilterButton = ()=>{ |
|
|
|
|
|
HeadButttondata.value = [] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 筛选提交 |
|
|
// 筛选提交 |
|
|
const searchFormClick = (searchData) => { |
|
|
const searchFormClick = (searchData) => { |
|
|
console.log(99, rowRef.value) |
|
|
console.log(99, rowRef.value) |
|
@ -153,7 +164,7 @@ const searchFormClick = (searchData) => { |
|
|
getListRef.value() // 刷新当前列表 |
|
|
getListRef.value() // 刷新当前列表 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
defineExpose({ open,openData }) // 提供 open 方法,用于打开弹窗 |
|
|
defineExpose({ open,openData,hiddenFilterButton }) // 提供 open 方法,用于打开弹窗 |
|
|
|
|
|
|
|
|
// Table 组件 ref |
|
|
// Table 组件 ref |
|
|
const searchTableRef = ref() |
|
|
const searchTableRef = ref() |
|
|