From e0dd6608a9354971830e48ef80bf6431f5bf44d2 Mon Sep 17 00:00:00 2001 From: bestlee Date: Fri, 14 Aug 2026 16:53:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=96=99=E6=A1=A3=E6=A1=88=E5=BA=93?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/langs/zh-cn.ts | 3 + src/router/elegant/imports.ts | 2 + src/router/elegant/routes.ts | 33 ++++ src/router/elegant/transform.ts | 3 + src/typings/elegant-router.d.ts | 6 + src/views/docs/archives/index.vue | 236 ++++++++++++++++++++++++ src/views/docs/query/index.vue | 3 + src/views/home/initiateChange/index.vue | 5 +- 8 files changed, 287 insertions(+), 4 deletions(-) create mode 100644 src/views/docs/archives/index.vue create mode 100644 src/views/docs/query/index.vue diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index 969ccef..4eb4c37 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -235,6 +235,9 @@ const local: App.I18n.Schema = { changeledger_mychanges: '我发起的变更', changeledger_workshopchanges: '本车间变更', changestatistics: '本部门变更统计', + docs: '资料管理', + docs_archives: '资料档案库', + docs_query: '变更归档查询', }, form: { required: '不能为空', diff --git a/src/router/elegant/imports.ts b/src/router/elegant/imports.ts index 395a5ec..9bbadd7 100644 --- a/src/router/elegant/imports.ts +++ b/src/router/elegant/imports.ts @@ -21,6 +21,8 @@ export const views: Record Promise import("@/views/changeLedger/myChanges/index.vue"), changeledger_workshopchanges: () => import("@/views/changeLedger/workshopChanges/index.vue"), changestatistics: () => import("@/views/changeStatistics/index.vue"), + docs_archives: () => import("@/views/docs/archives/index.vue"), + docs_query: () => import("@/views/docs/query/index.vue"), home_index: () => import("@/views/home/index/index.vue"), home_initiatechange: () => import("@/views/home/initiateChange/index.vue"), home_mydraft: () => import("@/views/home/myDraft/index.vue"), diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index ab21ba6..a54099a 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -83,6 +83,39 @@ export const generatedRoutes: GeneratedRoute[] = [ order: 3 } }, + { + name: 'docs', + path: '/docs', + component: 'layout.base', + meta: { + title: 'docs', + i18nKey: 'route.docs', + icon: 'mage:book', + order: 4 + }, + children: [ + { + name: 'docs_archives', + path: '/docs/archives', + component: 'view.docs_archives', + meta: { + title: 'docs_archives', + i18nKey: 'route.docs_archives', + icon: '', + } + }, + { + name: 'docs_query', + path: '/docs/query', + component: 'view.docs_query', + meta: { + title: 'docs_query', + i18nKey: 'route.docs_query', + icon: '', + } + } + ] + }, { name: 'home', path: '/home', diff --git a/src/router/elegant/transform.ts b/src/router/elegant/transform.ts index b9c55bf..6b64cd4 100644 --- a/src/router/elegant/transform.ts +++ b/src/router/elegant/transform.ts @@ -170,6 +170,9 @@ const routeMap: RouteMap = { "changeledger_mychanges": "/changeledger/mychanges", "changeledger_workshopchanges": "/changeledger/workshopchanges", "changestatistics": "/changestatistics", + "docs": "/docs", + "docs_archives": "/docs/archives", + "docs_query": "/docs/query", "home": "/home", "home_index": "/home/index", "home_initiatechange": "/home/initiatechange", diff --git a/src/typings/elegant-router.d.ts b/src/typings/elegant-router.d.ts index 669082a..586c3b8 100644 --- a/src/typings/elegant-router.d.ts +++ b/src/typings/elegant-router.d.ts @@ -24,6 +24,9 @@ declare module "@elegant-router/types" { "changeledger_mychanges": "/changeledger/mychanges"; "changeledger_workshopchanges": "/changeledger/workshopchanges"; "changestatistics": "/changestatistics"; + "docs": "/docs"; + "docs_archives": "/docs/archives"; + "docs_query": "/docs/query"; "home": "/home"; "home_index": "/home/index"; "home_initiatechange": "/home/initiatechange"; @@ -68,6 +71,7 @@ declare module "@elegant-router/types" { | "500" | "changeledger" | "changestatistics" + | "docs" | "home" | "login" >; @@ -92,6 +96,8 @@ declare module "@elegant-router/types" { | "changeledger_mychanges" | "changeledger_workshopchanges" | "changestatistics" + | "docs_archives" + | "docs_query" | "home_index" | "home_initiatechange" | "home_mydraft" diff --git a/src/views/docs/archives/index.vue b/src/views/docs/archives/index.vue new file mode 100644 index 0000000..459b9a0 --- /dev/null +++ b/src/views/docs/archives/index.vue @@ -0,0 +1,236 @@ + + + + + + diff --git a/src/views/docs/query/index.vue b/src/views/docs/query/index.vue new file mode 100644 index 0000000..5359396 --- /dev/null +++ b/src/views/docs/query/index.vue @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/src/views/home/initiateChange/index.vue b/src/views/home/initiateChange/index.vue index a289d81..1e68421 100644 --- a/src/views/home/initiateChange/index.vue +++ b/src/views/home/initiateChange/index.vue @@ -31,7 +31,7 @@ const form = ref({ name: "", dept: "", mainChanges: [""], related: "", purposes: [], effect: "", type: "", level: "", duration: "", urgent: false, date: null, restoreDate: null, }); -const tab = ref("close"); +const tab = ref("risk"); const TABS = [ { id: "pre", name: "变更预识别", icon: 'lucide:sparkles' }, { id: "form", name: "变更申请表", icon: 'akar-icons:file' }, @@ -1637,9 +1637,6 @@ const uploadConfirm = () => {