-
@@ -135,8 +135,9 @@
import { requestFN } from '@/utils/request'
import moment from 'moment'
import videoPlay from './video_play.vue'
+import videoPlayGate from './video_play_gate.vue'
export default {
- components: { videoPlay },
+ components: { videoPlay, videoPlayGate },
props: {
id: {
type: String,
@@ -221,6 +222,11 @@ export default {
}
}
}
+ if (this.type == 'CAMERA') {
+ Object.assign(this.info, data.pd.info)
+ this.info.CODE = data.pd.video.EXTERNALINDEXCODE
+ this.info.VIDEONAME = data.pd.video.NAME
+ }
this.$forceUpdate()
}).catch((e) => {
diff --git a/src/views/map/dialog/video_play_gate.vue b/src/views/map/dialog/video_play_gate.vue
new file mode 100644
index 0000000..8a2efd1
--- /dev/null
+++ b/src/views/map/dialog/video_play_gate.vue
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/map/index.vue b/src/views/map/index.vue
index acea57b..1641cc9 100644
--- a/src/views/map/index.vue
+++ b/src/views/map/index.vue
@@ -1385,11 +1385,8 @@ export default {
const point_type = pick.id._monitoItems.data.point_type
const point_id = pick.id._monitoItems.data.id
if (point_type == '标记点CAMERA'){
- const { GATE_VIDEO_ID } = pick.id._monitoItems.data
- alert(GATE_VIDEO_ID)
- alert(pick.id._monitoItems.data)
console.log(pick.id._monitoItems.data)
- this.dialog.GATE_VIDEO_ID = GATE_VIDEO_ID
+ this.dialog.GATE_VIDEO_ID = pick.id._monitoItems.data.GATE_VIDEO_ID
}
if (point_type === '报警') {
viewer.dataSources.remove(this.myEntityCollection[pick.id._monitoItems.data.id])
@@ -2138,6 +2135,7 @@ export default {
point.position.y = +varList[i].LATITUDE
point.dialog_width = dialog_width
point.MAP_POINT_NAME = varList[i].MAP_POINT_NAME
+ point.GATE_VIDEO_ID = varList[i].GATE_VIDEO_ID
// 曹妃甸使用
point.gangkou = this.gangkouActive
// 闸机名称
diff --git a/src/views/threeSystems/lawsRegulations/components/editTextLibrary.vue b/src/views/threeSystems/lawsRegulations/components/editTextLibrary.vue
index 0d047ad..757be5c 100644
--- a/src/views/threeSystems/lawsRegulations/components/editTextLibrary.vue
+++ b/src/views/threeSystems/lawsRegulations/components/editTextLibrary.vue
@@ -199,6 +199,8 @@ export default {
{ BUS_TEXT_LIBRARY_ID: this.e.BUS_TEXT_LIBRARY_ID }
).then((data) => {
this.loading = false
+ if (!data.data.labels || data.data.labels.length === 0) data.data.labels = ['']
+ data.data.TYPE_INFO = data.data.TYPE
this.form = data.data
this.form.FILE = []
this.form.types = []
@@ -208,10 +210,7 @@ export default {
if (!this.form.TYPES || this.form.TYPES.length === 0) this.form.TYPES = ['']
if (!this.form.SPECIFICATION_TYPES || this.form.SPECIFICATION_TYPES.length === 0) this.form.SPECIFICATION_TYPES = ['']
if (!this.form.CATEGORY_LIST || this.form.CATEGORY_LIST.length === 0) this.form.CATEGORY_LIST = ['']
- if (!this.form.labels || this.form.labels.length === 0) this.form.labels = ['']
this.remoteControl.keyOne = !(this.form.CATEGORY_LIST[0].CATEGORY_ID === '8051d985a2bc406a83ea9360b64182b2')
- this.form.TYPE_INFO = this.form.TYPE
- this.$set(this.form, 'TYPE_INFO', this.form.TYPE)
}).catch((e) => {
this.$message.error(e)
this.loading = false
|