|
|
|
@ -477,10 +477,10 @@ |
|
|
|
|
</template> |
|
|
|
|
<div id="CommandAlarmBtn" class="display-flex display-center"> |
|
|
|
|
<base-submit-btn v-if="AlertInformation.status == 2" icon="icon-warning_submit3" text="处警" |
|
|
|
|
@handleClick="savePlan(3)" |
|
|
|
|
@handleClick="savePlan(3,'chujing')" |
|
|
|
|
></base-submit-btn> |
|
|
|
|
<base-submit-btn v-if="AlertInformation.status == 3" icon="icon-warning_submit3" text="保存" |
|
|
|
|
@handleClick="savePlan(3)" |
|
|
|
|
@handleClick="savePlan(3,'save')" |
|
|
|
|
></base-submit-btn> |
|
|
|
|
<base-submit-btn v-if="AlertInformation.status == 2||AlertInformation.status == 3" |
|
|
|
|
icon="icon-warning_submit1" text="结警" |
|
|
|
@ -1418,12 +1418,17 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//结警,处警,保存 |
|
|
|
|
savePlan(val) { |
|
|
|
|
savePlan(val,type) { |
|
|
|
|
this.dispatchForm.id = this.rowId |
|
|
|
|
if (val == 3) { |
|
|
|
|
this.dispatchForm.status = val |
|
|
|
|
handleAlarmInfo(this.dispatchForm).then(response => { |
|
|
|
|
this.$message.success('处警成功') |
|
|
|
|
if(type=='chujing'){ |
|
|
|
|
this.$message.success('处警成功') |
|
|
|
|
} |
|
|
|
|
if(type=='save'){ |
|
|
|
|
this.$message.success('保存成功') |
|
|
|
|
} |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.closeDetail() |
|
|
|
|
this.requertAll() |
|
|
|
@ -1443,7 +1448,7 @@ export default { |
|
|
|
|
emergencyResourcesId:this.ResourcesId, |
|
|
|
|
} |
|
|
|
|
handleAlarmInfo(params).then(response => { |
|
|
|
|
this.$message.success('保存成功') |
|
|
|
|
this.$message.success('结警成功') |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.closeDetail() |
|
|
|
|
this.requertAll() |
|
|
|
|