diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 78813d8..55f84c7 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -5,5 +5,7 @@ // Generated by unplugin-auto-import export {} declare global { + const ElMess: typeof import('element-plus/es')['ElMess'] + const ElMessaeg: typeof import('element-plus/es')['ElMessaeg'] const ElMessage: typeof import('element-plus/es')['ElMessage'] } diff --git a/components.d.ts b/components.d.ts index 64a8690..3fbccd8 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,7 +7,6 @@ export {} declare module 'vue' { export interface GlobalComponents { - ElAvatar: typeof import('element-plus/es')['ElAvatar'] ElButton: typeof import('element-plus/es')['ElButton'] ElCard: typeof import('element-plus/es')['ElCard'] ElCol: typeof import('element-plus/es')['ElCol'] @@ -22,7 +21,6 @@ declare module 'vue' { ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTag: typeof import('element-plus/es')['ElTag'] ElUpload: typeof import('element-plus/es')['ElUpload'] - ElWatermark: typeof import('element-plus/es')['ElWatermark'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] VanButton: typeof import('vant/es')['Button'] diff --git a/package-lock.json b/package-lock.json index 4f045b8..0493e26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "@types/crypto-js": "^4.2.1", "axios": "^1.6.2", "crypto-js": "^4.2.0", + "echarts": "^5.4.3", "element-plus": "^2.4.2", "vant": "^4.7.3", "vue": "^3.3.4", @@ -1590,6 +1591,15 @@ "node": ">=6.0.0" } }, + "node_modules/echarts": { + "version": "5.4.3", + "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.4.3.tgz", + "integrity": "sha512-mYKxLxhzy6zyTi/FaEbJMOZU1ULGEQHaeIeuMR5L+JnJTpz+YR03mnnpBhbR4+UYJAgiXgpyTVLffPAjOTLkZA==", + "dependencies": { + "tslib": "2.3.0", + "zrender": "5.4.4" + } + }, "node_modules/element-plus": { "version": "2.4.3", "resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.4.3.tgz", @@ -2877,6 +2887,11 @@ "typescript": ">=4.2.0" } }, + "node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz", @@ -3297,6 +3312,14 @@ "engines": { "node": ">=10" } + }, + "node_modules/zrender": { + "version": "5.4.4", + "resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.4.4.tgz", + "integrity": "sha512-0VxCNJ7AGOMCWeHVyTrGzUgrK4asT4ml9PEkeGirAkKNYXYzoPJCLvmyfdoOXcjTHPs10OZVMfD1Rwg16AZyYw==", + "dependencies": { + "tslib": "2.3.0" + } } } } diff --git a/package.json b/package.json index 52c5813..a6c5bab 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "@types/crypto-js": "^4.2.1", "axios": "^1.6.2", "crypto-js": "^4.2.0", + "echarts": "^5.4.3", "element-plus": "^2.4.2", "vant": "^4.7.3", "vue": "^3.3.4", diff --git a/src/App.vue b/src/App.vue index fa6b202..c9f9e8e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,7 +11,7 @@ const onInitOrResize = () => { } } onMounted(() => { - window.onresize = onInitOrResize; + window.addEventListener("resize", onInitOrResize); onInitOrResize(); }) diff --git a/src/entities/AccessInformation.ts b/src/entities/AccessInformation.ts new file mode 100644 index 0000000..616210a --- /dev/null +++ b/src/entities/AccessInformation.ts @@ -0,0 +1,17 @@ +/** + * 访问情况类 + */ +export interface AccessInformation { + /** + * 总下载量 + */ + totalDownload: number; + /** + * 总访问量 + */ + totalAccess: number; + /** + * 日期 + */ + date: string; +} \ No newline at end of file diff --git a/src/entities/SearchType.ts b/src/entities/SearchType.ts new file mode 100644 index 0000000..342dc4c --- /dev/null +++ b/src/entities/SearchType.ts @@ -0,0 +1,25 @@ +/** + * 搜索类型 + */ +export enum SearchType { + /** + * 文件名 + */ + FILE_NAME, + /** + * 文件ID + */ + ID, + /** + * 上传者 + */ + UPLOADER, + /** + * 上传日期 + */ + UPLOAD_DAY, + /** + * 文件类型 + */ + TYPE +} \ No newline at end of file diff --git a/src/views/AppPC.vue b/src/views/AppPC.vue index 508dd38..e55dc13 100644 --- a/src/views/AppPC.vue +++ b/src/views/AppPC.vue @@ -1,4 +1,5 @@