增加门禁设备绑定取消操作

This commit is contained in:
15683799673
2025-08-28 19:53:15 +08:00
parent 0d2c3d97a5
commit 7fc74b88b8
2 changed files with 4 additions and 1 deletions

View File

@@ -180,7 +180,8 @@ function doPlayer(nodeData: any, index: number = 0) {
console.log('index=', index);
if (mpegts.isSupported()) {
streamProxy(nodeData, (res: AddStreamProxyResult) => {
const url = res.flv;
const host = window.location.host;
const url = `http://${host}/${res.app}/${res.streamId}.live.flv`;
// 将url 绑定到 nodeData
nodeData.url = url;
closePlayer(index);

View File

@@ -144,12 +144,14 @@ async function setupCommunitySelect() {
{
componentProps: () => ({
options: arr,
allowClear: true,
}),
fieldName: 'bindDeviceId',
},
{
componentProps: () => ({
options: arr,
allowClear: true,
mode: 'multiple', // 关键属性,启用多选模式
}),
fieldName: 'devicePoint',