Merge branch 'master' into 重构/1078

This commit is contained in:
lin 2025-07-07 11:46:13 +08:00
commit 93c24a74e6
6 changed files with 22 additions and 23 deletions

View File

@ -132,6 +132,7 @@ https://gitee.com/pan648540858/wvp-GB28181-pro.git
- [X] 支持电子地图。支持展示通道位置支持在地图上修改通道位置。可扩展接入高德地图API支持搜索位置附近设备。 - [X] 支持电子地图。支持展示通道位置支持在地图上修改通道位置。可扩展接入高德地图API支持搜索位置附近设备。
- [X] 支持表格导出 - [X] 支持表格导出
- [X] 拉流代理支持按照品牌拼接url。 - [X] 拉流代理支持按照品牌拼接url。
- [X] 播放鉴权,更加安全。
- [X] 功能持续扩展,可根据用户需要增加支持。 - [X] 功能持续扩展,可根据用户需要增加支持。

View File

@ -18,6 +18,9 @@ WVP支持三种图像输入方式直播[拉流代理](_content/ability/pro
1. 默认情况下WVP收到推流信息后列表中出现这条推流信息如果你需要共享推流信息到其他国标平台,那么你需要编辑/国标通道配置,配置国标编码. 1. 默认情况下WVP收到推流信息后列表中出现这条推流信息如果你需要共享推流信息到其他国标平台,那么你需要编辑/国标通道配置,配置国标编码.
2. WVP也支持推流前导入大量通道直接推送给上级点击“下载模板”按钮根据示例修改模板后点击“通道导入”按钮导入通道数据. 2. WVP也支持推流前导入大量通道直接推送给上级点击“下载模板”按钮根据示例修改模板后点击“通道导入”按钮导入通道数据.
## 生成推流地址
可以在推流列表里点击‘生成推流地址’按钮,得到新地址后直接复制到推流设备。
## 推拉流鉴权规则 ## 推拉流鉴权规则
为了保护服务器的WVP默认开启推流鉴权目前不支持关闭此功能 为了保护服务器的WVP默认开启推流鉴权目前不支持关闭此功能

View File

@ -5,7 +5,7 @@
:show-header="true" :show-header="true"
:edit="true" :edit="true"
@clickEvent="treeNodeClickEvent" @clickEvent="treeNodeClickEvent"
:on-channel-change="onChannelChange" @onChannelChange="onChannelChange"
:enable-add-channel="true" :enable-add-channel="true"
:add-channel-to-group="addChannelToGroup" :add-channel-to-group="addChannelToGroup"
/> />
@ -306,7 +306,10 @@ export default {
}) })
}, },
onChannelChange: function(deviceId) { onChannelChange: function(deviceId) {
//
if (this.groupDeviceId === deviceId) {
this.getChannelList()
}
}, },
showUnusualChanel: function() { showUnusualChanel: function() {
this.$refs.unusualGroupChannelSelect.openDialog() this.$refs.unusualGroupChannelSelect.openDialog()

View File

@ -5,7 +5,7 @@
:show-header="true" :show-header="true"
:edit="true" :edit="true"
@clickEvent="treeNodeClickEvent" @clickEvent="treeNodeClickEvent"
:on-channel-change="onChannelChange" @onChannelChange="onChannelChange"
:enable-add-channel="true" :enable-add-channel="true"
:add-channel-to-civil-code="addChannelToCivilCode" :add-channel-to-civil-code="addChannelToCivilCode"
/> />
@ -296,7 +296,9 @@ export default {
console.log(selectedData) console.log(selectedData)
}, },
onChannelChange: function(deviceId) { onChannelChange: function(deviceId) {
// if (this.regionDeviceId === deviceId) {
this.getChannelList()
}
} }
} }
} }

View File

@ -130,7 +130,7 @@ export default {
GbChannelSelect, GbChannelSelect,
VueEasyTree, groupEdit, gbDeviceSelect VueEasyTree, groupEdit, gbDeviceSelect
}, },
props: ['edit', 'enableAddChannel', 'onChannelChange', 'showHeader', 'hasChannel', 'addChannelToGroup', 'treeHeight'], props: ['edit', 'enableAddChannel', 'showHeader', 'hasChannel', 'addChannelToGroup', 'treeHeight'],
data() { data() {
return { return {
props: { props: {
@ -328,9 +328,7 @@ export default {
.then(data => { .then(data => {
node.parent.loaded = false node.parent.loaded = false
node.parent.expand() node.parent.expand()
if (this.onChannelChange) { this.$emit('onChannelChange', node.data.deviceId)
this.onChannelChange(node.data.deviceId)
}
}) })
}, },
addChannelFormDevice: function(id, node) { addChannelFormDevice: function(id, node) {
@ -339,7 +337,7 @@ export default {
for (let i = 0; i < rows.length; i++) { for (let i = 0; i < rows.length; i++) {
deviceIds.push(rows[i].id) deviceIds.push(rows[i].id)
} }
this.$store.dispatch('group/add', { this.$store.dispatch('commonChanel/addDeviceToGroup', {
parentId: node.data.deviceId, parentId: node.data.deviceId,
businessGroup: node.data.businessGroup, businessGroup: node.data.businessGroup,
deviceIds: deviceIds deviceIds: deviceIds
@ -349,10 +347,7 @@ export default {
showClose: true, showClose: true,
message: '保存成功' message: '保存成功'
}) })
if (this.onChannelChange) { this.$emit('onChannelChange', node.data.deviceId)
this.onChannelChange()
}
console.log(node)
node.loaded = false node.loaded = false
node.expand() node.expand()
}).finally(() => { }).finally(() => {
@ -372,9 +367,7 @@ export default {
showClose: true, showClose: true,
message: '保存成功' message: '保存成功'
}) })
if (this.onChannelChange) { this.$emit('onChannelChange', node.data.deviceId)
this.onChannelChange()
}
node.loaded = false node.loaded = false
node.expand() node.expand()
}).finally(() => { }).finally(() => {

View File

@ -131,7 +131,7 @@ export default {
GbChannelSelect, GbChannelSelect,
VueEasyTree, regionEdit, gbDeviceSelect VueEasyTree, regionEdit, gbDeviceSelect
}, },
props: ['edit', 'enableAddChannel', 'onChannelChange', 'showHeader', 'hasChannel', 'addChannelToCivilCode', 'treeHeight'], props: ['edit', 'enableAddChannel', 'showHeader', 'hasChannel', 'addChannelToCivilCode', 'treeHeight'],
data() { data() {
return { return {
props: { props: {
@ -331,6 +331,7 @@ export default {
this.$store.dispatch('region/deleteRegion', node.data.id) this.$store.dispatch('region/deleteRegion', node.data.id)
.then((data) => { .then((data) => {
console.log('移除成功') console.log('移除成功')
this.$emit('onChannelChange', node.data.deviceId)
node.parent.loaded = false node.parent.loaded = false
node.parent.expand() node.parent.expand()
}).catch(function(error) { }).catch(function(error) {
@ -351,9 +352,7 @@ export default {
showClose: true, showClose: true,
message: '保存成功' message: '保存成功'
}) })
if (this.onChannelChange) { this.$emit('onChannelChange', node.data.deviceId)
this.onChannelChange()
}
node.loaded = false node.loaded = false
node.expand() node.expand()
}).catch(function(error) { }).catch(function(error) {
@ -375,9 +374,7 @@ export default {
showClose: true, showClose: true,
message: '保存成功' message: '保存成功'
}) })
if (this.onChannelChange) { this.$emit('onChannelChange', node.data.deviceId)
this.onChannelChange(node.data.deviceId)
}
node.loaded = false node.loaded = false
node.expand() node.expand()
}).catch(function(error) { }).catch(function(error) {