Browse Source

(*)消防功能提交

master
peng.peng 1 year ago
parent
commit
d7aa955893
  1. 38
      scripts/0.0.12/fire_alarm.sql
  2. 4
      super-screen/client/src/sections/water-prevention/components/emergency-right-top.js

38
scripts/0.0.12/fire_alarm.sql

@ -0,0 +1,38 @@
create table fire_alarm
(
id serial
constraint fire_alarm_pk
primary key,
"createTime" timestamp(6) with time zone,
location text,
scene varchar(255),
fire_material varchar(255),
level varchar(255),
state integer default 1,
longitude varchar(50),
latitude varchar(50),
type varchar(50),
type_param varchar(50)
);
comment on table fire_alarm is '智慧消防大屏 告警上报表';
comment on column fire_alarm."createTime" is '创建时间';
comment on column fire_alarm.location is '地点';
comment on column fire_alarm.scene is '场所';
comment on column fire_alarm.fire_material is '燃烧物质';
comment on column fire_alarm.level is '危险等级';
comment on column fire_alarm.state is '事件状态:1 进行中 2已结束';
comment on column fire_alarm.type is '警情类型';
comment on column fire_alarm.type_param is '警情类型对应的不同属性 ';
create unique index fire_alarm_id_uindex
on fire_alarm (id);

4
super-screen/client/src/sections/water-prevention/components/emergency-right-top.js

@ -37,7 +37,9 @@ function CitySafty(props) {
}
return <div className='flex-row'>
<div className='item_right_left'>{x.name}</div>
<div className='item_right_right'>{value}</div>
<div className='item_right_right'>{value}
{x.name.indexOf('人数') > -1 && <span style={{ marginLeft: 30 }}></span>}
</div>
</div>
})
}

Loading…
Cancel
Save