diff --git a/src/views/emergen_cyrescue/emergency_report/duty_management/duty_log/components/list.vue b/src/views/emergen_cyrescue/emergency_report/duty_management/duty_log/components/list.vue index 1ecd8f7..f991f7f 100644 --- a/src/views/emergen_cyrescue/emergency_report/duty_management/duty_log/components/list.vue +++ b/src/views/emergen_cyrescue/emergency_report/duty_management/duty_log/components/list.vue @@ -17,12 +17,11 @@ - - + + - @@ -113,9 +100,10 @@ import Pagination from '@/components/Pagination' import { requestFN } from '@/utils/request' import { MessageBox, Message } from 'element-ui' +import SelectZhiBanUser from '../components/selectZhiBanUser.vue' export default { - components: { Pagination }, + components: { SelectZhiBanUser, Pagination }, data() { return { listLoading: false, @@ -143,10 +131,10 @@ export default { { required: true, message: '交接事项不能为空', trigger: 'blur' } ], DUTY_PERSONNEL: [ - { required: true, message: '值班人员不能为空', trigger: 'blur' } + { required: true, message: '值班人员不能为空', trigger: 'change' } ], SHIFT_PERSONNEL: [ - { required: true, message: '接班人员不能为空', trigger: 'blur' } + { required: true, message: '接班人员不能为空', trigger: 'change' } ] }, form: { @@ -155,7 +143,9 @@ export default { START_TIME: '', END_TIME: '', DUTY_PERSONNEL: '', + DUTY_PERSONNEL_NAME: '', SHIFT_PERSONNEL: '', + SHIFT_PERSONNEL_NAME: '', DUTY_RECORD: '', HANDLING_SITUATION: '', HANDOVER_ITEMS: '' @@ -226,7 +216,9 @@ export default { START_TIME: data.START_TIME, END_TIME: data.END_TIME, DUTY_PERSONNEL: data.DUTY_PERSONNEL, + DUTY_PERSONNEL_NAME: data.DUTY_PERSONNEL_NAME, SHIFT_PERSONNEL: data.SHIFT_PERSONNEL, + SHIFT_PERSONNEL_NAME: data.SHIFT_PERSONNEL_NAME, DUTY_RECORD: data.DUTY_RECORD, HANDLING_SITUATION: data.HANDLING_SITUATION, HANDOVER_ITEMS: data.HANDOVER_ITEMS @@ -243,7 +235,9 @@ export default { START_TIME: '', END_TIME: '', DUTY_PERSONNEL: '', + DUTY_PERSONNEL_NAME: '', SHIFT_PERSONNEL: '', + SHIFT_PERSONNEL_NAME: '', DUTY_RECORD: '', HANDLING_SITUATION: '', HANDOVER_ITEMS: '' @@ -342,7 +336,22 @@ export default { .catch((e) => { this.listLoading = false }) + }, + openDutyPerson() { + this.$refs.dutyPerson.init() + }, + openShiftPeople() { + this.$refs.shiftPeople.init() + }, + dutyPerson(e) { + this.form.DUTY_PERSONNEL = e.USER_ID + this.form.DUTY_PERSONNEL_NAME = e.NAME + }, + shiftPeople(e) { + this.form.SHIFT_PERSONNEL = e.USER_ID + this.form.SHIFT_PERSONNEL_NAME = e.NAME } + } } diff --git a/src/views/emergen_cyrescue/emergency_report/duty_management/duty_log/components/selectZhiBanUser.vue b/src/views/emergen_cyrescue/emergency_report/duty_management/duty_log/components/selectZhiBanUser.vue new file mode 100644 index 0000000..e30c26b --- /dev/null +++ b/src/views/emergen_cyrescue/emergency_report/duty_management/duty_log/components/selectZhiBanUser.vue @@ -0,0 +1,196 @@ + + + + + diff --git a/src/views/emergen_cyrescue/emergency_report/incident_report/components/list.vue b/src/views/emergen_cyrescue/emergency_report/incident_report/components/list.vue index df54b3d..6aff28c 100644 --- a/src/views/emergen_cyrescue/emergency_report/incident_report/components/list.vue +++ b/src/views/emergen_cyrescue/emergency_report/incident_report/components/list.vue @@ -187,10 +187,10 @@ - + - + @@ -198,7 +198,7 @@ - + @@ -549,6 +549,20 @@ export default { EVENT_SITUATION: '', RESCUE_SITUATION: '' }, + rescueFormRules: { + RESCUE_SITUATION: [ + { required: true, message: '请选择救援情况', trigger: 'blur' } + ], + EVENT_SITUATION: [ + { required: true, message: '请选择是否执预案', trigger: 'blur' } + ], + FIRERESERVEPLAN_ID: [ + { required: true, message: '请选择应急预案', trigger: 'blur' } + ], + HIERARCHICALRESPONSE_ID: [ + { required: true, message: '请选择响应级别', trigger: 'blur' } + ] + }, total: 0, varList: [], EVENT_NAME: '', diff --git a/src/views/emergen_cyrescue/incident_management/process_management/components/list.vue b/src/views/emergen_cyrescue/incident_management/process_management/components/list.vue index 4856bf1..094a453 100644 --- a/src/views/emergen_cyrescue/incident_management/process_management/components/list.vue +++ b/src/views/emergen_cyrescue/incident_management/process_management/components/list.vue @@ -2,7 +2,7 @@
- +