From cb5b3c5904384131bba20cdb823fae660ee05974 Mon Sep 17 00:00:00 2001
From: xuhuajiao <13476289682@163.com>
Date: Fri, 31 Jul 2026 15:51:25 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=AD=A6=E7=AE=A1=E7=90=86/=E7=AB=99?=
=?UTF-8?q?=E7=82=B9=E7=9B=91=E6=8E=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/assetManage/monitor/index.vue | 167 ++++----
src/views/assetManage/monitor/index1.vue | 523 -----------------------
src/views/home.vue | 25 +-
src/views/system/user/index.vue | 8 +-
4 files changed, 115 insertions(+), 608 deletions(-)
delete mode 100644 src/views/assetManage/monitor/index1.vue
diff --git a/src/views/assetManage/monitor/index.vue b/src/views/assetManage/monitor/index.vue
index 95e13b2..bfd34b5 100644
--- a/src/views/assetManage/monitor/index.vue
+++ b/src/views/assetManage/monitor/index.vue
@@ -32,76 +32,55 @@
-
-
+
+
+
{{ item.warningText }}
@@ -130,14 +109,16 @@
import crudDevice, { FetchFondsWarehouseTree, FetchWarehouseTree } from '@/api/assetDevice/index'
import CRUD, { presenter, header, crud } from '@crud/crud'
import hkVideo from '@/views/components/hkVideo.vue'
-import { swiper, swiperSlide } from 'vue-awesome-swiper'
-import 'swiper/dist/css/swiper.css'
+// import { swiper, swiperSlide } from 'vue-awesome-swiper'
+// import 'swiper/dist/css/swiper.css'
export default {
name: 'Monitor',
- components: { hkVideo,
- swiper,
- swiperSlide },
+ components: {
+ hkVideo
+ // swiper,
+ // swiperSlide
+ },
cruds() {
return CRUD({
title: '设备监控',
@@ -291,8 +272,8 @@ export default {
this.storeData = res || []
// 测试使用
// this.storeData = []
- // this.storeData[0].lastSyncTime = '2026-04-03T08:33:19.014+00:00'
- // this.storeData[0].syncExplanation = '报警文案报警文案报警文案报警文案报警文案报警文案报警文案报警文案报警文案报警文案'
+ this.storeData[0].lastSyncTime = '2026-04-03T08:33:19.014+00:00'
+ this.storeData[0].syncExplanation = '报警文案报警文案报警文案报警文案报警文案报警文案报警文案报警文案报警文案报警文案'
// this.storeData[2].lastSyncTime = '2026-04-03T08:33:19.014+00:00'
// this.storeData[2].syncExplanation = 'ddd'
@@ -454,7 +435,19 @@ export default {
handleClose() {
this.hkVideoVisible = false
},
-
+ openWarehouseCamera(warehouse) {
+ // warehouse.deviceList 为当前仓库所有设备数组,根据你的业务筛选摄像头
+ const cameraList = warehouse.deviceList || []
+ // 筛选监控球机,按需修改判断条件
+ const camera = cameraList.find(item => item.deviceTypeName === '网络高清球机')
+
+ if (!camera) {
+ this.$message.warning('该仓库暂无监控设备')
+ return
+ }
+ // 直接传入设备ID,调用你原有不变的handleViewVideo
+ this.handleViewVideo(camera.id)
+ },
handleViewVideo(data) {
const deviceId = data
Promise.all([
@@ -535,13 +528,16 @@ export default {
align-items: center;
.store-info-item{
display: flex;
- justify-content: flex-start;
+ justify-content: space-between;
align-items: center;
p{
margin-right: 6px;
}
&.store-top{
justify-content: space-between;
+ .iconfont::before{
+ margin: 0 !important;
+ }
}
}
}
@@ -549,24 +545,33 @@ export default {
.el-card__body{
padding: 5px 10px;
border-radius: 0 0 10px 10px;
- .device-monitor-list{
- height: 200px;
- padding: 10px;
- line-height: 30px;
+ .store-monitor{
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: flex-start;
+ align-items: flex-start;
+ padding: 5px 5px 10px 5px;
+ line-height: 35px;
font-size: 14px;
- overflow: hidden;
- overflow-y: scroll;
li{
+ width: calc(50% - 10px);
display: flex;
- justify-content: flex-start;
+ justify-content: space-between;
align-items: center;
- .iconfont{
- width: 22px;
- text-align: center;
+ &:nth-child(even){
+ margin-left: 15px;
+ }
+ span{
+ display: block;
+ width: 120px;
+ // color: #0348f3;
}
p{
flex: 1;
- padding: 0 6px;
+ text-align: right;
+ font-weight: bold;
+ color: #0C0E1E;
+
}
}
}
diff --git a/src/views/assetManage/monitor/index1.vue b/src/views/assetManage/monitor/index1.vue
deleted file mode 100644
index 20faa49..0000000
--- a/src/views/assetManage/monitor/index1.vue
+++ /dev/null
@@ -1,523 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ item.warehouseName || '仓库' }}
-
面积:{{ item.warehouseArea || '0' }} ㎡
-
-
-
-
{{ item.administrator }}
-
{{ item.contactPhone }}
-
-
-
-
- -
-
-
{{ device.deviceName }}
-
-
-
-
-
-
-
-
-
-
-
- {{ item.warningText }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/home.vue b/src/views/home.vue
index dad98d3..e0f402f 100644
--- a/src/views/home.vue
+++ b/src/views/home.vue
@@ -147,6 +147,28 @@
报警设备
+
+
+
+
+
+
+ {{ scope.row.checkStartTime | parseTime }}
+
+
+
+
+
@@ -228,7 +250,8 @@ export default {
disableOnInteraction: false
},
slidesPerView: 'auto'
- }
+ },
+ alarmData: []
}
},
computed: {
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index ea974ed..ec8e860 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -201,15 +201,17 @@
-
+
+
+
-
+
自建用户
同步用户
-
+
已绑定
未绑定