23 lines
852 B
Vue
Raw Normal View History

2023-10-15 17:47:36 +08:00
<template>
2023-10-16 22:32:10 +08:00
<Dialog :title="dialogTitle" v-model="dialogVisible" width="800">
<WalletTransactionList :wallet-id="walletId" />
2023-10-15 17:47:36 +08:00
<template #footer>
<el-button @click="dialogVisible = false"> </el-button>
</template>
</Dialog>
</template>
<script setup lang="ts">
2023-10-16 22:32:10 +08:00
import WalletTransactionList from '../transaction/WalletTransactionList.vue'
2023-10-15 17:47:36 +08:00
const dialogVisible = ref(false) // 弹窗的是否展示
const dialogTitle = ref('') // 弹窗的标题
const formLoading = ref(false) // 表单的加载中1修改时的数据加载2提交的按钮禁用
2023-10-16 22:32:10 +08:00
const walletId = ref(0)
2023-10-15 17:47:36 +08:00
/** 打开弹窗 */
2023-10-16 22:32:10 +08:00
const open = async (theWalletId: number) => {
2023-10-15 17:47:36 +08:00
dialogVisible.value = true
2023-10-16 22:32:10 +08:00
dialogTitle.value = '钱包余额明细'
walletId.value = theWalletId
2023-10-15 17:47:36 +08:00
}
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
</script>