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

parent 4456e3b0
......@@ -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,
......
......@@ -20,6 +20,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 { type } = eccReqParamater(reqConf, req.body, NotMustHaveKeys);
const result = await regionBiz.getRunAnalysis("", type);
let { regionType } = eccReqParamater(reqConf, req.body, NotMustHaveKeys);
const result = await regionBiz.getRunAnalysis("", regionType);
res.success(result);
}
......@@ -96,10 +99,10 @@ async function deviceFaultPush(req, res) {
* 运行分析-楼层
*/
async function getRunAnalysisByFloor(req, res) {
let reqConf = {regionName:'String'};
let reqConf = {regionKey:'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);
}
......
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