Browse Source

通知时效

dev
wenlele 2 years ago
parent
commit
7fe6bd3d83
  1. 31
      web/client/src/sections/service/components/pushModal.jsx

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

@ -205,20 +205,29 @@ function pushModal (props) {
}
}
if (key == 'pomsProjectId') {
getProjectStructureList(values.pomsProjectId)//
for (let i = 0; i < projectPoms.length; i++) {
if (values.pomsProjectId == projectPoms[i].id) {
if (projectPoms[i].pepProjectId) {
getProjectStatusList()//
}
else {
setProjectStatus([{ construction_status: 'POMS', id: 'POMS' }])
form.current.setValue('timeType', ['POMS'])
form.current.validate()
if (values.pomsProjectId.length > 0) {
getProjectStructureList(values.pomsProjectId)//
let pepProjectId = []
let projectData = values.pomsProjectId?.map(v => {
let data = projectPoms?.filter(u => u.id == v) || []
if (data.length) {
pepProjectId.push(data[0].pepProjectId || 'POMS')
}
})
if (pepProjectId.length == 1 && pepProjectId.includes('POMS')) {
setProjectStatus([{ construction_status: 'POMS', id: 'POMS' }])
form.current.setValue('timeType', ['POMS'])
form.current.validate()
} else {
getProjectStatusList()//
}
} else {
setProjectStructure([])
form.current.setValue('strucId', [])
setProjectStatus([])
form.current.setValue('timeType', [])
}
}
if (key == 'alarmType') {
setSubType(field['alarmType'])

Loading…
Cancel
Save