|
@@ -2342,21 +2342,19 @@ findUserByDept
|
|
|
showheatPlotting() {
|
|
|
this.$refs.supermapDialog1.showheatPlotting(this.latitude, this.longitude,this.windSpeed,this.windDirection)
|
|
|
},
|
|
|
- showUpdateYjYuAn() {
|
|
|
- listYuAn().then(res => {
|
|
|
- //关联预案列表
|
|
|
- if (res.code == 200) {
|
|
|
- this.guanLianYuAnList = res.data
|
|
|
- this.showGuanLianYuAnConfirm = true
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
updateYjYuAn() {
|
|
|
- if(this.eventStatusValue=='forest_event_status_1'){
|
|
|
+ if(this.eventStatusValue=='forest_event_status_1'||this.eventStatusValue=='forest_event_status_7') {
|
|
|
this.$message.error(`修改预案信息在签收后方可修改!`)
|
|
|
return
|
|
|
+ }else if(this.eventStatusValue=='forest_event_status_3'){
|
|
|
+ this.$message.error(`误报事件无法修改预案信息!`)
|
|
|
+ return
|
|
|
}else{
|
|
|
let param = { eventCode: this.eventCode, reserve: this.sendGuanLianYuAn }
|
|
|
+ if(this.sendGuanLianYuAn==''||this.sendGuanLianYuAn==null){
|
|
|
+ this.$message.error(`请选择预案信息!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
updateYjYuAn(param).then(res => {
|
|
|
//事件调整关联预案
|
|
|
if (res.code == 200) {
|
|
@@ -2368,6 +2366,32 @@ findUserByDept
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ showUpdateYjYuAn() {
|
|
|
+ listYuAn().then(res => {
|
|
|
+ //关联预案列表
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.guanLianYuAnList = res.data
|
|
|
+ this.showGuanLianYuAnConfirm = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // updateYjYuAn() {
|
|
|
+ // if(this.eventStatusValue=='forest_event_status_1'){
|
|
|
+ // this.$message.error(`修改预案信息在签收后方可修改!`)
|
|
|
+ // return
|
|
|
+ // }else{
|
|
|
+ // 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.showGuanLianYuAnConfirm = false
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // },
|
|
|
listResourceByWz(type) {
|
|
|
if (this.resourcesListCheck.indexOf(type) > -1) {
|
|
|
this.resourcesListCheck.splice(this.resourcesListCheck.indexOf(type), 1)
|