|
@@ -213,7 +213,8 @@
|
|
|
<el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
|
|
|
</el-button>
|
|
|
</div>
|
|
|
- <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_5'&&dataStatus=='1'">
|
|
|
+ <div class="z-info-btm-input-btn"
|
|
|
+ v-else-if="eventStatusValue=='forest_event_status_5'&&dataStatus=='1'">
|
|
|
<el-button size="small" v-if="eventType=='1'"
|
|
|
icon="el-icon-success" style="text-align:left"
|
|
|
@click="updateCentereventTEventcatalogueStatus('gd',false)">
|
|
@@ -326,6 +327,15 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="联系人" v-if="eventStatusButton=='qs'">
|
|
|
+ <el-select multiple collapse-tags v-model='sendUserFegin' placeholder='请选择联系人!' clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="item in userFeginList"
|
|
|
+ :label="item.nickName"
|
|
|
+ :value="item.phonenumber"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-button size="mini" type="primary" v-if="eventStatusButton=='qs'"
|
|
|
@click="updateCentereventTEventcatalogueStatus('qs',true)">签收
|
|
|
</el-button>
|
|
@@ -1011,6 +1021,7 @@ export default {
|
|
|
sendEventType: null,//事件类型
|
|
|
sendHuoZaiBanJing: null,//火灾报告
|
|
|
sendGuanLianYuAn: null,//关联预案
|
|
|
+ sendUserFegin: [],//联系人
|
|
|
sendTaskSource: null,//任务来源
|
|
|
sendTaskTitle: null,//联动标题
|
|
|
sendTaskContent: null,//联动内容
|
|
@@ -1019,6 +1030,7 @@ export default {
|
|
|
guanLianYuAnList: [],//关联预案列表
|
|
|
deptOptions: [],//签收部门
|
|
|
deptOptionsLiandong: [],//联动部门
|
|
|
+ userFeginList: [],//联系人列表
|
|
|
eventStatusButton: null,//流程按钮标识
|
|
|
eventConfirmTitle: null,//弹窗标题 ---签收 误报 重复
|
|
|
defaultProps: {
|
|
@@ -1398,6 +1410,7 @@ export default {
|
|
|
this.sendEventType = null
|
|
|
this.sendHuoZaiBanJing = null
|
|
|
this.sendGuanLianYuAn = null
|
|
|
+ this.sendUserFegin = []
|
|
|
this.longitude = null
|
|
|
this.latitude = null
|
|
|
this.sendTaskTitle = null
|
|
@@ -1411,6 +1424,7 @@ export default {
|
|
|
this.eventStatusButton = null//流程按钮标识
|
|
|
this.eventConfirmTitle = null//流程按钮标识
|
|
|
this.resourcesListCheck = []
|
|
|
+ this.userFeginList = [] //联系人列表
|
|
|
},
|
|
|
cancelEventConfirm_send() {
|
|
|
//清空表单数据
|
|
@@ -1419,6 +1433,7 @@ export default {
|
|
|
this.sendEventType = null
|
|
|
this.sendHuoZaiBanJing = null
|
|
|
this.sendGuanLianYuAn = null
|
|
|
+ this.sendUserFegin = []
|
|
|
this.sendTaskTitle = null
|
|
|
this.sendTaskSource = null
|
|
|
this.sendTaskContent = null
|
|
@@ -1427,6 +1442,7 @@ export default {
|
|
|
this.guanLianYuAnList = []//关联预案列表
|
|
|
this.deptOptions = []//签收部门
|
|
|
this.deptOptionsLiandong = []//联动部门
|
|
|
+ this.userFeginList = [] //联系人列表
|
|
|
},
|
|
|
cancelEventConfirm_gd() {
|
|
|
//关闭事件火险报告窗口
|
|
@@ -1536,181 +1552,188 @@ export default {
|
|
|
* */
|
|
|
async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
|
|
|
this.eventStatusButton = eventStatus
|
|
|
-
|
|
|
+ let that = this
|
|
|
if (!isSend) {//事件弹窗
|
|
|
if (eventStatus == 'qs') {//签收
|
|
|
- this.eventConfirmTitle = '事件签收'
|
|
|
- let param = { parentId: this.eventType }
|
|
|
+ that.eventConfirmTitle = '事件签收'
|
|
|
+ let param = { 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 selectByeventCode(this.eventCode).then(res => {
|
|
|
+ await userFeginlist().then(res => {
|
|
|
+ //联系人列表
|
|
|
+ if (res.code == 200) {
|
|
|
+ that.userFeginList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ 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({ 'taskDeptId': array[i].id, 'taskDeptName': array[i].label })
|
|
|
+ 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.sendDeptName == null) {
|
|
|
- this.$message.error(`请选择任务发起部门!`)
|
|
|
+ if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || that.sendDeptName == null) {
|
|
|
+ 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 = {}
|
|
|
- if (this.eventType != '1') {
|
|
|
+ if (that.eventType != '1') {
|
|
|
param = {
|
|
|
- deptId: this.deptId,
|
|
|
- eventCode: this.eventCode,
|
|
|
+ deptId: that.deptId,
|
|
|
+ eventCode: that.eventCode,
|
|
|
eventStatus: eventStatus,
|
|
|
- id: this.eventId,
|
|
|
+ id: that.eventId,
|
|
|
czlx: '',
|
|
|
- array: this.regionalFlagObj.array
|
|
|
+ array: that.regionalFlagObj.array
|
|
|
}
|
|
|
} else {
|
|
|
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 },
|
|
|
- fireInformation: { eventId: this.eventCode, table2: this.table2 },
|
|
|
- array: this.regionalFlagObj.array
|
|
|
+ forestFireLoss: { eventId: that.eventCode, table1: that.table1 },
|
|
|
+ fireInformation: { eventId: that.eventCode, table2: that.table2 },
|
|
|
+ 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.bigEventTypeId, this.smallEventTypeId)
|
|
|
+ that.$message.success(`处理成功!`)
|
|
|
+ that.refreshEvent(that.eventCode)
|
|
|
+ that.cancelEventConfirm_send()
|
|
|
+ that.showEventConfirm_gd = false
|
|
|
+ that.$emit('getEventList', that.calendarDay, that.bigEventTypeId, that.smallEventTypeId)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
if (eventStatus == 'qs' || eventStatus == 'wb' || eventStatus == 'cf') {
|
|
|
- if (this.sendDeptId == '' || this.sendDeptId == null || this.sendDeptName == '' || this.sendDeptName == null) {
|
|
|
- this.$message.error(`请选择部门!`)
|
|
|
+ if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || that.sendDeptName == null) {
|
|
|
+ that.$message.error(`请选择部门!`)
|
|
|
return
|
|
|
}
|
|
|
- if (this.eventType != '1') {
|
|
|
- this.sendEventType = this.smallEventTypeId
|
|
|
+ if (that.eventType != '1') {
|
|
|
+ that.sendEventType = that.smallEventTypeId
|
|
|
}
|
|
|
- }else{
|
|
|
- this.sendDeptId= this.deptId
|
|
|
+ } else {
|
|
|
+ that.sendDeptId = that.deptId
|
|
|
}
|
|
|
//事件处理流程
|
|
|
let param = {
|
|
|
- eventCode: this.eventCode,
|
|
|
- deptId: this.sendDeptId,
|
|
|
- deptName: this.sendDeptName,
|
|
|
+ phones: that.sendUserFegin,
|
|
|
+ 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.bigEventTypeId, this.smallEventTypeId)
|
|
|
+ that.$message.success(`处理成功!`)
|
|
|
+ that.refreshEvent(that.eventCode)
|
|
|
+ that.cancelEventConfirm_send()
|
|
|
+ that.showEventConfirm = false
|
|
|
+ that.$emit('getEventList', that.calendarDay, that.bigEventTypeId, that.smallEventTypeId)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -1723,7 +1746,12 @@ export default {
|
|
|
},
|
|
|
sendEventLog() {
|
|
|
//日志发送
|
|
|
- let param = { eventCode: this.eventCode, logContent: this.eventLog,operation:"bus_oper_type_2",operationType:"log_oper_type_1" }
|
|
|
+ let param = {
|
|
|
+ eventCode: this.eventCode,
|
|
|
+ logContent: this.eventLog,
|
|
|
+ operation: 'bus_oper_type_2',
|
|
|
+ operationType: 'log_oper_type_1'
|
|
|
+ }
|
|
|
sendEventLog(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success(`发送成功!`)
|
|
@@ -1736,8 +1764,8 @@ export default {
|
|
|
this.$refs.eventLogUpload.eventLogUpload(this.eventCode)
|
|
|
},
|
|
|
cancelEventShow() {
|
|
|
- this.deptId=null
|
|
|
- this.dataStatus=null
|
|
|
+ this.deptId = null
|
|
|
+ this.dataStatus = null
|
|
|
console.log('关闭事件弹窗')
|
|
|
this.eventLogList = []
|
|
|
},
|