fix: BUG修改
This commit is contained in:
parent
fea2477e43
commit
81ade4bd74
@ -368,7 +368,7 @@ export default {
|
||||
this.videoInfo.groupId = id
|
||||
selectVideoItemListByTypeApi(this.videoInfo).then((result) => {
|
||||
console.log('result=========数据',result);
|
||||
if (result.success) {
|
||||
if (result.success && result.result) {
|
||||
this.cameraList = result.result
|
||||
console.log('videoInfo', this.videoInfo, '视频列表', this.cameraList)
|
||||
}
|
||||
|
||||
@ -37,14 +37,14 @@
|
||||
</div>
|
||||
<div class="list_content">
|
||||
<vue-scroll v-if="groupList.length > 0">
|
||||
<div
|
||||
<!-- <div
|
||||
class="flex content_data"
|
||||
:class="{ active: activeGroupIndex === '' }"
|
||||
@click="changeGroupFn(null, '')"
|
||||
>
|
||||
<!-- 全部 -->
|
||||
全部
|
||||
{{ $t('message.videoManage.whole') }}
|
||||
</div>
|
||||
</div> -->
|
||||
<div
|
||||
class="flex content_data"
|
||||
v-for="(item, index) in groupList"
|
||||
@ -96,7 +96,7 @@
|
||||
</div>
|
||||
<div class="rightVideo whiteBlock">
|
||||
<div>
|
||||
<el-button type="primary" @click="addVideoBtn" size="medium"
|
||||
<el-button type="primary" @click="addVideoBtn" size="medium" :disabled="groupList.length == 0"
|
||||
>{{ $t('message.videoManage.dialog_newVideo.operation.add') }}
|
||||
<!-- {{$t('message.videoManage.add')}}{{$t('message.videoManage.video')}} -->
|
||||
</el-button>
|
||||
@ -1259,7 +1259,7 @@ export default {
|
||||
organizationID: '',
|
||||
groupList: [],
|
||||
nvrList: [],
|
||||
activeGroupIndex: '',
|
||||
activeGroupIndex: 0,
|
||||
currentGroupInfo: null,
|
||||
isAddGroup: true,
|
||||
addGroupDialog: false,
|
||||
@ -1346,9 +1346,8 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.projectSn = this.$store.state.projectSn
|
||||
this.getProjectVideoConfigList()
|
||||
this.getAccountList()
|
||||
this.getVideoGroup()
|
||||
this.getAccountList()
|
||||
this.getAll()
|
||||
},
|
||||
components: { cameraList, cameraListLc, gdMap },
|
||||
@ -1727,6 +1726,10 @@ export default {
|
||||
(res) => {
|
||||
console.log('获取视频分组列表', res)
|
||||
this.groupList = res.result
|
||||
if(this.groupList.length > 0){
|
||||
this.currentGroupInfo = this.groupList[0]
|
||||
this.getProjectVideoConfigList()
|
||||
}
|
||||
}
|
||||
)
|
||||
},
|
||||
@ -1802,6 +1805,7 @@ export default {
|
||||
if (this.activeGroupIndex !== '') {
|
||||
id = this.groupList[parseInt(this.activeGroupIndex)].id
|
||||
}
|
||||
console.log(id,77777777)
|
||||
this.$nextTick(() => {
|
||||
if (this.videoType === 1) {
|
||||
//萤石云
|
||||
@ -1848,6 +1852,7 @@ export default {
|
||||
if (this.videoType === 1) {
|
||||
//萤石云
|
||||
this.$refs.camera.setVideoInfo(res.result)
|
||||
this.$refs.camera.getSelectVideoItemListByTypeApi(this.currentGroupInfo.id);
|
||||
}
|
||||
if (
|
||||
this.videoType === 2 ||
|
||||
@ -1856,6 +1861,7 @@ export default {
|
||||
) {
|
||||
//乐橙云、isc 、xiongmai
|
||||
this.$refs.cameralc.setVideoInfo(res.result)
|
||||
this.$refs.cameralc.getSelectVideoItemListByTypeApi(this.currentGroupInfo.id);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user