|
@@ -843,7 +843,7 @@ export default {
|
|
|
dicts: ['task_source'],
|
|
|
watch: {
|
|
|
filterText(val) {
|
|
|
- this.$refs.LiandongDept.filter(val);
|
|
|
+ this.$refs.LiandongDept.filter(val)
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
@@ -854,7 +854,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- filterText:'',//树搜索
|
|
|
+ filterText: '',//树搜索
|
|
|
/** *****************事件流程***************************/
|
|
|
deptNameitem: '签收部门',
|
|
|
sendDeptId: null,//签收部门/发起部门
|
|
@@ -862,7 +862,7 @@ export default {
|
|
|
sendEventType: null,//事件类型
|
|
|
sendHuoZaiBanJing: null,//火灾报告
|
|
|
sendGuanLianYuAn: null,//关联预案
|
|
|
- sendTaskSource:null,//任务来源
|
|
|
+ sendTaskSource: null,//任务来源
|
|
|
sendTaskTitle: null,//联动标题
|
|
|
sendTaskContent: null,//联动内容
|
|
|
sendLianDongDept: [],//联动部门
|
|
@@ -968,7 +968,7 @@ export default {
|
|
|
showEventConfirm: false,//事件签收弹窗
|
|
|
showGuanLianYuAnConfirm: false,//调整关联预案弹窗
|
|
|
showEventConfirm_gd: false,//事件火险报告弹窗
|
|
|
- address:null,//事件上报地址
|
|
|
+ address: null,//事件上报地址
|
|
|
eventStatusValue: null,//事件状态
|
|
|
eventId: null,//事件ID
|
|
|
eventType: null,//事件类型-大类
|
|
@@ -1048,20 +1048,20 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
updateYjYuAn() {
|
|
|
- let param = {eventCode: this.eventCode, reserve: this.sendGuanLianYuAn}
|
|
|
+ let param = { eventCode: this.eventCode, reserve: this.sendGuanLianYuAn }
|
|
|
updateYjYuAn(param).then(res => {
|
|
|
//事件调整关联预案
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success(`预案调整成功!`)
|
|
|
this.refreshEventDialog(this.eventCode)
|
|
|
- this.sendGuanLianYuAn=null
|
|
|
+ this.sendGuanLianYuAn = null
|
|
|
this.showGuanLianYuAnConfirm = false
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
listResourceByWz(type) {
|
|
|
//搜索物资
|
|
|
- let param = {longitude: this.longitude, latitude: this.latitude, type: type, radius: this.radius}
|
|
|
+ let param = { longitude: this.longitude, latitude: this.latitude, type: type, radius: this.radius }
|
|
|
listResourceByWz(param).then(res => {
|
|
|
if (res.data != null && res.data.length > 0) {
|
|
|
var markersList = []
|
|
@@ -1117,20 +1117,20 @@ export default {
|
|
|
},
|
|
|
// 返回图片列表
|
|
|
assetTypeAnImage(filePath) {
|
|
|
- let imageList=[]
|
|
|
- if(filePath!=null&&filePath.length>0){
|
|
|
+ let imageList = []
|
|
|
+ if (filePath != null && filePath.length > 0) {
|
|
|
for (let i = 0; i < filePath.length; i++) {
|
|
|
//获取最后一个.的位置
|
|
|
var index = filePath[i].lastIndexOf('.')
|
|
|
//获取后缀
|
|
|
var ext = filePath[i].substr(index + 1)
|
|
|
let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
|
|
|
- if(aa){
|
|
|
+ if (aa) {
|
|
|
imageList.push(filePath[i])
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- return imageList
|
|
|
+ return imageList
|
|
|
},
|
|
|
// 判断是否为图片
|
|
|
isAssetTypeAnImage(filePath) {
|
|
@@ -1297,7 +1297,7 @@ export default {
|
|
|
if (!isSend) {//事件弹窗
|
|
|
if (eventStatus == 'qs') {//签收
|
|
|
this.eventConfirmTitle = '事件签收'
|
|
|
- let param = {parentId: this.eventType}
|
|
|
+ let param = { parentId: this.eventType }
|
|
|
await listSJfl(param).then(res => {
|
|
|
//事件类型
|
|
|
if (res.code == 200) {
|
|
@@ -1361,26 +1361,26 @@ export default {
|
|
|
let array = this.$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})
|
|
|
+ this.sendLianDongDept.push({ 'taskDeptId': array[i].id, 'taskDeptName': array[i].label })
|
|
|
}
|
|
|
}
|
|
|
- if(this.sendTaskSource==""||this.sendTaskSource==null){
|
|
|
+ if (this.sendTaskSource == '' || this.sendTaskSource == null) {
|
|
|
this.$message.error(`请选择任务来源!`)
|
|
|
return
|
|
|
}
|
|
|
- if(this.sendTaskContent==""||this.sendTaskContent==null){
|
|
|
+ if (this.sendTaskContent == '' || this.sendTaskContent == null) {
|
|
|
this.$message.error(`请输入任务内容!`)
|
|
|
return
|
|
|
}
|
|
|
- if(this.sendTaskTitle==""||this.sendTaskTitle==null){
|
|
|
+ if (this.sendTaskTitle == '' || this.sendTaskTitle == null) {
|
|
|
this.$message.error(`请输入任务标题!`)
|
|
|
return
|
|
|
}
|
|
|
- if(this.sendLianDongDept==""||this.sendLianDongDept==null){
|
|
|
+ if (this.sendLianDongDept == '' || this.sendLianDongDept == null) {
|
|
|
this.$message.error(`请选择任务联动部门!`)
|
|
|
return
|
|
|
}
|
|
|
- if(this.sendDeptId==""||this.sendDeptId==null||this.sendDeptName==""||this.sendDeptName==null){
|
|
|
+ if (this.sendDeptId == '' || this.sendDeptId == null || this.sendDeptName == '' || this.sendDeptName == null) {
|
|
|
this.$message.error(`请选择任务发起部门!`)
|
|
|
return
|
|
|
}
|
|
@@ -1408,22 +1408,10 @@ export default {
|
|
|
//事件处理流程--归档
|
|
|
let param = {
|
|
|
eventCode: this.eventCode,
|
|
|
- deptId: this.sendDeptId,
|
|
|
- deptName: this.sendDeptName,
|
|
|
eventStatus: eventStatus,
|
|
|
- eventType: this.sendEventType,
|
|
|
id: this.eventId,
|
|
|
- czlx: '',
|
|
|
- fireRadius: this.sendHuoZaiBanJing,
|
|
|
- reserve: this.sendGuanLianYuAn,
|
|
|
- forestFireLoss: {
|
|
|
- eventId: this.eventCode,
|
|
|
- table1: this.table1
|
|
|
- },
|
|
|
- fireInformation: {
|
|
|
- eventId: this.eventCode,
|
|
|
- table2: this.table2
|
|
|
- }
|
|
|
+ forestFireLoss: { eventId: this.eventCode, table1: this.table1 },
|
|
|
+ fireInformation: { eventId: this.eventCode, table2: this.table2 }
|
|
|
}
|
|
|
updateCentereventTEventcatalogueStatus(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -1436,8 +1424,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- if(eventStatus == 'qs'||eventStatus == 'wb'||eventStatus == 'cf'){
|
|
|
- if(this.sendDeptId==""||this.sendDeptId==null||this.sendDeptName==""||this.sendDeptName==null){
|
|
|
+ if (eventStatus == 'qs' || eventStatus == 'wb' || eventStatus == 'cf') {
|
|
|
+ if (this.sendDeptId == '' || this.sendDeptId == null || this.sendDeptName == '' || this.sendDeptName == null) {
|
|
|
this.$message.error(`请选择部门!`)
|
|
|
return
|
|
|
}
|
|
@@ -1469,12 +1457,12 @@ export default {
|
|
|
},
|
|
|
filterNode(value, data) {
|
|
|
//树搜索
|
|
|
- if (!value) return true;
|
|
|
- return data.label.indexOf(value) !== -1;
|
|
|
+ if (!value) return true
|
|
|
+ return data.label.indexOf(value) !== -1
|
|
|
},
|
|
|
sendEventLog() {
|
|
|
//日志发送
|
|
|
- let param = {eventCode: this.eventCode, conext: this.eventLog}
|
|
|
+ let param = { eventCode: this.eventCode, conext: this.eventLog }
|
|
|
sendEventLog(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success(`发送成功!`)
|
|
@@ -1494,7 +1482,7 @@ export default {
|
|
|
this.eventCode = eventCode
|
|
|
let that = this
|
|
|
//获取事件详情
|
|
|
- getEventDetail({eventCode: eventCode}).then(res => {
|
|
|
+ getEventDetail({ eventCode: eventCode }).then(res => {
|
|
|
this.eventDialog = true
|
|
|
this.eventLogList = res.data.eventlog//日志列表
|
|
|
this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
|
|
@@ -1546,7 +1534,7 @@ export default {
|
|
|
this.eventCode = eventCode
|
|
|
let that = this
|
|
|
//刷新--事件详情
|
|
|
- getEventDetail({eventCode: eventCode}).then(res => {
|
|
|
+ getEventDetail({ eventCode: eventCode }).then(res => {
|
|
|
this.eventDialog = true
|
|
|
this.eventLogList = res.data.eventlog
|
|
|
this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
|
|
@@ -1555,8 +1543,8 @@ export default {
|
|
|
this.eventStatusValue = res.data.catalogue[0].eventStatusValue
|
|
|
this.eventType = res.data.catalogue[0].eventType
|
|
|
this.eventId = res.data.catalogue[0].id
|
|
|
- this.latitude=res.data.catalogue[0].latitude
|
|
|
- this.longitude=res.data.catalogue[0].longitude
|
|
|
+ this.latitude = res.data.catalogue[0].latitude
|
|
|
+ this.longitude = res.data.catalogue[0].longitude
|
|
|
let markersMap = {
|
|
|
lng: 124.59,
|
|
|
lat: 43.02,
|
|
@@ -1599,7 +1587,7 @@ export default {
|
|
|
},
|
|
|
refreshEventDialog(eventCode) {
|
|
|
//刷新--事件日志
|
|
|
- getEventDetail({eventCode: eventCode}).then(res => {
|
|
|
+ getEventDetail({ eventCode: eventCode }).then(res => {
|
|
|
this.eventLogList = res.data.eventlog
|
|
|
this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
|
|
|
})
|
|
@@ -1832,6 +1820,4 @@ table tr td input:hover {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
</style>
|