Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qingdaoMuseumPlatform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
qingdaoMuseumPlatform
Commits
878a91c0
Commit
878a91c0
authored
Jun 30, 2026
by
PC-20251223ZVQQ\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IAQ页面接口
parent
b16d534d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
device.ts
src/biz/device.ts
+0
-0
device.ts
src/routers/device.ts
+14
-1
No files found.
src/biz/device.ts
View file @
878a91c0
This diff is collapsed.
Click to expand it.
src/routers/device.ts
View file @
878a91c0
...
...
@@ -38,6 +38,8 @@ export function setRouter(httpServer) {
/** 停止数据集成 */
httpServer
.
post
(
'/api/qdm/run/stop/schedule'
,
asyncHandler
(
stopSchedule
));
/** 获取环境监测设备 */
httpServer
.
post
(
'/api/qdm/device/envDevice'
,
asyncHandler
(
getEnvironmentDevices
));
/** 获取环境监测数据 */
httpServer
.
post
(
'/api/qdm/device/environment'
,
asyncHandler
(
getEnvironmentData
));
}
...
...
@@ -160,10 +162,21 @@ async function stopSchedule(req, res) {
}
/**
* 获取环境设备
*/
async
function
getEnvironmentDevices
(
req
,
res
)
{
let
reqConf
=
{};
let
{
}
=
eccReqParamater
(
reqConf
,
req
.
body
);
const
result
=
await
deviceBiz
.
getEnvironmentDevices
();
res
.
success
(
result
);
}
/**
* 获取环境监测数据
*/
async
function
getEnvironmentData
(
req
,
res
)
{
let
reqConf
=
{
regionGroup
:
'String'
,
regionType
:
'String'
,
regionKey
:
'Number'
,
deviceId
:
'
String
'
};
let
reqConf
=
{
regionGroup
:
'String'
,
regionType
:
'String'
,
regionKey
:
'Number'
,
deviceId
:
'
Array
'
};
const
NotMustHaveKeys
=
[
"regionGroup"
,
"regionType"
,
"regionKey"
,
"deviceId"
];
let
{
regionGroup
,
regionType
,
regionKey
,
deviceId
}
=
eccReqParamater
(
reqConf
,
req
.
body
,
NotMustHaveKeys
);
...
...
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