mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-08-03 12:44:07 +08:00
refactor: vue3.3 defineOptions
This commit is contained in:
@@ -84,11 +84,13 @@
|
||||
</el-descriptions>
|
||||
</Dialog>
|
||||
</template>
|
||||
<script lang="ts" name="PayRefundDetail" setup>
|
||||
<script lang="ts" setup>
|
||||
import { DICT_TYPE } from '@/utils/dict'
|
||||
import { formatDate } from '@/utils/formatTime'
|
||||
import * as RefundApi from '@/api/pay/refund'
|
||||
|
||||
defineOptions({ name: 'PayRefundDetail' })
|
||||
|
||||
const dialogVisible = ref(false) // 弹窗的是否展示
|
||||
const detailLoading = ref(false) // 表单的加载中
|
||||
const detailData = ref({})
|
||||
|
@@ -232,15 +232,18 @@
|
||||
<!-- 表单弹窗:预览 -->
|
||||
<RefundDetail ref="detailRef" @success="getList" />
|
||||
</template>
|
||||
<script setup lang="ts" name="PayRefund">
|
||||
<script setup lang="ts">
|
||||
import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict'
|
||||
import { dateFormatter } from '@/utils/formatTime'
|
||||
import * as MerchantApi from '@/api/pay/merchant'
|
||||
import * as RefundApi from '@/api/pay/refund'
|
||||
import RefundDetail from './RefundDetail.vue'
|
||||
const message = useMessage() // 消息弹窗
|
||||
import download from '@/utils/download'
|
||||
|
||||
defineOptions({ name: 'PayRefund' })
|
||||
|
||||
const message = useMessage() // 消息弹窗
|
||||
|
||||
const loading = ref(false) // 列表遮罩层
|
||||
const total = ref(0) // 列表的总页数
|
||||
const list = ref([]) // 列表的数据
|
||||
|
Reference in New Issue
Block a user