|
@@ -1875,23 +1875,33 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
updateYjYuAn() {
|
|
|
- if (this.eventStatusValue == 'forest_event_status_1') {
|
|
|
- this.$message.error(`修改预案信息在签收后方可修改!`)
|
|
|
- return
|
|
|
+ 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
|
|
|
+ reserve: this.sendGuanLianYuAn,
|
|
|
+ };
|
|
|
+ if (this.sendGuanLianYuAn == "" || this.sendGuanLianYuAn == null) {
|
|
|
+ this.$message.error(`请选择预案信息!`);
|
|
|
+ return;
|
|
|
}
|
|
|
- updateYjYuAn(param).then(res => {
|
|
|
+ updateYjYuAn(param).then((res) => {
|
|
|
//事件调整关联预案
|
|
|
if (res.code == 200) {
|
|
|
- this.$message.success(`预案调整成功!`)
|
|
|
- this.refreshEventDialog(this.eventCode)
|
|
|
- this.sendGuanLianYuAn = null
|
|
|
- this.showGuanLianYuAnConfirm = false
|
|
|
+ this.$message.success(`预案调整成功!`);
|
|
|
+ this.showEventDialog(that.eventCode,false);
|
|
|
+ this.sendGuanLianYuAn = null;
|
|
|
+ this.showGuanLianYuAnConfirm = false;
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
listResourceByWz(type) {
|