|
@@ -1579,23 +1579,24 @@ export default {
|
|
|
* */
|
|
|
async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
|
|
|
this.eventStatusButton = eventStatus
|
|
|
+ let that=this
|
|
|
|
|
|
if (!isSend) { //事件弹窗
|
|
|
if (eventStatus == 'qs') { //签收
|
|
|
- this.eventConfirmTitle = '事件签收'
|
|
|
+ that.eventConfirmTitle = '事件签收'
|
|
|
let param = {
|
|
|
- parentId: this.eventType
|
|
|
+ parentId: that.eventType
|
|
|
}
|
|
|
await listSJfl(param).then(res => {
|
|
|
//事件类型
|
|
|
if (res.code == 200) {
|
|
|
- this.eventTypeList = res.data
|
|
|
+ that.eventTypeList = res.data
|
|
|
}
|
|
|
})
|
|
|
await listYuAn().then(res => {
|
|
|
//关联预案
|
|
|
if (res.code == 200) {
|
|
|
- this.guanLianYuAnList = res.data
|
|
|
+ that.guanLianYuAnList = res.data
|
|
|
}
|
|
|
})
|
|
|
await userFeginlist().then(res => {
|
|
@@ -1604,162 +1605,162 @@ export default {
|
|
|
that.userFeginList = res.data
|
|
|
}
|
|
|
})
|
|
|
- await selectByeventCode(this.eventCode).then(res => {
|
|
|
+ await selectByeventCode(that.eventCode).then(res => {
|
|
|
//签收部门
|
|
|
if (res.code == 200) {
|
|
|
- this.deptOptions = res.data
|
|
|
- this.deptNameitem = '签收部门'
|
|
|
+ that.deptOptions = res.data
|
|
|
+ that.deptNameitem = '签收部门'
|
|
|
}
|
|
|
})
|
|
|
- this.showEventConfirm = true
|
|
|
+ that.showEventConfirm = true
|
|
|
} else if (eventStatus == 'wb') { //误报
|
|
|
- this.eventConfirmTitle = '事件误报'
|
|
|
- await selectByeventCode(this.eventCode).then(res => {
|
|
|
+ that.eventConfirmTitle = '事件误报'
|
|
|
+ await selectByeventCode(that.eventCode).then(res => {
|
|
|
//签收部门
|
|
|
if (res.code == 200) {
|
|
|
- this.deptOptions = res.data
|
|
|
- this.deptNameitem = '签收部门'
|
|
|
+ that.deptOptions = res.data
|
|
|
+ that.deptNameitem = '签收部门'
|
|
|
}
|
|
|
})
|
|
|
- this.showEventConfirm = true
|
|
|
+ that.showEventConfirm = true
|
|
|
} else if (eventStatus == 'cf') { //重复
|
|
|
- this.eventConfirmTitle = '事件重复'
|
|
|
- await selectByeventCode(this.eventCode).then(res => {
|
|
|
+ that.eventConfirmTitle = '事件重复'
|
|
|
+ await selectByeventCode(that.eventCode).then(res => {
|
|
|
//签收部门
|
|
|
if (res.code == 200) {
|
|
|
- this.deptOptions = res.data
|
|
|
- this.deptNameitem = '签收部门'
|
|
|
+ that.deptOptions = res.data
|
|
|
+ that.deptNameitem = '签收部门'
|
|
|
}
|
|
|
})
|
|
|
- this.showEventConfirm = true
|
|
|
+ that.showEventConfirm = true
|
|
|
} else if (eventStatus == 'ld') { //联动
|
|
|
- await selectByeventCode(this.eventCode).then(res => {
|
|
|
+ await selectByeventCode(that.eventCode).then(res => {
|
|
|
//签收部门
|
|
|
if (res.code == 200) {
|
|
|
- this.deptOptions = res.data
|
|
|
- this.deptNameitem = '发起部门'
|
|
|
+ that.deptOptions = res.data
|
|
|
+ that.deptNameitem = '发起部门'
|
|
|
}
|
|
|
})
|
|
|
- this.eventConfirmTitle = '事件联动'
|
|
|
+ that.eventConfirmTitle = '事件联动'
|
|
|
/** 查询部门树结构 */
|
|
|
await deptTreeselect().then(response => {
|
|
|
- this.deptOptionsLiandong = response.data
|
|
|
+ that.deptOptionsLiandong = response.data
|
|
|
})
|
|
|
- this.showEventConfirm = true
|
|
|
+ that.showEventConfirm = true
|
|
|
} else if (eventStatus == 'gd') { //归档填报
|
|
|
- this.showEventConfirm_gd = true
|
|
|
+ that.showEventConfirm_gd = true
|
|
|
}
|
|
|
} else { //事件提交后台
|
|
|
if (eventStatus == 'ld') {
|
|
|
//事件处理流程--联动
|
|
|
- let array = this.$refs.LiandongDept.getCheckedNodes()
|
|
|
+ let array = that.$refs.LiandongDept.getCheckedNodes()
|
|
|
if (array != null && array.length > 0) {
|
|
|
for (let i = 0; i < array.length; i++) {
|
|
|
- this.sendLianDongDept.push({
|
|
|
+ that.sendLianDongDept.push({
|
|
|
'taskDeptId': array[i].id,
|
|
|
'taskDeptName': array[i].label
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
- if (this.sendTaskSource == '' || this.sendTaskSource == null) {
|
|
|
- this.$message.error(`请选择任务来源!`)
|
|
|
+ if (that.sendTaskSource == '' || that.sendTaskSource == null) {
|
|
|
+ that.$message.error(`请选择任务来源!`)
|
|
|
return
|
|
|
}
|
|
|
- if (this.sendTaskContent == '' || this.sendTaskContent == null) {
|
|
|
- this.$message.error(`请输入任务内容!`)
|
|
|
+ if (that.sendTaskContent == '' || that.sendTaskContent == null) {
|
|
|
+ that.$message.error(`请输入任务内容!`)
|
|
|
return
|
|
|
}
|
|
|
- if (this.sendTaskTitle == '' || this.sendTaskTitle == null) {
|
|
|
- this.$message.error(`请输入任务标题!`)
|
|
|
+ if (that.sendTaskTitle == '' || that.sendTaskTitle == null) {
|
|
|
+ that.$message.error(`请输入任务标题!`)
|
|
|
return
|
|
|
}
|
|
|
- if (this.sendLianDongDept == '' || this.sendLianDongDept == null) {
|
|
|
- this.$message.error(`请选择任务联动部门!`)
|
|
|
+ if (that.sendLianDongDept == '' || that.sendLianDongDept == null) {
|
|
|
+ that.$message.error(`请选择任务联动部门!`)
|
|
|
return
|
|
|
}
|
|
|
- if (this.sendDeptId == '' || this.sendDeptId == null || this.sendDeptName == '' || this
|
|
|
+ if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || this
|
|
|
.sendDeptName == null) {
|
|
|
- this.$message.error(`请选择任务发起部门!`)
|
|
|
+ that.$message.error(`请选择任务发起部门!`)
|
|
|
return
|
|
|
}
|
|
|
let param = {
|
|
|
- sendDeptId: this.sendDeptId,
|
|
|
- sendDept: this.sendDeptName,
|
|
|
- eventCode: this.eventCode,
|
|
|
- longitude: this.longitude,
|
|
|
- latitude: this.latitude,
|
|
|
- taskTitle: this.sendTaskTitle,
|
|
|
- taskSource: this.sendTaskSource,
|
|
|
- taskContent: this.sendTaskContent,
|
|
|
- taskDept: this.sendLianDongDept
|
|
|
+ sendDeptId: that.sendDeptId,
|
|
|
+ sendDept: that.sendDeptName,
|
|
|
+ eventCode: that.eventCode,
|
|
|
+ longitude: that.longitude,
|
|
|
+ latitude: that.latitude,
|
|
|
+ taskTitle: that.sendTaskTitle,
|
|
|
+ taskSource: that.sendTaskSource,
|
|
|
+ taskContent: that.sendTaskContent,
|
|
|
+ taskDept: that.sendLianDongDept
|
|
|
}
|
|
|
sendTask(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.$message.success(`联动发起成功!`)
|
|
|
- this.refreshEventDialog(this.eventCode)
|
|
|
- this.cancelEventConfirm_send()
|
|
|
- this.showEventConfirm = false
|
|
|
+ that.$message.success(`联动发起成功!`)
|
|
|
+ that.refreshEventDialog(that.eventCode)
|
|
|
+ that.cancelEventConfirm_send()
|
|
|
+ that.showEventConfirm = false
|
|
|
}
|
|
|
})
|
|
|
|
|
|
} else if (eventStatus == 'gd') {
|
|
|
//事件处理流程--归档
|
|
|
let param = {
|
|
|
- deptId: this.deptId,
|
|
|
- eventCode: this.eventCode,
|
|
|
+ deptId: that.deptId,
|
|
|
+ eventCode: that.eventCode,
|
|
|
eventStatus: eventStatus,
|
|
|
- id: this.eventId,
|
|
|
+ id: that.eventId,
|
|
|
czlx: '',
|
|
|
forestFireLoss: {
|
|
|
- eventId: this.eventCode,
|
|
|
- table1: this.table1
|
|
|
+ eventId: that.eventCode,
|
|
|
+ table1: that.table1
|
|
|
},
|
|
|
fireInformation: {
|
|
|
- eventId: this.eventCode,
|
|
|
- table2: this.table2
|
|
|
+ eventId: that.eventCode,
|
|
|
+ table2: that.table2
|
|
|
},
|
|
|
- array: this.regionalFlagObj.array
|
|
|
+ array: that.regionalFlagObj.array
|
|
|
}
|
|
|
updateCentereventTEventcatalogueStatus(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.$message.success(`处理成功!`)
|
|
|
- this.refreshEvent(this.eventCode)
|
|
|
- this.cancelEventConfirm_send()
|
|
|
- this.showEventConfirm_gd = false
|
|
|
- this.$emit('getEventList', this.calendarDay)
|
|
|
- this.$emit('getTodayEvents', this.calendarDay)
|
|
|
+ that.$message.success(`处理成功!`)
|
|
|
+ that.refreshEvent(that.eventCode)
|
|
|
+ that.cancelEventConfirm_send()
|
|
|
+ that.showEventConfirm_gd = false
|
|
|
+ that.$emit('getEventList', that.calendarDay)
|
|
|
+ that.$emit('getTodayEvents', that.calendarDay)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
if (eventStatus == 'qs' || eventStatus == 'wb' || eventStatus == 'cf') {
|
|
|
- if (this.sendDeptId == '' || this.sendDeptId == null || this.sendDeptName == '' || this
|
|
|
+ if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || this
|
|
|
.sendDeptName == null) {
|
|
|
- this.$message.error(`请选择部门!`)
|
|
|
+ that.$message.error(`请选择部门!`)
|
|
|
return
|
|
|
}
|
|
|
} else {
|
|
|
- this.sendDeptId = this.deptId
|
|
|
+ that.sendDeptId = that.deptId
|
|
|
}
|
|
|
//事件处理流程
|
|
|
let param = {
|
|
|
- eventCode: this.eventCode,
|
|
|
- deptId: this.sendDeptId,
|
|
|
- deptName: this.sendDeptName,
|
|
|
+ eventCode: that.eventCode,
|
|
|
+ deptId: that.sendDeptId,
|
|
|
+ deptName: that.sendDeptName,
|
|
|
eventStatus: eventStatus,
|
|
|
- eventType: this.sendEventType,
|
|
|
- id: this.eventId,
|
|
|
+ eventType: that.sendEventType,
|
|
|
+ id: that.eventId,
|
|
|
czlx: '',
|
|
|
- fireRadius: this.sendHuoZaiBanJing,
|
|
|
- reserve: this.sendGuanLianYuAn
|
|
|
+ fireRadius: that.sendHuoZaiBanJing,
|
|
|
+ reserve: that.sendGuanLianYuAn
|
|
|
}
|
|
|
updateCentereventTEventcatalogueStatus(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.$message.success(`处理成功!`)
|
|
|
- this.refreshEvent(this.eventCode)
|
|
|
- this.cancelEventConfirm_send()
|
|
|
- this.showEventConfirm = false
|
|
|
- this.$emit('getEventList', this.calendarDay)
|
|
|
- this.$emit('getTodayEvents', this.calendarDay)
|
|
|
+ that.$message.success(`处理成功!`)
|
|
|
+ that.refreshEvent(that.eventCode)
|
|
|
+ that.cancelEventConfirm_send()
|
|
|
+ that.showEventConfirm = false
|
|
|
+ that.$emit('getEventList', that.calendarDay)
|
|
|
+ that.$emit('getTodayEvents', that.calendarDay)
|
|
|
}
|
|
|
})
|
|
|
}
|