diff --git a/ALOps_sys_fe/alops-ui/public/favicon.ico b/ALOps_sys_fe/alops-ui/public/favicon.ico deleted file mode 100644 index e2637602..00000000 Binary files a/ALOps_sys_fe/alops-ui/public/favicon.ico and /dev/null differ diff --git a/ALOps_sys_fe/alops-ui/public/index.html b/ALOps_sys_fe/alops-ui/public/index.html index ec69afcf..2754cc0b 100644 --- a/ALOps_sys_fe/alops-ui/public/index.html +++ b/ALOps_sys_fe/alops-ui/public/index.html @@ -5,7 +5,6 @@ - <%= webpackConfig.name %> diff --git a/ALOps_sys_fe/alops-ui/src/api/QandA/Aiassistant.js b/ALOps_sys_fe/alops-ui/src/api/QandA/Aiassistant.js index 1718d272..ddd9ac03 100644 --- a/ALOps_sys_fe/alops-ui/src/api/QandA/Aiassistant.js +++ b/ALOps_sys_fe/alops-ui/src/api/QandA/Aiassistant.js @@ -10,6 +10,16 @@ export function getDict() { }) } + +// knowledgeAsk +export function knowledgeAsk(data) { + return request({ + url: '/QandA/knowledge/ask', + method: 'post', + data: data + }) +} + // 查询列表 export function list(query) { return request({ diff --git a/ALOps_sys_fe/alops-ui/src/assets/logo/logo.png b/ALOps_sys_fe/alops-ui/src/assets/logo/logo.png index e2637602..8245a8f8 100644 Binary files a/ALOps_sys_fe/alops-ui/src/assets/logo/logo.png and b/ALOps_sys_fe/alops-ui/src/assets/logo/logo.png differ diff --git a/ALOps_sys_fe/alops-ui/src/views/QandA/Aiassistant/index.vue b/ALOps_sys_fe/alops-ui/src/views/QandA/Aiassistant/index.vue index e76545fe..2d2bec6d 100644 --- a/ALOps_sys_fe/alops-ui/src/views/QandA/Aiassistant/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/QandA/Aiassistant/index.vue @@ -43,7 +43,7 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/inMonitor/rules/index.vue b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/inMonitor/rules/index.vue index f6b4b331..c60599d1 100644 --- a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/inMonitor/rules/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/inMonitor/rules/index.vue @@ -299,7 +299,7 @@ export default { }, methods: { findParamName(paramName) { - const item = this.byTableData.find(item => item.paramName == paramName); + const item = this.byTableData.find(item => item.columnName == paramName); return item ? item.paramName : ''; }, /** 查询设备列表 */ diff --git a/ALOps_sys_fe/alops-ui/src/views/index.vue b/ALOps_sys_fe/alops-ui/src/views/index.vue index cb8b8dc9..bbc663f5 100644 --- a/ALOps_sys_fe/alops-ui/src/views/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/index.vue @@ -3,7 +3,7 @@
-

设备监控中心大屏 - 智能管理版

+

唐山烟草网络设备智能监管平台

{{ currentTime }}
@@ -37,7 +37,7 @@
+ class="floor-device-card" @click="jumpToDeviceFiles(floor.floor)">
{{ floor.floor }}
{{ floor.count }}
@@ -52,11 +52,11 @@
设备信息统计
-
+
{{ totalDevices }}
设备总数
-
+
{{ onlineDevices }}
在线设备数
@@ -377,6 +377,19 @@ export default { this.refreshDeviceStatus(); }, 60000); }, + activated() { + // 每次进入首页时刷新数据 + this.refreshDeviceStatus(); + this.loadDeviceTypeData(); + this.loadAlertStatistics(); + this.loadAlertTimes(); + this.loadFloorDeviceDistribution(); + this.updateTimeDisplay(); + + // 更新最后刷新时间 + this.updateTime = this.currentTime; + }, + beforeDestroy() { // 移除事件监听 window.removeEventListener('resize', this.handleResize); @@ -385,6 +398,14 @@ export default { } }, methods: { + // 跳转到设备档案页面 + goToDeviceFiles() { + this.$router.push('/device/files'); + }, + // 跳转到设备状态监控页面 + goToDeviceStateMonitor() { + this.$router.push('/inMonitoring/devicesState'); + }, // 处理日期范围变化,将结束时间设置为23:59:59 handleDateRangeChange(range) { if (range && range.length === 2) { @@ -868,6 +889,37 @@ export default { } else { this.warningLevelFilter = level; } + + // 年度预警跳转到预警信息页面 + if (level === 'annual') { + this.$router.push('/inMonitoring/inMonitoring/message'); + } + // 1-3级预警跳转到预警信息页面并传递级别参数 + else if (level === 'level1') { + this.$router.push({ + path: '/inMonitoring/inMonitoring/message', + query: { level: '1' } + }); + } + else if (level === 'level2') { + this.$router.push({ + path: '/inMonitoring/inMonitoring/message', + query: { level: '2' } + }); + } + else if (level === 'level3') { + this.$router.push({ + path: '/inMonitoring/inMonitoring/message', + query: { level: '3' } + }); + } + }, + // 跳转到设备档案页面并传递楼层参数 + jumpToDeviceFiles(floor) { + this.$router.push({ + path: '/device/files', + query: { floor: floor } + }); }, refreshDeviceStatus() { @@ -983,14 +1035,24 @@ export default { } .index-box { - background-color: #0a1633; - color: #e6e6e6; - overflow: auto; - padding: 16px; - min-height: 100%; - position: relative; - box-sizing: border-box; - } + background-color: #0a1633; + color: #e6e6e6; + overflow: auto; + padding: 16px; + min-height: 100%; + position: relative; + box-sizing: border-box; + } + + /* 可点击元素的样式 */ + .clickable-item { + cursor: pointer; + transition: all 0.3s; + } + + .clickable-item:hover { + background-color: #f0f9ff; + } .dashboard { width: 100%; diff --git a/ALOps_sys_fe/alops-ui/src/views/message/index.vue b/ALOps_sys_fe/alops-ui/src/views/message/index.vue index 5d2c7238..70194b5d 100644 --- a/ALOps_sys_fe/alops-ui/src/views/message/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/message/index.vue @@ -82,7 +82,7 @@ export default { getList() { this.loading = true messageList(this.queryParams).then(response => { - this.dataList = response.data || [] + this.dataList = response.rows || [] this.total = response.data?.length || 0 this.loading = false }