From 5c8204706e7fbfe674f0e8cc7432f95fbf712cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8?= Date: Mon, 25 May 2026 09:22:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=8A=82=E5=81=87=E6=97=A5?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/types/profile.d.ts | 1 + src/stores/types/user.d.ts | 1 + src/views/capital/currency/index.vue | 8 +- src/views/capital/fundFlow/index.vue | 2 +- src/views/capital/rechangeCheck/index.vue | 10 +- src/views/capital/transfer/index.vue | 4 +- src/views/capital/withdraw/index.vue | 2 +- src/views/capital/withdraw/options.ts | 10 +- src/views/capital/withdrawChanl/index.vue | 14 +- src/views/dashboard/index.vue | 120 +++-- src/views/profile/personalCenter/index.vue | 9 +- src/views/trade/holidays/index.vue | 554 +++++++++++++-------- src/views/user/Register.vue | 2 +- 13 files changed, 451 insertions(+), 286 deletions(-) diff --git a/src/api/types/profile.d.ts b/src/api/types/profile.d.ts index f2ccce3..f2e9179 100644 --- a/src/api/types/profile.d.ts +++ b/src/api/types/profile.d.ts @@ -52,6 +52,7 @@ export interface EditUsernameParams { // 验证码修改密码参数类型 export interface UpdatePwdByCaptchaParams { + mobile_area?: string verify_type: number code: string login_password1: string diff --git a/src/stores/types/user.d.ts b/src/stores/types/user.d.ts index 23fd0e9..d091eed 100644 --- a/src/stores/types/user.d.ts +++ b/src/stores/types/user.d.ts @@ -8,6 +8,7 @@ export interface UserInfo { mobile: string role_id: number pass_admin: string + last_login?: string salt_code_admin: string real_check: number par_uid: number diff --git a/src/views/capital/currency/index.vue b/src/views/capital/currency/index.vue index 7fd497b..42a8918 100644 --- a/src/views/capital/currency/index.vue +++ b/src/views/capital/currency/index.vue @@ -20,7 +20,7 @@ defineOptions({ name: 'Currency' }) -import FundDetailHeader from '@/components/common/header.vue' +import FundDetailHeader from '@/components/common/Header.vue' import FundDetailTable from '@/components/common/Table.vue' import { usePageLoading, useButtonLoading } from '@/composables/useLoading' import FundDetailDialog from '@/components/common/Dialog.vue' @@ -46,8 +46,8 @@ interface HeaderButton { const { loading, startLoading, stopLoading } = usePageLoading() const { buttonLoading, startButtonLoading, stopButtonLoading } = useButtonLoading() -const buttonsOptions = ref(buttons) -const formItems = ref(form) +const buttonsOptions = ref(buttons) +const formItems = ref(form) const tableData = ref([]) const tableColumnsOptions = ref(tableColumns) const dialogTitle = ref('') @@ -79,7 +79,7 @@ const getTableList = async () => { try { startLoading() - const data = await getCurrencyList() + const data:any = await getCurrencyList() tableData.value = (data || []).map((item: any) => { return { diff --git a/src/views/capital/fundFlow/index.vue b/src/views/capital/fundFlow/index.vue index bc2a88f..0b7c18c 100644 --- a/src/views/capital/fundFlow/index.vue +++ b/src/views/capital/fundFlow/index.vue @@ -53,7 +53,7 @@ const getEnumDicOptions = async () => { const res: any = await getEnumDicOptionsApi() const typeIndex = searchOptions.value.findIndex((item: any) => item.prop === 'type') if (typeIndex !== -1 && res) { - searchOptions.value[typeIndex].options = res.map((item: any) => ({ + searchOptions.value[typeIndex]!.options = res.map((item: any) => ({ label: item.value, value: item.id })) diff --git a/src/views/capital/rechangeCheck/index.vue b/src/views/capital/rechangeCheck/index.vue index c936ba2..39235ec 100644 --- a/src/views/capital/rechangeCheck/index.vue +++ b/src/views/capital/rechangeCheck/index.vue @@ -186,7 +186,7 @@ const tableRef = ref() const handleSelectionChange = (rows: TableRow[]) => { if (rows.length > 1) { // 超过1个时,移除最早选中的那个(保留最后一个) - const lastRow = rows[rows.length - 1] + const lastRow:any = rows[rows.length - 1] // 先清除所有选择 tableRef.value?.clearSelection() // 再单独选中最后点击的这行 @@ -204,7 +204,7 @@ const handleApprove = async () => { return } try { - await ElMessageBox.confirm(`是否确认通过该审核?订单号:${selectedRows.value[0].orderNo}`, '审核确认', { + await ElMessageBox.confirm(`是否确认通过该审核?订单号:${selectedRows.value[0]?.orderNo}`, '审核确认', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning', @@ -215,7 +215,7 @@ const handleApprove = async () => { startLoading() try { - await reviewRechargeOrder({ id: selectedRows.value[0].id, status: '3' }) + await reviewRechargeOrder({ id: selectedRows.value[0]?.id, status: '3' }) await getList() } finally { stopLoading() @@ -229,7 +229,7 @@ const handleReject = async () => { return } try { - await ElMessageBox.confirm(`是否确认驳回该审核?订单号:${selectedRows.value[0].orderNo}`, '审核确认', { + await ElMessageBox.confirm(`是否确认驳回该审核?订单号:${selectedRows.value[0]?.orderNo}`, '审核确认', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning', @@ -241,7 +241,7 @@ const handleReject = async () => { //充值状态:1未审核,2未付款,3已付款,4驳回 startLoading() try { - await reviewRechargeOrder({ id: selectedRows.value[0].id, status: '4' }) + await reviewRechargeOrder({ id: selectedRows.value[0]?.id, status: '4' }) await getList() } finally { stopLoading() diff --git a/src/views/capital/transfer/index.vue b/src/views/capital/transfer/index.vue index d01d524..615824c 100644 --- a/src/views/capital/transfer/index.vue +++ b/src/views/capital/transfer/index.vue @@ -149,7 +149,7 @@ const transferType = ref('internal') /** * @description 创建默认转账表单数据 */ -const createDefaultTransferForm = () => ({ +const createDefaultTransferForm = ():any => ({ transferOutAccount: -1, transferInAccount: '', transferAmount: '', @@ -206,7 +206,7 @@ watch( transferFormOptionsMap.value.transferInAccount = transferFormOptionsMap.value.transferOutAccount.filter((item: any) => item.value !== val) }, - { inmediate: true, deep: true }, + { immediate: true, deep: true }, ) const transferFormRules = ref(rules(transferForm.value)) diff --git a/src/views/capital/withdraw/index.vue b/src/views/capital/withdraw/index.vue index e5c44c0..5667b25 100644 --- a/src/views/capital/withdraw/index.vue +++ b/src/views/capital/withdraw/index.vue @@ -59,7 +59,7 @@ const { loading, startLoading, stopLoading } = usePageLoading() const total = ref(0) const withdrawDialogVisible = ref(false) const currentChannelId = ref() -const currentChannelInfo = ref<{ id: number; name: string; currency?: string }>() +const currentChannelInfo = ref() const queryParams = reactive({ page: 1, diff --git a/src/views/capital/withdraw/options.ts b/src/views/capital/withdraw/options.ts index f9df0b2..12bef8c 100644 --- a/src/views/capital/withdraw/options.ts +++ b/src/views/capital/withdraw/options.ts @@ -13,11 +13,11 @@ export const tableColumns = [ placeholder: '请选择入金货币', }, // 接口地址 - { label: '接口地址', prop: 'api_url' }, - // 接口appid - { label: '接口appid', prop: 'api_appid' }, - // 状态 - { label: '状态', prop: 'statusStr' }, + // { label: '接口地址', prop: 'api_url' }, + // // 接口appid + // { label: '接口appid', prop: 'api_appid' }, + // // 状态 + // { label: '状态', prop: 'statusStr' }, // 操作 { label: '操作', prop: 'action', width: 100, slotName: 'action' as const }, ] diff --git a/src/views/capital/withdrawChanl/index.vue b/src/views/capital/withdrawChanl/index.vue index e64060c..1e149ac 100644 --- a/src/views/capital/withdrawChanl/index.vue +++ b/src/views/capital/withdrawChanl/index.vue @@ -64,7 +64,7 @@ type ChannelType = { channel_code: string } -const getStatusText = (status: number | string) => { +const getStatusText = (status: any) => { return ['', '正常', '禁用'][status] } @@ -73,7 +73,7 @@ const { loading, startLoading, stopLoading } = usePageLoading() const { buttonLoading: submitLoading, startButtonLoading: startSubmitLoading, stopButtonLoading: stopSubmitLoading } = useButtonLoading() const initData = async () => { startLoading() - const res = await getChannelWithdrawList() + const res:any = await getChannelWithdrawList() stopLoading() console.log(res) tableData.value = res.map((item: ChannelType) => ({ @@ -84,13 +84,13 @@ const initData = async () => { } //表格数据 -const tableColumnsOptions = ref(tableColumns) -const tableData = ref([]) +const tableColumnsOptions = ref(tableColumns) +const tableData = ref([]) const tableRef = ref() const dialogVisible = ref(false) const dialogTitleType = ref(1) -const formData = ref({ +const formData = ref({ name: '', channel_fee: null, currency_id: null, @@ -100,7 +100,7 @@ const formData = ref({ channel_code: '', status: 1, }) -const formItems = ref(formItemsData) +const formItems = ref(formItemsData) const formRules = ref(formRulesData) const optionsMap = ref(optionsMapData) const submitDetail = async () => { @@ -180,7 +180,7 @@ const clearSelection = () => { onMounted(() => { initData() // 获取货币列表用于下拉框 - getChannelList().then((data) => { + getChannelList().then((data:any) => { console.log(data) optionsMap.value.currency_id = (data || []).map((item: any) => ({ value: item.id, diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 79cb89f..6734d23 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -40,7 +40,7 @@
- {{ userStore.userInfo.username }} + {{ userStore.userInfo?.username || '-' }} @@ -48,11 +48,11 @@
用户ID - {{ userStore.userInfo.id }} + {{ userStore.userInfo?.id || '-' }}
最后登录 - {{ userStore.userInfo.last_login }} + {{ userStore.userInfo?.last_login || '-' }}
@@ -197,7 +197,9 @@ onMounted(() => { diff --git a/src/views/profile/personalCenter/index.vue b/src/views/profile/personalCenter/index.vue index 19b82a7..5b1189c 100644 --- a/src/views/profile/personalCenter/index.vue +++ b/src/views/profile/personalCenter/index.vue @@ -1,5 +1,5 @@