|
|
@ -821,7 +821,15 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: |
|
|
|
} |
|
|
|
} |
|
|
|
const updateList = ()=>{ |
|
|
|
getList() |
|
|
|
|
|
|
|
// 刷新 |
|
|
|
if (tableObjectRef.value.params.filters && tableObjectRef.value.params.filters.length > 0) { |
|
|
|
searchFormClick({ |
|
|
|
filters: tableObjectRef.value.params.filters |
|
|
|
}) |
|
|
|
} else { |
|
|
|
getList() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 获取备注列表 |
|
|
@ -1005,7 +1013,7 @@ const submitForm = async (formType, data) => { |
|
|
|
emit('handleMainFefresh') |
|
|
|
formRef.value.dialogVisible = false |
|
|
|
// 刷新当前列表 |
|
|
|
await getList() |
|
|
|
updateList() |
|
|
|
updateKey.value += 1 |
|
|
|
} |
|
|
|
} finally { |
|
|
@ -1016,7 +1024,7 @@ const submitForm = async (formType, data) => { |
|
|
|
const submitUpdateList = async ()=>{ |
|
|
|
formRef.value.dialogVisible = false |
|
|
|
// 刷新当前列表 |
|
|
|
await getList() |
|
|
|
updateList() |
|
|
|
updateKey.value += 1 |
|
|
|
} |
|
|
|
|
|
|
@ -1064,29 +1072,35 @@ const handleDelete = async (id: number) => { |
|
|
|
message.success(t('common.delSuccess')) |
|
|
|
emit('handleMainFefresh') |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
await updateList() |
|
|
|
updateKey.value += 1 |
|
|
|
} catch { |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
updateList() |
|
|
|
} |
|
|
|
} |
|
|
|
// 筛选提交 |
|
|
|
const searchFormClick = async (searchData) => { |
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: props.apiPage // 分页接口 |
|
|
|
}) |
|
|
|
tableObject.params = { |
|
|
|
tableObjectRef.value.params = { |
|
|
|
isSearch: true, |
|
|
|
filters: searchData.filters |
|
|
|
? searchData.filters |
|
|
|
: [{ column: 'masterId', action: '==', value: masterParmas.value.masterId }] |
|
|
|
} |
|
|
|
detailAllSchemasRef.value = props.detailAllSchemas |
|
|
|
tableObjectRef.value = tableObject |
|
|
|
tableMethodsRef.value = tableMethods |
|
|
|
tableObjectRef.value.tableList = [] |
|
|
|
const { getList } = tableMethods |
|
|
|
// const { tableObject, tableMethods } = useTable({ |
|
|
|
// getListApi: props.apiPage // 分页接口 |
|
|
|
// }) |
|
|
|
// tableObject.params = { |
|
|
|
// isSearch: true, |
|
|
|
// filters: searchData.filters |
|
|
|
// ? searchData.filters |
|
|
|
// : [{ column: 'masterId', action: '==', value: masterParmas.value.masterId }] |
|
|
|
// } |
|
|
|
// detailAllSchemasRef.value = props.detailAllSchemas |
|
|
|
// tableObjectRef.value = tableObject |
|
|
|
// tableMethodsRef.value = tableMethods |
|
|
|
// tableObjectRef.value.tableList = [] |
|
|
|
// const { getList } = tableMethods |
|
|
|
await getList() |
|
|
|
updateKey.value += 1 |
|
|
|
// tableObjectRef.value.params = { |
|
|
|