From 5737711a651c43af6ff8bdaf38e9ae5da750c993 Mon Sep 17 00:00:00 2001
From: xuhuajiao <13476289682@163.com>
Date: Thu, 27 Jun 2024 17:35:15 +0800
Subject: [PATCH] =?UTF-8?q?0627=E9=9C=80=E6=B1=82=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../lendManage/components/archiveDetail.vue | 73 ++++++++++++++++---
src/views/system/logManage/storeLog/index.vue | 15 +++-
2 files changed, 73 insertions(+), 15 deletions(-)
diff --git a/src/views/archivesManage/lendManage/components/archiveDetail.vue b/src/views/archivesManage/lendManage/components/archiveDetail.vue
index da1f567..ea6c70b 100644
--- a/src/views/archivesManage/lendManage/components/archiveDetail.vue
+++ b/src/views/archivesManage/lendManage/components/archiveDetail.vue
@@ -1,6 +1,6 @@
-
+
@@ -53,6 +53,23 @@
+
+
+
+
+
+
+
+
+
+
@@ -61,8 +78,11 @@ import { FetchInitBillDetails } from '@/api/archivesManage/lendManage'
import CallExternal from '@/api/storeManage/deviceManage/device'
import { lendingCrud } from '../mixins/lending'
import { parseTime } from '@/utils/index.js'
+import Video from './video'
+import displayConfigApi from '@/api/storeManage/displayConfig'
export default {
name: 'ArchiveDetail',
+ components: { Video },
mixins: [lendingCrud],
props: {
isReturn: {
@@ -78,9 +98,20 @@ export default {
otherInfo: {},
tableData: [],
lendDatesInfo: null,
- deviceData: null
+ deviceData: null,
+ videoTipVisible: false,
+ camConfigData: [],
+ cameraData: [],
+ open: false
}
},
+ created() {
+ displayConfigApi.list({ storeroomId: 'D6490DA3D4261E8C26D0E3' }).then((data) => {
+ if (data) {
+ this.camConfigData = data
+ }
+ })
+ },
methods: {
getBillDetails() {
const params = {
@@ -142,6 +173,7 @@ export default {
CallExternal.FetchCallExternalOpenCol(params).then(res => {
if (res.success && res.success === '0') {
this.$message.success('开架执行成功')
+ this.videoTipVisible = true
} else {
this.$message.error(res.msg)
}
@@ -149,6 +181,20 @@ export default {
console.log(error)
this.$message.error('连接失败')
})
+ },
+ handleLookVideo() {
+ this.videoTipVisible = false
+ this.cameraData = this.camConfigData.filter((item) => { return item.divPosition.includes('CAM') })
+ this.open = true
+ this.$nextTick(() => {
+ this.$refs.camera.camConfig = this.cameraData[0]
+ this.$refs.camera.videoIndex = 0
+ this.$refs.camera.play()
+ })
+ },
+ handleClose(done) {
+ this.videoTipVisible = false
+ done()
}
}
}
@@ -156,17 +202,20 @@ export default {