|
|
@ -93,7 +93,7 @@ const tableObjectRef = ref() |
|
|
|
const getPage: any = ref() |
|
|
|
const searchSchema = ref() |
|
|
|
const tableColumns = ref() |
|
|
|
const formFieldRef = ref() |
|
|
|
const formFieldRef = ref('') |
|
|
|
const searchFieldRef = ref() |
|
|
|
const typeRef = ref() |
|
|
|
const rowRef = ref() |
|
|
@ -102,6 +102,10 @@ const searchConditionRef = ref() |
|
|
|
const searchTableSelectionsList = ref() //表格弹窗回显的列表 |
|
|
|
const searchQuery = ref(false) |
|
|
|
const hiddenFilterBtn = ref(false) |
|
|
|
const updateData = (list:any)=>{ |
|
|
|
tableObjectRef.value.tableList = list |
|
|
|
searchTableRef.value.clearSelection() |
|
|
|
} |
|
|
|
const openData = (titleName: any, tableObject:any ,allSchemas: any,multiple: any) => { |
|
|
|
dialogWidth.value = '80%' |
|
|
|
multipleBol.value = multiple |
|
|
@ -110,10 +114,10 @@ const openData = (titleName: any, tableObject:any ,allSchemas: any,multiple: any |
|
|
|
defaultButtons.defaultWhenPageBtn(null), // 选择当页 |
|
|
|
defaultButtons.defaultUnselectPageBtn(null), // 反选当页 |
|
|
|
// defaultButtons.defaultDeselectAllBtn(null), // 取消全选 |
|
|
|
defaultButtons.defaultFilterBtn(null) // 筛选 |
|
|
|
// defaultButtons.defaultFilterBtn(null) // 筛选 |
|
|
|
] |
|
|
|
: [ |
|
|
|
defaultButtons.defaultFilterBtn(null) // 筛选 |
|
|
|
// defaultButtons.defaultFilterBtn(null) // 筛选 |
|
|
|
] |
|
|
|
dialogTitle.value = t(`ts.${titleName}`).replace('ts.', '') |
|
|
|
tableObjectRef.value = tableObject |
|
|
@ -238,7 +242,7 @@ const buttonBaseClick = (val, item) => { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
defineExpose({ open,openData,hiddenFilterButton ,changeDialogWidth,searchFormClick}) // 提供 open 方法,用于打开弹窗 |
|
|
|
defineExpose({ open,openData,updateData,hiddenFilterButton ,changeDialogWidth,searchFormClick}) // 提供 open 方法,用于打开弹窗 |
|
|
|
|
|
|
|
// Table 组件 ref |
|
|
|
const searchTableRef = ref() |
|
|
|