mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-22 13:27:52 +08:00
修复前端的符号错误
This commit is contained in:
parent
91c9bc4fe3
commit
e76d25816a
@ -224,8 +224,11 @@ public class DeviceQuery {
|
|||||||
"UDP(udp传输),TCP-ACTIVE(tcp主动模式),TCP-PASSIVE(tcp被动模式)", required = true)
|
"UDP(udp传输),TCP-ACTIVE(tcp主动模式),TCP-PASSIVE(tcp被动模式)", required = true)
|
||||||
@PostMapping("/transport/{deviceId}/{streamMode}")
|
@PostMapping("/transport/{deviceId}/{streamMode}")
|
||||||
public void updateTransport(@PathVariable String deviceId, @PathVariable String streamMode){
|
public void updateTransport(@PathVariable String deviceId, @PathVariable String streamMode){
|
||||||
|
Assert.isTrue(streamMode.equalsIgnoreCase("UDP")
|
||||||
|
|| streamMode.equalsIgnoreCase("TCP-ACTIVE")
|
||||||
|
|| streamMode.equalsIgnoreCase("TCP-PASSIVE"), "数据流传输模式, 取值:UDP/TCP-ACTIVE/TCP-PASSIVE");
|
||||||
Device device = deviceService.getDeviceByDeviceId(deviceId);
|
Device device = deviceService.getDeviceByDeviceId(deviceId);
|
||||||
device.setStreamMode(streamMode);
|
device.setStreamMode(streamMode.toUpperCase());
|
||||||
deviceService.updateCustomDevice(device);
|
deviceService.updateCustomDevice(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,7 +236,7 @@ public class DeviceQuery {
|
|||||||
@Operation(summary = "添加设备信息", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
@Operation(summary = "添加设备信息", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||||
@Parameter(name = "device", description = "设备", required = true)
|
@Parameter(name = "device", description = "设备", required = true)
|
||||||
@PostMapping("/device/add")
|
@PostMapping("/device/add")
|
||||||
public void addDevice(Device device){
|
public void addDevice(@RequestBody Device device){
|
||||||
|
|
||||||
if (device == null || device.getDeviceId() == null) {
|
if (device == null || device.getDeviceId() == null) {
|
||||||
throw new ControllerException(ErrorCode.ERROR400);
|
throw new ControllerException(ErrorCode.ERROR400);
|
||||||
|
|||||||
@ -86,9 +86,9 @@ export default {
|
|||||||
showClose: true,
|
showClose: true,
|
||||||
message: error
|
message: error
|
||||||
})
|
})
|
||||||
}).finally(()=>[
|
}).finally(()=>{
|
||||||
this.locading = false
|
this.locading = false
|
||||||
])
|
})
|
||||||
}else {
|
}else {
|
||||||
this.$axios({
|
this.$axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@ -113,9 +113,9 @@ export default {
|
|||||||
showClose: true,
|
showClose: true,
|
||||||
message: error
|
message: error
|
||||||
})
|
})
|
||||||
}).finally(()=>[
|
}).finally(()=>{
|
||||||
this.locading = false
|
this.locading = false
|
||||||
])
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@ -279,9 +279,9 @@ export default {
|
|||||||
showClose: true,
|
showClose: true,
|
||||||
message: error
|
message: error
|
||||||
});
|
});
|
||||||
}).finally(()=>[
|
}).finally(()=>{
|
||||||
this.locading = false
|
this.locading = false
|
||||||
])
|
})
|
||||||
}else {
|
}else {
|
||||||
this.$axios({
|
this.$axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@ -308,9 +308,9 @@ export default {
|
|||||||
showClose: true,
|
showClose: true,
|
||||||
message: error
|
message: error
|
||||||
});
|
});
|
||||||
}).finally(()=>[
|
}).finally(()=>{
|
||||||
this.locading = false
|
this.locading = false
|
||||||
])
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -338,9 +338,9 @@ export default {
|
|||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}).finally(()=>[
|
}).finally(()=>{
|
||||||
this.locading = false
|
this.locading = false
|
||||||
])
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -363,9 +363,9 @@ export default {
|
|||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}).finally(()=>[
|
}).finally(()=>{
|
||||||
this.locading = false
|
this.locading = false
|
||||||
])
|
})
|
||||||
},
|
},
|
||||||
buildDeviceIdCode: function (deviceId){
|
buildDeviceIdCode: function (deviceId){
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user