From 46d9d268858f59a9c2e1362b253e4c5971ed1626 Mon Sep 17 00:00:00 2001 From: zhouhaibin Date: Mon, 11 Aug 2025 14:39:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B3=A8=E5=86=8C=E4=B8=8E?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E4=BF=AE=E6=94=B9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/configs/contractTaskConfigs.json | 2 +- src/api/auth/index.ts | 45 ++++++ src/views/auth/login/ForgetPasswordForm.vue | 150 ++++++++++++++++-- src/views/auth/login/LoginForm.vue | 4 +- src/views/auth/login/RegisterForm.vue | 117 +++++++++++++- src/views/auth/login/useLogin.ts | 4 + .../TenderTask/TenderTask.data.ts | 4 +- src/views/tenderReview/TenderTask/index.vue | 2 +- 8 files changed, 310 insertions(+), 18 deletions(-) diff --git a/public/configs/contractTaskConfigs.json b/public/configs/contractTaskConfigs.json index 2b649f9..4a02413 100644 --- a/public/configs/contractTaskConfigs.json +++ b/public/configs/contractTaskConfigs.json @@ -89,7 +89,7 @@ "dataType": "json", "displayType": "markdown", "jsonConfig": { - "extractFields": ["review_points"], + "extractFields": ["relevant_articles"], "separator": ":", "fieldProcessors": { "review_points": "arrayJoin" diff --git a/src/api/auth/index.ts b/src/api/auth/index.ts index fb65df7..dead9a6 100644 --- a/src/api/auth/index.ts +++ b/src/api/auth/index.ts @@ -13,6 +13,8 @@ import { useGlobSetting } from '@/hooks/setting'; enum Api { Login = '/auth/login', Logout = '/auth/logout', + Register = '/auth/register', + ResetPassword = '/auth/resetPassword', TenantList = '/auth/tenant/list', authBinding = '/auth/binding', authUnbinding = '/auth/unlock', @@ -88,6 +90,49 @@ export function authCallback(data: OAuthLoginParams) { return defHttp.post({ url: Api.authCallback, data }); } +/** + * 用户注册 + * @param params 注册参数 + * @returns + */ +export function registerApi(params: { + username: string; + password: string; + mobile: string; + code: string; + uuid?: string; + tenantId?: string; + userType?: string; +}) { + return defHttp.post({ + url: Api.Register, + data: params, + }, { + encrypt: true, + }); +} + +/** + * 重置密码 + * @param params 重置密码参数 + * @returns + */ +export function resetPasswordApi(params: { + username: string; + password: string; + mobile: string; + code: string; + uuid?: string; + tenantId?: string; +}) { + return defHttp.post({ + url: Api.ResetPassword, + data: params, + }, { + encrypt: true, + }); +} + /** * 用户登出 * @returns diff --git a/src/views/auth/login/ForgetPasswordForm.vue b/src/views/auth/login/ForgetPasswordForm.vue index 2e4548a..53974af 100644 --- a/src/views/auth/login/ForgetPasswordForm.vue +++ b/src/views/auth/login/ForgetPasswordForm.vue @@ -2,6 +2,17 @@ diff --git a/src/views/auth/login/LoginForm.vue b/src/views/auth/login/LoginForm.vue index 7a3e5db..b2be1c8 100644 --- a/src/views/auth/login/LoginForm.vue +++ b/src/views/auth/login/LoginForm.vue @@ -57,7 +57,7 @@ diff --git a/src/views/auth/login/RegisterForm.vue b/src/views/auth/login/RegisterForm.vue index c940651..3542b02 100644 --- a/src/views/auth/login/RegisterForm.vue +++ b/src/views/auth/login/RegisterForm.vue @@ -2,6 +2,17 @@
+ + + + @@ -66,13 +78,20 @@
diff --git a/src/views/auth/login/useLogin.ts b/src/views/auth/login/useLogin.ts index c6f7c68..a1ff9d2 100644 --- a/src/views/auth/login/useLogin.ts +++ b/src/views/auth/login/useLogin.ts @@ -105,6 +105,10 @@ export function useFormRules(formData?: Recordable) { case LoginStateEnum.RESET_PASSWORD: return { account: accountFormRule, + password: passwordFormRule, + confirmPassword: [ + { validator: validateConfirmPassword(formData?.password), trigger: 'change' }, + ], ...mobileRule, }; diff --git a/src/views/tenderReview/TenderTask/TenderTask.data.ts b/src/views/tenderReview/TenderTask/TenderTask.data.ts index 5988089..c15641e 100644 --- a/src/views/tenderReview/TenderTask/TenderTask.data.ts +++ b/src/views/tenderReview/TenderTask/TenderTask.data.ts @@ -110,7 +110,7 @@ export const modalSchemas: FormSchema[] = [ component: 'Upload', componentProps: { accept: ['.docx', '.pdf'], - maxSize: 1000, + maxSize: 10000, multiple: false, resultField: 'ossId', // api: uploadTenderDocument, @@ -123,7 +123,7 @@ export const modalSchemas: FormSchema[] = [ component: 'Upload', componentProps: { accept: ['.zip','.docx', '.pdf'], - maxSize: 1000, + maxSize: 10000, multiple: false, resultField: 'ossId', // api: uploadTenderDocument, diff --git a/src/views/tenderReview/TenderTask/index.vue b/src/views/tenderReview/TenderTask/index.vue index 5315e16..4f439e8 100644 --- a/src/views/tenderReview/TenderTask/index.vue +++ b/src/views/tenderReview/TenderTask/index.vue @@ -28,7 +28,7 @@ 新增