From 31140f93180e3745b0bfb4c8286a6bec741b8744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Thu, 31 Oct 2024 15:34:09 +0800 Subject: [PATCH] update --- src/api/modules/res.ts | 6 + .../res/test/components/uploadDialog.vue | 109 ++++++++++++++++++ src/views/res/test/index.vue | 22 +++- 3 files changed, 136 insertions(+), 1 deletion(-) create mode 100644 src/api/modules/res.ts create mode 100644 src/views/res/test/components/uploadDialog.vue diff --git a/src/api/modules/res.ts b/src/api/modules/res.ts new file mode 100644 index 0000000..080b676 --- /dev/null +++ b/src/api/modules/res.ts @@ -0,0 +1,6 @@ +import { ResPage, Stage, Subject, Scheme, Structure } from "@/api/interface/index"; +import http from "@/api"; + +export const getFileExtIcon = () => { + return http.get(`/dsRes/res/getThumbs`); +}; diff --git a/src/views/res/test/components/uploadDialog.vue b/src/views/res/test/components/uploadDialog.vue new file mode 100644 index 0000000..3b3cf79 --- /dev/null +++ b/src/views/res/test/components/uploadDialog.vue @@ -0,0 +1,109 @@ + + + + + diff --git a/src/views/res/test/index.vue b/src/views/res/test/index.vue index 6f60f62..3cc4a33 100644 --- a/src/views/res/test/index.vue +++ b/src/views/res/test/index.vue @@ -62,7 +62,15 @@ -
+
+ + + + + +
@@ -73,9 +81,12 @@ import { ProTableInstance, ColumnProps } from "@/components/ProTable/interface"; import { Stage } from "@/api/interface"; import ProTable from "@/components/ProTable/index.vue"; import TreeFilter from "@/components/TreeFilter/index.vue"; +import { CirclePlus, Delete, EditPen } from "@element-plus/icons-vue"; import { getStructureList, getStageList, getSubjectList, getSchemeList } from "@/api/modules/base"; +import UploadDialog from "@/views/res/test/components/uploadDialog.vue"; + const stageList = ref([]); const stageSelect = ref(""); const stageSelectTxt = ref(""); @@ -164,6 +175,15 @@ const wellleave = e => { tooltipShow.value = false; }; +const dialogRef = ref | null>(null); +const openDrawer = (title: string, scheme_id: number = 0) => { + const params = { + title, + row: {} + }; + dialogRef.value?.acceptParams(params); +}; + onMounted(() => { getStageSelectList(); });