@ -51,6 +51,15 @@ module.exports = dc => {
field: "alarm_sub_type",
autoIncrement: false
},
pomsStrucFactorId: {
type: DataTypes.JSONB,
allowNull: true,
defaultValue: null,
comment: "监听的告警类型",
primaryKey: false,
field: "poms_struc_factor_id",
receiverPepUserId: {
type: DataTypes.ARRAY(DataTypes.INTEGER),
@ -403,7 +403,11 @@ function pushModal (props) {
key={u.name + u.index}
field={u.value}
style={{ width: 695 }}
initValue={(editObj?.id && (editObj?.alarmSubType ? editObj?.alarmSubType[u.value] : u.data.map(v => v.id))) || []}
initValue={
editObj?.id ?
editObj?.alarmSubType ?
editObj?.alarmSubType[u.value] : u.data.map(v => v.id)
: []}
direction='horizontal'
showClear
>