|
@ -39,13 +39,17 @@ const searchSchema = ref() |
|
|
const tableColumns = ref() |
|
|
const tableColumns = ref() |
|
|
const formFieldRef = ref() |
|
|
const formFieldRef = ref() |
|
|
const searchFieldRef = ref() |
|
|
const searchFieldRef = ref() |
|
|
const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, searchField: any ) => { |
|
|
const typeRef = ref() |
|
|
|
|
|
const rowRef = ref() |
|
|
|
|
|
const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, searchField: any, type: any, row: any ) => { |
|
|
searchDialogVisible.value = true |
|
|
searchDialogVisible.value = true |
|
|
formFieldRef.value = formField |
|
|
formFieldRef.value = formField |
|
|
searchFieldRef.value = searchField |
|
|
searchFieldRef.value = searchField |
|
|
searchSchema.value = allSchemas.searchSchema |
|
|
searchSchema.value = allSchemas.searchSchema |
|
|
tableColumns.value = allSchemas.tableColumns |
|
|
tableColumns.value = allSchemas.tableColumns |
|
|
getPage.value = getApiPage |
|
|
getPage.value = getApiPage |
|
|
|
|
|
typeRef.value = type |
|
|
|
|
|
rowRef.value = row |
|
|
// dialogTitle.value = t('action.' + type) |
|
|
// dialogTitle.value = t('action.' + type) |
|
|
dialogTitle.value = titleName |
|
|
dialogTitle.value = titleName |
|
|
const {tableObject, tableMethods } = useTable({ |
|
|
const {tableObject, tableMethods } = useTable({ |
|
@ -75,11 +79,9 @@ const submitForm = async () => { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
try { |
|
|
try { |
|
|
|
|
|
|
|
|
searchDialogVisible.value = false |
|
|
searchDialogVisible.value = false |
|
|
// 发送操作成功的事件 |
|
|
// 发送操作成功的事件 |
|
|
emit('searchTableSuccess', formFieldRef.value, searchFieldRef.value, selections) |
|
|
emit('searchTableSuccess', formFieldRef.value, searchFieldRef.value, selections, typeRef.value, rowRef.value) |
|
|
searchDialogVisible.value = false |
|
|
|
|
|
} finally { |
|
|
} finally { |
|
|
formLoading.value = false |
|
|
formLoading.value = false |
|
|
} |
|
|
} |
|
|