mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-23 13:37:49 +08:00
Compare commits
4 Commits
c2287fd8a2
...
adca36010e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
adca36010e | ||
|
|
480750203b | ||
|
|
ebdbc780a9 | ||
|
|
34d1dbb399 |
@ -127,4 +127,4 @@ public class CachedBodyHttpServletRequest extends HttpServletRequestWrapper {
|
||||
return inputStream.read();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -365,7 +365,11 @@ public class CameraChannelService implements CommandLineRunner {
|
||||
public PageInfo<CameraChannel> queryList(Integer page, Integer count, String groupAlias, Boolean status, String geoCoordSys) {
|
||||
// 构建组织结构信息
|
||||
Group group = groupMapper.queryGroupByAlias(groupAlias);
|
||||
Assert.notNull(group, "组织结构不存在");
|
||||
if (group == null) {
|
||||
log.warn("[SY-查询摄像机列表, 只查询当前虚拟组织下的] 组织结构不存在: {}", groupAlias);
|
||||
return new PageInfo<>(Collections.emptyList());
|
||||
}
|
||||
|
||||
String groupDeviceId = group.getDeviceId();
|
||||
|
||||
// 构建分页
|
||||
@ -384,8 +388,10 @@ public class CameraChannelService implements CommandLineRunner {
|
||||
// 构建组织结构信息
|
||||
if (groupAlias != null) {
|
||||
CameraGroup group = groupMapper.queryGroupByAlias(groupAlias);
|
||||
Assert.notNull(group, "组织结构不存在");
|
||||
String groupDeviceId = group.getDeviceId();
|
||||
if (group == null) {
|
||||
log.warn("[SY-查询摄像机列表, 查询当前虚拟组织下以及全部子节点] 组织结构不存在: {}", groupAlias);
|
||||
return new PageInfo<>(Collections.emptyList());
|
||||
}
|
||||
// 获取所有子节点
|
||||
groupList = queryAllGroupChildren(group.getId(), group.getBusinessGroup());
|
||||
groupList.add(group);
|
||||
@ -425,7 +431,10 @@ public class CameraChannelService implements CommandLineRunner {
|
||||
public List<CameraCount> queryCountWithChild(String groupAlias) {
|
||||
// 构建组织结构信息
|
||||
CameraGroup group = groupMapper.queryGroupByAlias(groupAlias);
|
||||
Assert.notNull(group, "组织结构不存在");
|
||||
if (group == null) {
|
||||
log.warn("[SY-按组织结构统计摄像头数量] 组织结构不存在: {}", groupAlias);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
// 获取所有子节点
|
||||
List<CameraGroup> groupList = queryAllGroupChildren(group.getId(), group.getBusinessGroup());
|
||||
groupList.add(group);
|
||||
@ -641,7 +650,10 @@ public class CameraChannelService implements CommandLineRunner {
|
||||
public List<CameraChannel> queryListInBox(Double minLongitude, Double maxLongitude, Double minLatitude, Double maxLatitude, Integer level, String groupAlias, String geoCoordSys) {
|
||||
// 构建组织结构信息
|
||||
CameraGroup group = groupMapper.queryGroupByAlias(groupAlias);
|
||||
Assert.notNull(group, "组织结构不存在");
|
||||
if (group == null) {
|
||||
log.warn("[SY-框选] 组织结构不存在: {}", groupAlias);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
// 获取所有子节点
|
||||
List<CameraGroup> groupList = queryAllGroupChildren(group.getId(), group.getBusinessGroup());
|
||||
groupList.add(group);
|
||||
@ -675,7 +687,10 @@ public class CameraChannelService implements CommandLineRunner {
|
||||
public List<CameraChannel> queryListInCircle(Double centerLongitude, Double centerLatitude, Double radius, Integer level, String groupAlias, String geoCoordSys) {
|
||||
// 构建组织结构信息
|
||||
CameraGroup group = groupMapper.queryGroupByAlias(groupAlias);
|
||||
Assert.notNull(group, "组织结构不存在");
|
||||
if (group == null) {
|
||||
log.warn("[SY-圈选] 组织结构不存在: {}", groupAlias);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
// 获取所有子节点
|
||||
List<CameraGroup> groupList = queryAllGroupChildren(group.getId(), group.getBusinessGroup());
|
||||
groupList.add(group);
|
||||
@ -702,7 +717,10 @@ public class CameraChannelService implements CommandLineRunner {
|
||||
public List<CameraChannel> queryListInPolygon(List<Point> pointList, String groupAlias, Integer level, String geoCoordSys) {
|
||||
// 构建组织结构信息
|
||||
CameraGroup group = groupMapper.queryGroupByAlias(groupAlias);
|
||||
Assert.notNull(group, "组织结构不存在");
|
||||
if (group == null) {
|
||||
log.warn("[SY-多边形] 组织结构不存在: {}", groupAlias);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
// 获取所有子节点
|
||||
List<CameraGroup> groupList = queryAllGroupChildren(group.getId(), group.getBusinessGroup());
|
||||
groupList.add(group);
|
||||
|
||||
@ -13,10 +13,10 @@
|
||||
<div id="shared" style="margin-right: 20px;">
|
||||
<el-form ref="passwordForm" :rules="rules" status-icon label-width="80px">
|
||||
<el-form-item label="新密码" prop="newPassword">
|
||||
<el-input v-model="newPassword" autocomplete="off" />
|
||||
<el-input v-model="newPassword" autocomplete="off" type="password" />
|
||||
</el-form-item>
|
||||
<el-form-item label="确认密码" prop="confirmPassword">
|
||||
<el-input v-model="confirmPassword" autocomplete="off" />
|
||||
<el-input v-model="confirmPassword" autocomplete="off" type="password" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
@ -88,6 +88,14 @@ export default {
|
||||
}
|
||||
},
|
||||
onSubmit: function() {
|
||||
if (this.newPassword !== this.confirmPassword) {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: '两次输入密码不一致!',
|
||||
type: 'error'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.$store.dispatch('user/changePasswordForAdmin', {
|
||||
password: this.newPassword,
|
||||
userId: this.form.id
|
||||
|
||||
Loading…
Reference in New Issue
Block a user