|
|
|
@ -99,6 +99,12 @@ def get_warning_list():
|
|
|
|
|
}
|
|
|
|
|
return jsonify(Utils.true_return(data=data))
|
|
|
|
|
|
|
|
|
|
# 获取预警数量接口
|
|
|
|
|
@home_router.route("/home_warning_num", methods=["POST"])
|
|
|
|
|
def get_warning_num():
|
|
|
|
|
num = BllWarning().execute("select count(*) num from rms_warning").fetchone().num
|
|
|
|
|
return jsonify(Utils.true_return(data=num))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 修改预警状态,根据预警id进行
|
|
|
|
|
@home_router.route("/update_warning_tp", methods=["GET", "POST"])
|
|
|
|
|