From c06b7b10f3e8839bdaa0730d5e140ce4ef63271e Mon Sep 17 00:00:00 2001 From: Esacpe <1113279529@qq.com> Date: Mon, 27 Apr 2026 14:11:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/common.js | 23 +++- src/components/topNav.vue | 12 -- src/pages/newHome/index.vue | 209 +++++++++++++++++----------------- src/pages/sspReport/index.vue | 16 +-- src/utils/dict.js | 8 +- 5 files changed, 134 insertions(+), 134 deletions(-) diff --git a/src/api/common.js b/src/api/common.js index 24db001..7fe9d9d 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -7,4 +7,25 @@ export function bigDataUpload(data) { method: "post", data }) -} \ No newline at end of file +} + +// 单个文件上传 +export function uploadFile(file) { + const formData = new FormData() + formData.append('file', file) + return service({ + url: '/common/upload', + method: 'post', + data: formData, + headers: { 'Content-Type': 'multipart/form-data' } + }) +} + +// 查询字典列表 +export function getDictListByCode(data) { + return service({ + url: api1 + `/sysDict/getSysDictByCode`, + method: "GET", + params: data + }); +}; \ No newline at end of file diff --git a/src/components/topNav.vue b/src/components/topNav.vue index dd5d31f..6793c19 100644 --- a/src/components/topNav.vue +++ b/src/components/topNav.vue @@ -5,9 +5,6 @@ {{ navTitle }} - - {{ rightTitle @@ -17,9 +14,7 @@