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(); });