diff --git a/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/camera.vue b/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/camera.vue
index 41bbb6b..49867af 100644
--- a/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/camera.vue
+++ b/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/camera.vue
@@ -69,8 +69,8 @@
定位
回放
获取rtsp地址
- 编辑
- 删除
+ 编辑
+ 删除
@@ -99,11 +99,11 @@
- 移动摄像头
- 固定摄像头
+ 移动摄像头
+ 固定摄像头
-
+
选择
@@ -114,14 +114,14 @@
-
+
选择
-
+
@@ -529,10 +529,10 @@ export default {
},
// 修改
- handleEdit(id) {
+ handleEdit(row) {
this.msg = 'edit'
- this.form.VIDEO_RESOURCE_ID = id
- this.getData()
+ this.getData(row)
+ this.form.GATE_VIDEO_ID = row.GATE_VIDEO_ID
this.dialogForm = true
},
@@ -557,22 +557,24 @@ export default {
},
// 获取详情
- getData() {
+ getData(row) {
this.listLoading = true
+
requestFN(
'mkmjGateVideo/getVideo',
{
- VIDEO_RESOURCE_ID: this.form.VIDEO_RESOURCE_ID
+ AREA_GATE_ID: row.AREA_GATE_ID ,
+ AREA_ID: row.AREA_ID
}
).then((data) => {
Object.assign(this.form, data.pd)
if (this.form.PLATFORMVIDEOMANAGEMENT_ID) {
- this.form.VIDEO_TYPE = 1
+ this.form.VIDEO_TYPE = 2
} else {
if (this.form.VIDEO_RESOURCES_ID) {
- this.form.VIDEO_TYPE = 0
- } else {
this.form.VIDEO_TYPE = 1
+ } else {
+ this.form.VIDEO_TYPE = 2
}
}
this.VIDEOURL = data.pd.VIDEOURL + '&aspect=600x380'
@@ -593,10 +595,9 @@ export default {
requestFN(
'/mkmjGateVideo/' + this.msg,
{
- VIDEO_RESOURCE_ID: this.form.VIDEO_RESOURCE_ID,
- VIDEO_RESOURCES_ID: this.form.VIDEO_TYPE === 0 ? this.form.VIDEO_RESOURCES_ID : '',
+ VIDEO_RESOURCE_ID: this.form.VIDEO_TYPE === 1 ? this.form.VIDEO_RESOURCES_ID : this.form.PLATFORMVIDEOMANAGEMENT_ID,
VIDEONAME: this.form.VIDEONAME,
- VIDEOURL: this.form.VIDEO_TYPE === 0 ? this.form.VIDEOURL : '',
+ VIDEOURL: this.form.VIDEO_TYPE === 1 ? this.form.VIDEOURL : '',
CODE: this.form.CODE,
LONGITUDE: this.form.LONGITUDE,
LATITUDE: this.form.LATITUDE,
@@ -604,7 +605,7 @@ export default {
AREA_ID: this.$parent.CAMERA_TYPE === 'area' ? this.$parent.CAMERA_ID : '',
AREA_GATE_ID: this.$parent.CAMERA_TYPE === 'equipment' ? this.$parent.CAMERA_ID : '',
DEVICE_TYPE: this.$parent.CAMERA_TYPE === 'area' ? 1 : 2,
- PLATFORMVIDEOMANAGEMENT_ID: this.form.VIDEO_TYPE === 1 ? this.form.PLATFORMVIDEOMANAGEMENT_ID : ''
+ GATE_VIDEO_ID: this.form.GATE_VIDEO_ID
}
).then((data) => {
this.listLoading = false
@@ -626,7 +627,7 @@ export default {
type: 'warning'
}).then(() => {
this.listLoading = true
- console.log(this.VIDEO_RESOURCE_ID)
+ console.log(this.GATE_VIDEO_ID)
requestFN(
'/mkmjGateVideo/removeByIds',
{
@@ -657,7 +658,7 @@ export default {
return false
}
const ids = _selectData.map((item, index) => {
- return item.VIDEO_RESOURCE_ID
+ return item.GATE_VIDEO_ID
}).join(',')
this.$confirm('确定要删除选中的数据吗?', {
@@ -708,7 +709,7 @@ export default {
if (e === 1) {
this.form.VIDEO_TYPE = 1
} else {
- this.form.VIDEO_TYPE = 0
+ this.form.VIDEO_TYPE = 2
}
this.form.VIDEO_RESOURCES_ID = ''
this.form.VIDEONAME = ''
diff --git a/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/channel.vue b/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/channel.vue
index 65c2463..193b4b7 100644
--- a/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/channel.vue
+++ b/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/channel.vue
@@ -202,9 +202,7 @@ export default {
PASSAGE_STATUS: [
{ required: true, message: '请选择状态', trigger: 'change' }
],
- LONGITUDE: [
- { required: true, message: '请选择位置', trigger: 'change' }
- ]
+
}
},
mapDialog: {
diff --git a/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/equipment.vue b/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/equipment.vue
index cdc986f..0dd5337 100644
--- a/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/equipment.vue
+++ b/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/equipment.vue
@@ -248,9 +248,7 @@ export default {
GATE_POSITION: [
{ required: true, message: '请输入闸机位置', trigger: 'blur' }
],
- LONGITUDE: [
- { required: true, message: '请选择位置', trigger: 'change' }
- ]
+
}
},
mapDialog: {
diff --git a/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/list.vue b/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/list.vue
index f5d6974..9f8db0e 100644
--- a/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/list.vue
+++ b/src/views/gatemachine/primarygatemanager/gatebaseinfo/components/list.vue
@@ -245,9 +245,7 @@ export default {
AREA_STATUS: [
{ required: true, message: '请选择状态', trigger: 'change' }
],
- LONGITUDE: [
- { required: true, message: '请选择位置', trigger: 'change' }
- ]
+
}
},
mapDialog: {