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 @@