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 @@
- {{ all }}个 + {{ all }}
- 较昨日增长 50.26% - + 较昨日{{ state }}{{ state + }} {{ count }}个 + +
- +
- - + +
- - + +
@@ -100,6 +76,10 @@ export default { all: 0, // 病害增长率 scale: 0, + // 较昨日增长、减少 + state: "——", + // 增长、减少数量 + count: "——", // 弹窗显隐控制 showDialogVisible: false, // 左侧路段选择绑定 @@ -137,6 +117,8 @@ export default { if (code === 200) { this.today = data.today; this.all = data.all; + this.state = data.state; + this.count = data.count; this.scale = data.scale; } }); @@ -645,13 +627,14 @@ export default { span { cursor: pointer; font-family: "DouYu"; - background: linear-gradient( - to bottom, - #ffffff, - #2773d0 - ); /*设置渐变的方向从左到右 颜色从ff0000到ffff00*/ - background-clip: text; /*将设置的背景颜色限制在文字中*/ - -webkit-text-fill-color: transparent; /*给文字设置成透明*/ + background: linear-gradient(to bottom, + #ffffff, + #2773d0); + /*设置渐变的方向从左到右 颜色从ff0000到ffff00*/ + background-clip: text; + /*将设置的背景颜色限制在文字中*/ + -webkit-text-fill-color: transparent; + /*给文字设置成透明*/ } } @@ -685,13 +668,14 @@ export default { font-size: 1.2rem; font-family: "DouYu"; - background: linear-gradient( - to bottom, - #ffffff, - #21f1e1 - ); /*设置渐变的方向从左到右 颜色从ff0000到ffff00*/ - background-clip: text; /*将设置的背景颜色限制在文字中*/ - -webkit-text-fill-color: transparent; /*给文字设置成透明*/ + background: linear-gradient(to bottom, + #ffffff, + #21f1e1); + /*设置渐变的方向从左到右 颜色从ff0000到ffff00*/ + background-clip: text; + /*将设置的背景颜色限制在文字中*/ + -webkit-text-fill-color: transparent; + /*给文字设置成透明*/ } } @@ -737,10 +721,21 @@ export default { padding: 0 0.5rem; } + .bottom { + color: #19eb27; + padding: 0 0.5rem; + } + + .el-icon-top { font-size: 1.5rem; color: red; } + + .el-icon-bottom { + font-size: 1.5rem; + color: #19eb27; + } } } } @@ -768,7 +763,7 @@ export default { // height: 10%; display: flex; - > div { + >div { width: 50%; padding: 0 2rem; @@ -789,6 +784,7 @@ export default { .el-select-dropdown { background-color: #102649; border-color: #08204f; + .el-scrollbar { .el-select-dropdown__wrap { .el-scrollbar__view { diff --git a/src/views/big-screen/disease-components/traffic-trend.vue b/src/views/big-screen/disease-components/traffic-trend.vue index d63b809..4c82852 100644 --- a/src/views/big-screen/disease-components/traffic-trend.vue +++ b/src/views/big-screen/disease-components/traffic-trend.vue @@ -10,23 +10,14 @@ - + - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/big-screen/overview-components/inspection-vehicles.vue b/src/views/big-screen/overview-components/inspection-vehicles.vue index 4a0e12c..94e3528 100644 --- a/src/views/big-screen/overview-components/inspection-vehicles.vue +++ b/src/views/big-screen/overview-components/inspection-vehicles.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-11-08 09:40:18 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-04 16:20:31 + * @LastEditTime: 2024-12-05 13:37:00 * @FilePath: \znxjxt-ui\src\views\big-screen\overview-components\inspection-vehicles.vue * @Description: 总览大屏-巡检车辆 --> @@ -43,7 +43,7 @@ height="85%" > - + diff --git a/src/views/big-screen/overview-components/patrol-order.vue b/src/views/big-screen/overview-components/patrol-order.vue index b73e4f3..fcdadd8 100644 --- a/src/views/big-screen/overview-components/patrol-order.vue +++ b/src/views/big-screen/overview-components/patrol-order.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-18 10:25:29 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-04 09:56:16 + * @LastEditTime: 2024-12-05 15:08:14 * @FilePath: \znxjxt-ui\src\views\big-screen\overview-components\patrol-order.vue * @Description: 总览大屏-巡查里程 --> @@ -11,48 +11,25 @@
- {{ formatNumber(patrolObject.len) }}km + {{ formatNumber(patrolObject.len) }}km
- {{ formatTime(patrolObject.time) }}h + {{ formatTime(patrolObject.time) }}h
- +
- - + + - + 今日 本月 本年 @@ -63,8 +40,8 @@
- - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/big-screen/overview-components/today-inspection.vue b/src/views/big-screen/overview-components/today-inspection.vue index bf470eb..68d8984 100644 --- a/src/views/big-screen/overview-components/today-inspection.vue +++ b/src/views/big-screen/overview-components/today-inspection.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-18 09:42:49 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-03 14:51:42 + * @LastEditTime: 2024-12-05 17:13:16 * @FilePath: \znxjxt-ui\src\views\big-screen\overview-components\today-inspection.vue * @Description: 总览大屏-今日巡查 --> @@ -14,60 +14,36 @@
- {{ all }}个 + {{ all }}
- 较昨日增长 50.26% - + 较昨日{{ state }}{{ state + }} {{ count }}个 + +
- +
- - + +
- - + +
@@ -93,6 +69,10 @@ export default { all: "0", // 增长率 scale: "0", + // 较昨日增长、减少 + state: "——", + // 增长、减少数量 + count: "——", // 弹窗显隐控制 showDialogVisible: false, // 左侧路段选择绑定 @@ -123,6 +103,8 @@ export default { if (code === 200) { this.today = data.today; this.all = data.all; + this.state = data.state; + this.count = data.count; this.scale = (data.scale * 1).toFixed(2); } }); @@ -625,13 +607,14 @@ export default { font-size: 1.5rem; font-weight: 800; font-family: "DouYu"; - background: linear-gradient( - to bottom, - #ffffff, - #2773d0 - ); /*设置渐变的方向从左到右 颜色从ff0000到ffff00*/ - background-clip: text; /*将设置的背景颜色限制在文字中*/ - -webkit-text-fill-color: transparent; /*给文字设置成透明*/ + background: linear-gradient(to bottom, + #ffffff, + #2773d0); + /*设置渐变的方向从左到右 颜色从ff0000到ffff00*/ + background-clip: text; + /*将设置的背景颜色限制在文字中*/ + -webkit-text-fill-color: transparent; + /*给文字设置成透明*/ } } @@ -663,13 +646,14 @@ export default { font-weight: 800; font-family: "DouYu"; margin-right: 0.5rem; - background: linear-gradient( - to bottom, - #ffffff, - #2773d0 - ); /*设置渐变的方向从左到右 颜色从ff0000到ffff00*/ - background-clip: text; /*将设置的背景颜色限制在文字中*/ - -webkit-text-fill-color: transparent; /*给文字设置成透明*/ + background: linear-gradient(to bottom, + #ffffff, + #2773d0); + /*设置渐变的方向从左到右 颜色从ff0000到ffff00*/ + background-clip: text; + /*将设置的背景颜色限制在文字中*/ + -webkit-text-fill-color: transparent; + /*给文字设置成透明*/ } } @@ -714,10 +698,20 @@ export default { padding: 0 0.5rem; } + .bottom{ + color: #19eb27; + padding: 0 0.5rem; + } + .el-icon-top { font-size: 1.5rem; color: red; } + + .el-icon-bottom { + font-size: 1.5rem; + color: #19eb27; + } } } } @@ -733,7 +727,7 @@ export default { // height: 10%; display: flex; - > div { + >div { width: 50%; padding: 0 2rem; @@ -754,6 +748,7 @@ export default { .el-select-dropdown { background-color: #102649; border-color: #08204f; + .el-scrollbar { .el-select-dropdown__wrap { .el-scrollbar__view { diff --git a/src/views/big-screen/road-components/anomaly-facilities.vue b/src/views/big-screen/road-components/anomaly-facilities.vue index 49596c2..e581e7d 100644 --- a/src/views/big-screen/road-components/anomaly-facilities.vue +++ b/src/views/big-screen/road-components/anomaly-facilities.vue @@ -10,24 +10,15 @@ - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/index-components/daily-index.vue b/src/views/index-components/daily-index.vue index e880084..8c31e6b 100644 --- a/src/views/index-components/daily-index.vue +++ b/src/views/index-components/daily-index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-29 15:12:20 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-11-18 16:53:33 + * @LastEditTime: 2024-12-05 16:36:31 * @FilePath: \znxjxt-ui\src\views\index-components\daily-index.vue * @Description: 首页-日常巡查 --> @@ -22,15 +22,13 @@
巡查里程
- {{ formatNumber(mileage) }}km + {{ formatNumber(mileage) }}km
覆盖道路数
- {{ roadNum }}条 + {{ roadNum }}
@@ -231,9 +229,9 @@ export default { // 是否显示detail,即拖拽时候显示详细数值信息 showDetail: false, // 数据窗口范围的起始数值 - startValue: 0, + startValue: this.diseaseChart.length - 6, // 数据窗口范围的结束数值(一页显示多少条数据) - endValue: 6, + endValue: this.diseaseChart.length, // empty:当前数据窗口外的数据,被设置为空。 // 即不会影响其他轴的数据范围 filterMode: "empty", @@ -507,7 +505,7 @@ export default { width: 78%; height: 100%; - > div { + >div { height: 50%; width: 100%; background-color: #ffffff; diff --git a/src/views/index-components/disease-index.vue b/src/views/index-components/disease-index.vue index aed0e3f..451ad4d 100644 --- a/src/views/index-components/disease-index.vue +++ b/src/views/index-components/disease-index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-29 15:17:58 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-11-18 17:04:51 + * @LastEditTime: 2024-12-05 16:35:11 * @FilePath: \znxjxt-ui\src\views\index-components\disease-index.vue * @Description: 首页-病害识别 --> @@ -22,15 +22,13 @@
病害识别总数
- {{ total }}个 + {{ total }}
新增病害数
- {{ newTotal }}个 + {{ newTotal }}
@@ -40,16 +38,9 @@
-
+
- + {{ item.name }}
{{ item.rate }}
@@ -61,8 +52,8 @@
- - - - - \ No newline at end of file + +/* 页脚 */ +.dialog-footer { + display: flex; + justify-content: flex-end; +} + \ No newline at end of file diff --git a/src/views/xj/inspection/traffic-management/index.vue b/src/views/xj/inspection/traffic-management/index.vue index 0670324..ff8ea05 100644 --- a/src/views/xj/inspection/traffic-management/index.vue +++ b/src/views/xj/inspection/traffic-management/index.vue @@ -160,7 +160,6 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - v-hasPermi="['system:defect:add']" >新增 @@ -172,7 +171,6 @@ size="mini" :disabled="multiple" @click="handleDelete" - v-hasPermi="['system:defect:remove']" >删除 @@ -183,7 +181,6 @@ icon="el-icon-download" size="mini" @click="handleExport" - v-hasPermi="['system:defect:export']" >导出 --> @@ -195,7 +192,6 @@ size="mini" :disabled="single" @click="handleUpdateBatch" - v-hasPermi="['system:defect:edit']" >批量确认 --> @@ -264,7 +260,6 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['system:defect:edit']" >修改 删除 diff --git a/src/views/xj/route/route-terminal/index.vue b/src/views/xj/route/route-terminal/index.vue index 001fc97..684383c 100644 --- a/src/views/xj/route/route-terminal/index.vue +++ b/src/views/xj/route/route-terminal/index.vue @@ -60,8 +60,8 @@ style="width: 100%" > - - + + @@ -206,9 +206,9 @@ export default { ...this.searchForm, ...this.pagination, }; - getTerminalList(params).then(({ code, data }) => { + getTerminalList(params).then(({ code, rows }) => { if (code === 200) { - this.sectionList = data.rows; + this.sectionList = rows; } }); }, diff --git a/src/views/xj/subscription/subscription-center/index.vue b/src/views/xj/subscription/subscription-center/index.vue index 9d8f94e..099ecc9 100644 --- a/src/views/xj/subscription/subscription-center/index.vue +++ b/src/views/xj/subscription/subscription-center/index.vue @@ -29,7 +29,6 @@ type="text" icon="el-icon-circle-check" @click="handleConfirm(scope.row)" - v-hasPermi="['system:defect:edit']" >订阅 取消订阅