Browse Source

模块字段添加

dev
wenlele 2 years ago
parent
commit
ec59bd6c0a
  1. 9
      api/app/lib/models/alarm_push_config.js
  2. 6
      web/client/src/sections/service/components/pushModal.jsx

9
api/app/lib/models/alarm_push_config.js

@ -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",
autoIncrement: false
},
receiverPepUserId: {
type: DataTypes.ARRAY(DataTypes.INTEGER),
allowNull: true,

6
web/client/src/sections/service/components/pushModal.jsx

@ -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
>

Loading…
Cancel
Save