refactor: vue3.3 defineOptions

This commit is contained in:
xingyu
2023-06-21 19:14:34 +08:00
parent a5c7c886ee
commit 922f83d99c
259 changed files with 955 additions and 381 deletions

View File

@@ -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({})

View File

@@ -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([]) // 列表的数据