Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
51222fe2
Commit
51222fe2
authored
May 29, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加智慧办公回调信息
parent
f7dfd861
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
16 deletions
+17
-16
device-manager-ui/admin/src/views/login/login.vue
device-manager-ui/admin/src/views/login/login.vue
+2
-11
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
...als/xhx/module/device/service/impl/DeviceServiceImpl.java
+6
-5
device-manager/src/test/java/com/mortals/httpclient/device/DeviceController.http
.../java/com/mortals/httpclient/device/DeviceController.http
+9
-0
No files found.
device-manager-ui/admin/src/views/login/login.vue
View file @
51222fe2
...
@@ -41,16 +41,7 @@ import { createSocket } from "@/assets/utils/websocket";
...
@@ -41,16 +41,7 @@ import { createSocket } from "@/assets/utils/websocket";
export
default
{
export
default
{
name
:
"
login
"
,
name
:
"
login
"
,
created
()
{
created
()
{
// let obj = {};
// obj.lng = 104.21;
// obj.lat = 30.56;
// obj.address = "测试站点";
// obj.siteId = 2;
// this.originData.push(obj);
// this.$nextTick(() => {
// this.$refs.map1.refresh(this.originData);
// });
// window.location.href=process.env.VUE_APP_PORTAL_URL=='undefined'?'http://192.168.0.98:11072':process.env.VUE_APP_PORTAL_URL
},
},
methods
:
{
methods
:
{
login
()
{
login
()
{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
View file @
51222fe2
...
@@ -104,7 +104,6 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
...
@@ -104,7 +104,6 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
private
SiteService
siteService
;
private
SiteService
siteService
;
public
void
refresh
()
{
public
void
refresh
()
{
log
.
info
(
"开始初始化系统参数..."
);
log
.
info
(
"开始初始化系统参数..."
);
try
{
try
{
...
@@ -759,6 +758,7 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
...
@@ -759,6 +758,7 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
//判断当前站点与修改的站点不一致时候 更新设备站点关联信息
//判断当前站点与修改的站点不一致时候 更新设备站点关联信息
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getId
()))
{
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getId
()))
{
DeviceEntity
temp
=
this
.
get
(
entity
.
getId
(),
null
);
DeviceEntity
temp
=
this
.
get
(
entity
.
getId
(),
null
);
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getSiteId
()))
{
if
(!
entity
.
getSiteId
().
equals
(
temp
.
getSiteId
()))
{
if
(!
entity
.
getSiteId
().
equals
(
temp
.
getSiteId
()))
{
updateDeviceEntityBySite
(
entity
);
updateDeviceEntityBySite
(
entity
);
}
else
{
}
else
{
...
@@ -768,6 +768,7 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
...
@@ -768,6 +768,7 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
}
}
}
}
}
}
}
private
void
updateDeviceEntityBySite
(
DeviceEntity
entity
)
{
private
void
updateDeviceEntityBySite
(
DeviceEntity
entity
)
{
if
(
platFormType
.
equalsIgnoreCase
(
PlatformTypeEnum
.
STANDALONE
.
getValue
()))
{
if
(
platFormType
.
equalsIgnoreCase
(
PlatformTypeEnum
.
STANDALONE
.
getValue
()))
{
...
...
device-manager/src/test/java/com/mortals/httpclient/device/DeviceController.http
View file @
51222fe2
...
@@ -65,6 +65,15 @@ Content-Type: application/json
...
@@ -65,6 +65,15 @@ Content-Type: application/json
"siteId": 1
"siteId": 1
}
}
###设备告警统计查看
POST {{baseUrl}}/device/alarm/info/statlist
Accept: application/json
Content-Type: application/json
{
"siteId": 1
}
###设备编辑
###设备编辑
GET {{baseUrl}}/device/edit?id={{Device_id}}
GET {{baseUrl}}/device/edit?id={{Device_id}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment