From 94a697c32d02a7d5488df2fe4f4e7589c6c2fbc0 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 04 六月 2025 17:09:41 +0800 Subject: [PATCH] fix: bug --- src/services/api/index.ts | 2 + src/views/Login/Login.vue | 8 ++- src/services/api/User.ts | 12 ++++++ src/services/api/typings.d.ts | 47 +++++++++++++++++++++++ src/services/api/FileRecord.ts | 15 +++++++ 5 files changed, 81 insertions(+), 3 deletions(-) diff --git a/src/services/api/FileRecord.ts b/src/services/api/FileRecord.ts new file mode 100644 index 0000000..42c071c --- /dev/null +++ b/src/services/api/FileRecord.ts @@ -0,0 +1,15 @@ +/* eslint-disable */ +// @ts-ignore +import { request } from '@/utils/request'; + +/** 鏂囦欢绠$悊鍒楄〃 POST /api/FileRecord/GetFileRecordList */ +export async function getFileRecordList(body: API.GetFileRecordInput, options?: API.RequestConfig) { + return request<API.GetFileRecordOutputPageOutput>('/api/FileRecord/GetFileRecordList', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} diff --git a/src/services/api/User.ts b/src/services/api/User.ts index 706aab2..fa18799 100644 --- a/src/services/api/User.ts +++ b/src/services/api/User.ts @@ -41,6 +41,18 @@ }); } +/** 鍒涘缓涓存椂璁块棶浠ょ墝 POST /api/User/CreateTempToken */ +export async function createTempToken(body: API.CreateTempTokenInput, options?: API.RequestConfig) { + return request<string>('/api/User/CreateTempToken', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + /** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 POST /api/User/DeleteRole */ export async function deleteRole( // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) diff --git a/src/services/api/index.ts b/src/services/api/index.ts index 85637c9..685ae66 100644 --- a/src/services/api/index.ts +++ b/src/services/api/index.ts @@ -7,6 +7,7 @@ import * as Account from './Account'; import * as BaseModule from './BaseModule'; import * as Features from './Features'; +import * as FileRecord from './FileRecord'; import * as IdentityRole from './IdentityRole'; import * as IdentityUser from './IdentityUser'; import * as IdentityUserLookup from './IdentityUserLookup'; @@ -26,6 +27,7 @@ Account, BaseModule, Features, + FileRecord, IdentityRole, IdentityUser, IdentityUserLookup, diff --git a/src/services/api/typings.d.ts b/src/services/api/typings.d.ts index b0138eb..e4e92c9 100644 --- a/src/services/api/typings.d.ts +++ b/src/services/api/typings.d.ts @@ -595,6 +595,12 @@ payFileUrl?: string; /** 娑堣垂绫诲瀷 */ payRemark?: string; + access?: ParkBountyTradeAccessEnum; + } + + interface CreateTempTokenInput { + /** 鐢ㄦ埛Id */ + userId?: string; } interface CurrentCultureDto { @@ -755,6 +761,45 @@ interface GetFeatureListResultDto { groups?: FeatureGroupDto[]; + } + + interface GetFileRecordInput { + pageModel?: Pagination; + /** 鎿嶄綔璧峰鏃ユ湡 */ + creationTimeBegin?: string; + /** 鎿嶄綔缁撴潫鏃ユ湡 */ + creationTimeEnd?: string; + } + + interface GetFileRecordOutput { + /** Id */ + id?: string; + /** 鐢ㄦ埛Id */ + enterpriseId?: string; + /** 鏂囦欢鍚嶇О */ + name?: string; + /** 浜嬩欢 */ + event?: string; + /** 鎿嶄綔 */ + operate?: string; + /** 鐘舵�� */ + status?: string; + /** 婧愭枃浠跺湴鍧� */ + fileUrl?: string; + /** 瀵煎嚭鏁版嵁/閿欒鏁版嵁 JSON鏍煎紡 */ + jsonData?: string; + /** 鎿嶄綔鏃堕棿 */ + creationTime?: string; + /** 鎬绘暟鎹噺 */ + count?: number; + /** 鎴愬姛鏁版嵁閲� */ + successCount?: number; + } + + interface GetFileRecordOutputPageOutput { + pageModel?: Pagination; + objectData?: any; + data?: GetFileRecordOutput[]; } interface GetInsuranceBatchBillForCheckInput { @@ -1920,6 +1965,8 @@ userName?: string; /** 鐢ㄦ埛鎵嬫満鍙� */ phoneNumber?: string; + /** 瀵嗙爜 */ + password?: string; /** 浼佷笟鍚嶇О */ enterpriseName?: string; /** 钀ヤ笟鎵х収鏂囦欢鍦板潃 */ diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue index 29f4c18..27543c1 100644 --- a/src/views/Login/Login.vue +++ b/src/views/Login/Login.vue @@ -144,17 +144,19 @@ // const boleSetting = useSettingStoreHook(); const ctx = useProvideContext(); const loginFormTitle = getAppSetting(AppType).loginFormTitle; +const redirect = computed<string>(() => route.query?.redirect as string); +const code = computed<string>(() => route.query?.code as string); +const name = computed<string>(() => route.query?.name as string); const router = useRouter(); const route = useRoute(); -let user = ref(''); -let pwd = ref(''); +let user = ref(name.value ?? ''); +let pwd = ref(code.value ?? ''); let loading = ref(false); let ifDisplay = ref(false); const userStore = useUserStore(); -const redirect = computed<string>(() => route.query?.redirect as string); const otherQuery = computed(() => { const query = route.query; if (query) { -- Gitblit v1.9.1