You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

35 lines
1.1 KiB

2 years ago
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { descColumns, descSchema } from './notify.data'
import { BasicModal, useModalInner } from '@/components/Modal'
import { Description } from '@/components/Description'
import { BasicTable } from '@/components/Table'
import { getNotifyTaskDetail } from '@/api/pay/notify'
defineOptions({ name: 'PayNotifyDetail' })
const notifyData = ref<any>()
const notifyLogs = ref<any[]>([])
const [registerModal, { setModalProps }] = useModalInner(async (data) => {
const res = await getNotifyTaskDetail(data.record.id)
notifyData.value = res
if (res.logs)
notifyLogs.value = res.logs
setModalProps({ confirmLoading: false })
})
</script>
<template>
<BasicModal v-bind="$attrs" width="60%" title="通知详情" :show-ok-btn="false" @register="registerModal">
<Description :bordered="false" :column="3" :data="notifyData" :schema="descSchema" />
<Divider />
<BasicTable
title="回调日志" :columns="descColumns" :data-source="notifyLogs" :bordered="true" :pagination="false"
:can-resize="true" :max-height="400"
/>
</BasicModal>
</template>