From 269fc702fe14ad2420986f451f68d77e2810c361 Mon Sep 17 00:00:00 2001 From: SunTao <328867980@qq.com> Date: Thu, 5 Dec 2024 17:25:06 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=8E=BB=E9=99=A4=E6=9D=83?= =?UTF-8?q?=E9=99=90=E9=AA=8C=E8=AF=81=EF=BC=8C=E5=A4=A7=E5=B1=8F=E4=BB=8A?= =?UTF-8?q?=E6=97=A5=E5=B7=A1=E6=9F=A5=E8=81=94=E8=B0=83=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9echart=E5=9B=BE=E6=BB=9A=E5=8A=A8=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E8=81=94=E8=B0=83=E5=B7=A5=E5=8D=95=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/xj/inspection/center.js | 19 +- src/api/xj/screen/index.js | 9 + src/api/xj/task.js | 3 +- src/plugins/index.js | 24 +- .../big-screen/components/img-dialog.vue | 5 +- .../disease-components/traffic-safety.vue | 106 +++--- .../disease-components/traffic-trend.vue | 23 +- src/views/big-screen/index.vue | 334 ++++++------------ .../overview-components/disease-trends.vue | 15 +- .../inspection-vehicles.vue | 14 +- .../overview-components/patrol-order.vue | 102 +++--- .../overview-components/today-inspection.vue | 105 +++--- .../road-components/anomaly-facilities.vue | 28 +- src/views/index-components/daily-index.vue | 14 +- src/views/index-components/disease-index.vue | 37 +- src/views/index-components/road-index.vue | 4 +- src/views/index-components/traffic-index.vue | 19 +- src/views/system/depect/index.vue | 5 - src/views/xj/defect/index.vue | 6 - .../xj/document/maintenance-notice/index.vue | 3 - .../inspection-warn/warning-center/index.vue | 185 +++------- .../warning-setup/components/add-setup.vue | 44 +-- .../inspection-warn/warning-setup/index.vue | 3 +- .../components/image-dialog.vue | 113 ++---- .../inspection/disease-management/index.vue | 5 - .../xj/inspection/road-management/index.vue | 6 - .../xj/inspection/task-management/index.vue | 237 ++++++------- .../inspection/traffic-management/index.vue | 6 - src/views/xj/route/route-terminal/index.vue | 8 +- .../subscription-center/index.vue | 2 - 30 files changed, 565 insertions(+), 919 deletions(-) diff --git a/src/api/xj/inspection/center.js b/src/api/xj/inspection/center.js index 4040817..a8c9221 100644 --- a/src/api/xj/inspection/center.js +++ b/src/api/xj/inspection/center.js @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-11-28 10:26:24 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-11-28 10:26:24 + * @LastEditTime: 2024-12-05 13:53:53 * @FilePath: \znxjxt-ui\src\api\xj\inspection\center.js * @Description: 巡检中心-预警中心接口 */ @@ -32,3 +32,20 @@ export function markNoticeRead(id) { method: "post", }); } + +// 标记所有通知为已读 +export function noticeReadAll() { + return request({ + url: "/notice/readAll", + method: "post", + }); +} + +// 批量删除通知 +export function deleteNotice(ids) { + return request({ + url: "/notice/remove", + method: "post", + data: ids, + }); +} \ No newline at end of file diff --git a/src/api/xj/screen/index.js b/src/api/xj/screen/index.js index 0ca4d17..6b39e47 100644 --- a/src/api/xj/screen/index.js +++ b/src/api/xj/screen/index.js @@ -130,3 +130,12 @@ export function getDefectTypes() { method: "get", }); } + +// 获取大屏通知列表 +export function getNoticeList(params) { + return request({ + url: "/notice/list", + method: "get", + params, + }); +} diff --git a/src/api/xj/task.js b/src/api/xj/task.js index 7514fd8..8cc5c56 100644 --- a/src/api/xj/task.js +++ b/src/api/xj/task.js @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-14 10:04:12 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-03 11:43:45 + * @LastEditTime: 2024-12-05 15:34:41 * @FilePath: \znxjxt-ui\src\api\xj\task.js * @Description: 巡检任务管理接口 */ @@ -70,6 +70,7 @@ export function exportDefectData(params) { return request({ url: "/xj/defect/exportNewDefectByTaskId", method: "get", + responseType: "blob", params, }); } diff --git a/src/plugins/index.js b/src/plugins/index.js index d000f2d..93c6e39 100644 --- a/src/plugins/index.js +++ b/src/plugins/index.js @@ -1,20 +1,20 @@ -import tab from './tab' -import auth from './auth' -import cache from './cache' -import modal from './modal' -import download from './download' +import tab from "./tab"; +import auth from "./auth"; +import cache from "./cache"; +import modal from "./modal"; +import download from "./download"; export default { install(Vue) { // 页签操作 - Vue.prototype.$tab = tab + Vue.prototype.$tab = tab; // 认证对象 - Vue.prototype.$auth = auth + Vue.prototype.$auth = auth; // 缓存对象 - Vue.prototype.$cache = cache + Vue.prototype.$cache = cache; // 模态框对象 - Vue.prototype.$modal = modal + Vue.prototype.$modal = modal; // 下载文件 - Vue.prototype.$download = download - } -} + Vue.prototype.$download = download; + }, +}; diff --git a/src/views/big-screen/components/img-dialog.vue b/src/views/big-screen/components/img-dialog.vue index b7ff6f2..c0e44c6 100644 --- a/src/views/big-screen/components/img-dialog.vue +++ b/src/views/big-screen/components/img-dialog.vue @@ -76,8 +76,7 @@ 病害类型: {{ item.type || "暂无数据" }} - 病害面积:{{ item.area }}平方米 病害长度{{ item.length }}米 - + 病害面积:{{ item.area }}平方米 病害长度:{{ item.length * 1 <= 0 ? "暂无数据" : `${item.length}米` }} @@ -853,7 +852,7 @@ export default { // 图片信息 .rect-image { - width: 67%; + width: 70%; position: absolute; top: 0; } diff --git a/src/views/big-screen/disease-components/traffic-safety.vue b/src/views/big-screen/disease-components/traffic-safety.vue index 770194f..02df238 100644 --- a/src/views/big-screen/disease-components/traffic-safety.vue +++ b/src/views/big-screen/disease-components/traffic-safety.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-21 09:59:32 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-03 14:52:09 + * @LastEditTime: 2024-12-05 17:13:51 * @FilePath: \znxjxt-ui\src\views\big-screen\disease-components\traffic-safety.vue * @Description: 病害巡检大屏-今日巡查 --> @@ -14,60 +14,36 @@