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
a11cbed3
Commit
a11cbed3
authored
May 21, 2026
by
PC-20251223ZVQQ\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一类页面和二类页面部分解析数据
parent
4456e3b0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
region.ts
src/biz/region.ts
+0
-0
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+5
-0
device.ts
src/routers/device.ts
+8
-5
No files found.
src/biz/region.ts
View file @
a11cbed3
This diff is collapsed.
Click to expand it.
src/config/mysqlTableConfig.ts
View file @
a11cbed3
...
...
@@ -23,6 +23,11 @@ export const TablesConfig = [
allowNull
:
false
,
comment
:
'所属楼栋'
},
max_capacity
:
{
type
:
DataTypes
.
NUMBER
(
10
,
2
),
allowNull
:
false
,
comment
:
'最大承载量'
},
sort_order
:
{
type
:
DataTypes
.
INTEGER
,
allowNull
:
false
,
...
...
src/routers/device.ts
View file @
a11cbed3
...
...
@@ -21,6 +21,9 @@ export function setRouter(httpServer) {
/** 运行分析 */
httpServer
.
post
(
'/api/zc/run/analysis'
,
asyncHandler
(
getRunAnalysis
));
httpServer
.
post
(
'/api/zc/run/analysis/building'
,
asyncHandler
(
getRunAnalysisByBuilding
));
httpServer
.
post
(
'/api/zc/run/analysis/Floor'
,
asyncHandler
(
getRunAnalysisByFloor
));
/**运行分析-弹窗 */
httpServer
.
post
(
'/api/zc/run/analysis/pop'
,
asyncHandler
(
getRunAnalysisPop
));
...
...
@@ -87,8 +90,8 @@ async function deviceFaultPush(req, res) {
async
function
getRunAnalysisByBuilding
(
req
,
res
)
{
let
reqConf
=
{
regionType
:
'String'
};
const
NotMustHaveKeys
=
[];
let
{
t
ype
}
=
eccReqParamater
(
reqConf
,
req
.
body
,
NotMustHaveKeys
);
const
result
=
await
regionBiz
.
getRunAnalysis
(
""
,
t
ype
);
let
{
regionT
ype
}
=
eccReqParamater
(
reqConf
,
req
.
body
,
NotMustHaveKeys
);
const
result
=
await
regionBiz
.
getRunAnalysis
(
""
,
regionT
ype
);
res
.
success
(
result
);
}
...
...
@@ -96,10 +99,10 @@ async function deviceFaultPush(req, res) {
* 运行分析-楼层
*/
async
function
getRunAnalysisByFloor
(
req
,
res
)
{
let
reqConf
=
{
region
Name
:
'String'
};
let
reqConf
=
{
region
Key
:
'String'
};
const
NotMustHaveKeys
=
[];
let
{
name
}
=
eccReqParamater
(
reqConf
,
req
.
body
,
NotMustHaveKeys
);
const
result
=
await
regionBiz
.
getRunAnalysis
(
name
,
""
);
let
{
regionKey
}
=
eccReqParamater
(
reqConf
,
req
.
body
,
NotMustHaveKeys
);
const
result
=
await
regionBiz
.
getRunAnalysis
(
regionKey
,
""
);
res
.
success
(
result
);
}
...
...
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