From c411fb5102af81d1c4cc72ed610304c1ef715da6 Mon Sep 17 00:00:00 2001 From: fyy <2717885210@qq.com> Date: Mon, 14 Jul 2025 16:04:52 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=20feat:=20=E5=88=A0=E9=99=A4=E6=A6=82?= =?UTF-8?q?=E8=A7=88=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/router/routes/local.ts | 55 +++--------------------- 1 file changed, 5 insertions(+), 50 deletions(-) diff --git a/apps/web-antd/src/router/routes/local.ts b/apps/web-antd/src/router/routes/local.ts index 0b4f0cac..9beca3c2 100644 --- a/apps/web-antd/src/router/routes/local.ts +++ b/apps/web-antd/src/router/routes/local.ts @@ -30,58 +30,13 @@ const localRoutes: RouteRecordStringComponent[] = [ */ export const localMenuList: RouteRecordStringComponent[] = [ { - component: 'BasicLayout', + name: 'Analytics', + path: '/analytics', + component: '/dashboard/analytics/index', meta: { - order: -1, - title: 'page.dashboard.title', - // 不使用基础布局(仅在顶级生效) - noBasicLayout: true, + affixTab: true, + title: '首页', }, - name: 'Dashboard', - path: '/', - redirect: '/analytics', - children: [ - { - name: 'Analytics', - path: '/analytics', - component: '/dashboard/analytics/index', - meta: { - affixTab: true, - title: 'page.dashboard.analytics', - }, - }, - { - name: 'Workspace', - path: '/workspace', - component: '/dashboard/workspace/index', - meta: { - title: 'page.dashboard.workspace', - }, - }, - { - name: 'VbenDocument', - path: '/vben-admin/document', - component: 'IFrameView', - meta: { - icon: 'lucide:book-open-text', - iframeSrc: 'https://dapdap.top', - keepAlive: true, - title: $t('demos.vben.document'), - }, - }, - { - name: 'V5UpdateLog', - path: '/changelog', - component: '/演示使用自行删除/changelog/index', - meta: { - icon: 'lucide:book-open-text', - keepAlive: true, - title: '更新记录', - badge: `当前: ${version}`, - badgeVariants: 'bg-primary', - }, - }, - ], }, { component: '/_core/about/index', From ebf12ac233af37744bd44fd041dd94504920307b Mon Sep 17 00:00:00 2001 From: zcxlsm Date: Mon, 14 Jul 2025 17:17:27 +0800 Subject: [PATCH 2/9] =?UTF-8?q?refactor(sis):=20=E4=BA=BA=E5=83=8F?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=8C=E6=AD=A5=E5=85=B3=E8=81=94=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E5=83=8F=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/sis/personLibImg/model.d.ts | 14 ++-- .../src/views/sis/personLibImg/data.tsx | 68 ++++++++++++------- .../src/views/sis/personLibImg/index.vue | 4 +- 3 files changed, 50 insertions(+), 36 deletions(-) diff --git a/apps/web-antd/src/api/sis/personLibImg/model.d.ts b/apps/web-antd/src/api/sis/personLibImg/model.d.ts index a5ca8f66..032bd59a 100644 --- a/apps/web-antd/src/api/sis/personLibImg/model.d.ts +++ b/apps/web-antd/src/api/sis/personLibImg/model.d.ts @@ -92,8 +92,7 @@ export interface PersonLibImgForm extends BaseEntity { imgUrl?: string; /** - * 性别 1:男 -2:女 99:未说明 + * 性别 1:男 2:女 99:未说明 */ sex?: number; @@ -108,9 +107,7 @@ export interface PersonLibImgForm extends BaseEntity { tel?: string; /** - * 证件类型 -1:身份证 2:护照 -3:行驶证 99:其它 + * 证件类型、1:身份证 2:护照 3:行驶证 99:其它 */ certificateType?: number; @@ -152,8 +149,7 @@ export interface PersonLibImgQuery extends PageQuery { imgUrl?: string; /** - * 性别 1:男 -2:女 99:未说明 + * 性别 1:男 2:女 99:未说明 */ sex?: number; @@ -168,9 +164,7 @@ export interface PersonLibImgQuery extends PageQuery { tel?: string; /** - * 证件类型 -1:身份证 2:护照 -3:行驶证 99:其它 + * 证件类型 1:身份证 2:护照 3:行驶证 99:其它 */ certificateType?: number; diff --git a/apps/web-antd/src/views/sis/personLibImg/data.tsx b/apps/web-antd/src/views/sis/personLibImg/data.tsx index 2d827e76..2dba0a47 100644 --- a/apps/web-antd/src/views/sis/personLibImg/data.tsx +++ b/apps/web-antd/src/views/sis/personLibImg/data.tsx @@ -9,31 +9,29 @@ import { personLibList } from '#/api/sis/personLib'; import type { PersonLibQuery, PersonLibVO } from '#/api/sis/personLib/model'; let libArr: PersonLibVO[] = []; -const labelText: VbenFormSchema = { - label: '图片库', - fieldName: 'libId', - component: 'ApiSelect', - componentProps: { - resultField: 'list', // 根据API返回结构调整 - labelField: 'libName', - valueField: 'id', - // immediate: true, - api: async () => { - if (!libArr || libArr.length == 0) { - const params: PersonLibQuery = { - pageNum: 1, - pageSize: 500, - }; - const res = await personLibList(params); - libArr = res.rows; - } - return libArr; +export const querySchema: FormSchemaGetter = () => [ + { + label: '图片库', + fieldName: 'libId', + component: 'ApiSelect', + componentProps: { + resultField: 'list', // 根据API返回结构调整 + labelField: 'libName', + valueField: 'id', + // immediate: true, + api: async () => { + if (!libArr || libArr.length == 0) { + const params: PersonLibQuery = { + pageNum: 1, + pageSize: 500, + }; + const res = await personLibList(params); + libArr = res.rows; + } + return libArr; + }, }, }, -}; - -export const querySchema: FormSchemaGetter = () => [ - labelText, { component: 'Input', fieldName: 'imgName', @@ -96,7 +94,29 @@ export const columns: VxeGridProps['columns'] = [ ]; export const modalSchema: FormSchemaGetter = () => [ - labelText, + { + label: '图片库', + fieldName: 'libId', + component: 'ApiSelect', + componentProps: { + resultField: 'list', // 根据API返回结构调整 + labelField: 'libName', + valueField: 'id', + mode: 'multiple', + // immediate: true, + api: async () => { + if (!libArr || libArr.length == 0) { + const params: PersonLibQuery = { + pageNum: 1, + pageSize: 500, + }; + const res = await personLibList(params); + libArr = res.rows; + } + return libArr; + }, + }, + }, { label: '人像名称', fieldName: 'imgName', diff --git a/apps/web-antd/src/views/sis/personLibImg/index.vue b/apps/web-antd/src/views/sis/personLibImg/index.vue index 3b5cfb7e..ebf5df11 100644 --- a/apps/web-antd/src/views/sis/personLibImg/index.vue +++ b/apps/web-antd/src/views/sis/personLibImg/index.vue @@ -141,14 +141,14 @@ function accessControlAuth() {