From 57a3c229a29db9a99bb4247bbd395487703d2d1b Mon Sep 17 00:00:00 2001 From: wangqi <3188864257@qq.com> Date: Fri, 3 Jan 2025 18:12:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-imports.d.ts | 1 + src/api/module/eam/device/document.ts | 3 +- src/assets/image/dashboard/file/document.svg | 2 +- src/assets/image/dashboard/file/document2.svg | 84 +++++++++++++ .../fileDoc/components/markdownDrawer.vue | 38 +----- src/pages/fileDoc/index.vue | 110 +++++++++++++----- src/pages/fileDoc/utils.ts | 31 ++++- src/pages/layout.vue | 34 ++++-- src/styles/var.css | 6 +- 9 files changed, 228 insertions(+), 81 deletions(-) create mode 100644 src/assets/image/dashboard/file/document2.svg diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 995e21f..ee78553 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -6,6 +6,7 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] + const ElLoading: typeof import('element-plus/es')['ElLoading'] const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] const computed: typeof import('vue')['computed'] const createApp: typeof import('vue')['createApp'] diff --git a/src/api/module/eam/device/document.ts b/src/api/module/eam/device/document.ts index 3503581..2eb196f 100644 --- a/src/api/module/eam/device/document.ts +++ b/src/api/module/eam/device/document.ts @@ -12,6 +12,8 @@ interface DocFileVO { id: number name: string parentId: number + isDraft?: 0 | 1 + path: string } export function createFolder(data: Omit) { @@ -64,7 +66,6 @@ export function deleteFile(params: { id: number }) { interface MarkdownVO { folderId: number content: string - id: number isDraft: 0 | 1 // 0: 文章 1: 草稿 } export interface ContentType { diff --git a/src/assets/image/dashboard/file/document.svg b/src/assets/image/dashboard/file/document.svg index e9f9b74..ceaecc8 100644 --- a/src/assets/image/dashboard/file/document.svg +++ b/src/assets/image/dashboard/file/document.svg @@ -5,7 +5,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/pages/fileDoc/components/markdownDrawer.vue b/src/pages/fileDoc/components/markdownDrawer.vue index 89edd3b..558f8de 100644 --- a/src/pages/fileDoc/components/markdownDrawer.vue +++ b/src/pages/fileDoc/components/markdownDrawer.vue @@ -9,7 +9,7 @@ >