一类页面和二类页面部分解析数据

parent 4456e3b0
...@@ -23,6 +23,11 @@ export const TablesConfig = [ ...@@ -23,6 +23,11 @@ export const TablesConfig = [
allowNull: false, allowNull: false,
comment: '所属楼栋' comment: '所属楼栋'
}, },
max_capacity: {
type: DataTypes.NUMBER(10, 2),
allowNull: false,
comment: '最大承载量'
},
sort_order: { sort_order: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
......
...@@ -20,6 +20,9 @@ export function setRouter(httpServer) { ...@@ -20,6 +20,9 @@ export function setRouter(httpServer) {
/** 运行分析 */ /** 运行分析 */
httpServer.post('/api/zc/run/analysis', asyncHandler(getRunAnalysis)); 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)); httpServer.post('/api/zc/run/analysis/pop', asyncHandler(getRunAnalysisPop));
...@@ -87,8 +90,8 @@ async function deviceFaultPush(req, res) { ...@@ -87,8 +90,8 @@ async function deviceFaultPush(req, res) {
async function getRunAnalysisByBuilding(req, res) { async function getRunAnalysisByBuilding(req, res) {
let reqConf = {regionType:'String'}; let reqConf = {regionType:'String'};
const NotMustHaveKeys = []; const NotMustHaveKeys = [];
let { type } = eccReqParamater(reqConf, req.body, NotMustHaveKeys); let { regionType } = eccReqParamater(reqConf, req.body, NotMustHaveKeys);
const result = await regionBiz.getRunAnalysis("", type); const result = await regionBiz.getRunAnalysis("", regionType);
res.success(result); res.success(result);
} }
...@@ -96,10 +99,10 @@ async function deviceFaultPush(req, res) { ...@@ -96,10 +99,10 @@ async function deviceFaultPush(req, res) {
* 运行分析-楼层 * 运行分析-楼层
*/ */
async function getRunAnalysisByFloor(req, res) { async function getRunAnalysisByFloor(req, res) {
let reqConf = {regionName:'String'}; let reqConf = {regionKey:'String'};
const NotMustHaveKeys = []; const NotMustHaveKeys = [];
let { name } = eccReqParamater(reqConf, req.body, NotMustHaveKeys); let { regionKey } = eccReqParamater(reqConf, req.body, NotMustHaveKeys);
const result = await regionBiz.getRunAnalysis(name, ""); const result = await regionBiz.getRunAnalysis(regionKey, "");
res.success(result); res.success(result);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment