|
|
|
@ -17,10 +17,10 @@
|
|
|
|
|
import { BasicModal, useModalInner } from '/@/components/Modal'
|
|
|
|
|
import { InfoColumns } from './columns'
|
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
|
const cntrno = ref('')
|
|
|
|
|
const rowId = ref('')
|
|
|
|
|
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
|
|
|
|
|
setModalProps({ confirmLoading: false, loading: true })
|
|
|
|
|
cntrno.value = data.cntrno
|
|
|
|
|
rowId.value = data.id
|
|
|
|
|
reload()
|
|
|
|
|
setModalProps({ loading: false })
|
|
|
|
|
})
|
|
|
|
@ -34,9 +34,28 @@
|
|
|
|
|
resolve({ data: [...res.data], total: res.count })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
beforeFetch: (p) => {
|
|
|
|
|
p['cntrno'] = cntrno.value
|
|
|
|
|
return formatParams(p)
|
|
|
|
|
// beforeFetch: (p) => {
|
|
|
|
|
// p['id'] = rowId.value
|
|
|
|
|
// return formatParams(p)
|
|
|
|
|
// },
|
|
|
|
|
beforeFetch: () => {
|
|
|
|
|
var currentPageInfo: any = getPaginationRef()
|
|
|
|
|
const postParam = {
|
|
|
|
|
queryCondition: '',
|
|
|
|
|
pageCondition: {
|
|
|
|
|
pageIndex: currentPageInfo.current,
|
|
|
|
|
pageSize: currentPageInfo.pageSize,
|
|
|
|
|
sortConditions: [],
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
let condition: API.ConditionItem[] = []
|
|
|
|
|
condition.push({
|
|
|
|
|
FieldName: 'id',
|
|
|
|
|
FieldValue: rowId.value,
|
|
|
|
|
ConditionalType: 0,
|
|
|
|
|
})
|
|
|
|
|
postParam.queryCondition = JSON.stringify(condition)
|
|
|
|
|
return postParam
|
|
|
|
|
},
|
|
|
|
|
columns: InfoColumns,
|
|
|
|
|
pagination: true,
|
|
|
|
|