From 3d660dc530bfea35b89d04802e5fb56633821808 Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Sat, 7 Dec 2024 17:19:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=AE=8C=E5=96=84=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E3=80=81BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/work/alarm.ts | 7 + src/components/file/upload-group.vue | 4 +- src/components/file/upload.vue | 6 +- src/components/home/work/index.vue | 33 +- src/components/home/work/my-alarm.vue | 35 +- src/components/home/work/my-todo.vue | 24 +- src/components/negative/add.vue | 7 + src/components/negative/countdown.vue | 4 +- src/components/negative/dialog.vue | 81 ++- src/components/negative/distribute.vue | 4 + src/components/negative/return.vue | 2 +- src/components/negative/verify.vue | 5 +- src/style/public.scss | 4 + src/views/sensitivePerception/RiskClue.vue | 615 ++++++++++----------- src/views/system/Police.vue | 1 + 15 files changed, 441 insertions(+), 391 deletions(-) diff --git a/src/api/work/alarm.ts b/src/api/work/alarm.ts index 374410a..952372e 100644 --- a/src/api/work/alarm.ts +++ b/src/api/work/alarm.ts @@ -7,6 +7,13 @@ export function alarmNotificationPages(query) { }); } +export function alarmNotificationPageByTodo(query) { + return request.post({ + url: `/alarm/notification/pages/todo`, + body: query + }); +} + export function alarmNotificationReply(data) { return request.post({ url: `/alarm/notification/reply`, diff --git a/src/components/file/upload-group.vue b/src/components/file/upload-group.vue index 14e40d0..712ef30 100644 --- a/src/components/file/upload-group.vue +++ b/src/components/file/upload-group.vue @@ -263,7 +263,7 @@ function uploadProgress(progressEvent, file) { function handleSuccess(data, file) { if (data.code !== 200) { - feedback.msgError("上传失败!"); + feedback.msgError("上传失败!若重复上传失败请联系系统管理员"); fileList.value.splice(fileList.value.findIndex((item) => file.uid === item.uid), 1) return; } @@ -277,7 +277,7 @@ function handleSuccess(data, file) { function handleError(e) { console.log(e); - feedback.msgError("上传失败!"); + feedback.msgError("上传失败!若重复上传失败请联系系统管理员"); } function handleUpdateFileClass(item) { diff --git a/src/components/file/upload.vue b/src/components/file/upload.vue index 4175914..8007259 100644 --- a/src/components/file/upload.vue +++ b/src/components/file/upload.vue @@ -63,7 +63,11 @@ watch(files, () => { }); function beforeUpload(file) { - console.log("uid", file.uid); + // 文件大小限制 1024 * 1024 * 100 (100MB) + if (file.size >= 104857600) { + feedback.msgError('文件大小不能超过100MB'); + return false; + } files.value.push({ uid: file.uid, percent: 0, diff --git a/src/components/home/work/index.vue b/src/components/home/work/index.vue index e1de202..885562e 100644 --- a/src/components/home/work/index.vue +++ b/src/components/home/work/index.vue @@ -23,14 +23,6 @@ - - -
- -
-
diff --git a/src/views/system/Police.vue b/src/views/system/Police.vue index 642b202..6effe69 100644 --- a/src/views/system/Police.vue +++ b/src/views/system/Police.vue @@ -65,6 +65,7 @@ v-model="query.roleId" placeholder="请选择角色" clearable + style="width: 220px" >