|
@@ -197,32 +197,12 @@
|
|
|
@click="updateCentereventTEventcatalogueStatus('qs',false)">
|
|
|
签收
|
|
|
</el-button>
|
|
|
- <!--<el-button size="small"-->
|
|
|
- <!--icon="el-icon-question"-->
|
|
|
- <!--@click="updateCentereventTEventcatalogueStatus('wb',false)">-->
|
|
|
- <!--误报-->
|
|
|
- <!--</el-button>-->
|
|
|
- <!--<el-button size="small"-->
|
|
|
- <!--icon="el-icon-warning"-->
|
|
|
- <!--@click="updateCentereventTEventcatalogueStatus('cf',false)">-->
|
|
|
- <!--重复-->
|
|
|
- <!--</el-button>-->
|
|
|
</div>
|
|
|
<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_2'">
|
|
|
<div>
|
|
|
- <!--<el-button size="small"-->
|
|
|
- <!--icon="el-icon-question"-->
|
|
|
- <!--@click="updateCentereventTEventcatalogueStatus('wb',false)">-->
|
|
|
- <!--误报-->
|
|
|
- <!--</el-button>-->
|
|
|
- <!--<el-button size="small"-->
|
|
|
- <!--icon="el-icon-warning"-->
|
|
|
- <!--@click="updateCentereventTEventcatalogueStatus('cf',false)">-->
|
|
|
- <!--重复-->
|
|
|
- <!--</el-button>-->
|
|
|
<el-button size="small"
|
|
|
icon="el-icon-phone" style="text-align:left"
|
|
|
@click="updateCentereventTEventcatalogueStatus('ld',false)">
|
|
@@ -240,10 +220,15 @@
|
|
|
<div class="z-info-btm-input-btn"
|
|
|
v-else-if="eventStatusValue=='forest_event_status_5'&&statusFlag=='1'">
|
|
|
<el-button size="small"
|
|
|
- icon="el-icon-success" style="text-align:left"
|
|
|
+ icon="el-icon-success" style="text-align:left" v-if="eventType == 1"
|
|
|
@click="updateCentereventTEventcatalogueStatus('gd',false)">
|
|
|
填报
|
|
|
</el-button>
|
|
|
+ <el-button size="small"
|
|
|
+ icon="el-icon-success" style="text-align:left" v-if="eventType != 1"
|
|
|
+ @click="updateCentereventTEventcatalogueStatus('gd',true)">
|
|
|
+ 归档
|
|
|
+ </el-button>
|
|
|
<el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
|
|
|
</el-button>
|
|
|
</div>
|
|
@@ -272,7 +257,7 @@
|
|
|
class="top-dialog"
|
|
|
@close="cancelEventConfirm()">
|
|
|
<el-form label-width="80px">
|
|
|
- <el-form-item label="火灾半径" v-if="eventStatusButton=='qs'">
|
|
|
+ <el-form-item label="火灾半径" v-if="eventStatusButton=='qs' && eventTypeXl==null">
|
|
|
<el-input type="number" v-model="sendHuoZaiBanJing" placeholder="请输入火灾半径"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="deptNameitem">
|
|
@@ -1066,7 +1051,7 @@ export default {
|
|
|
sendDeptId: null,//签收部门/发起部门
|
|
|
sendDeptName: null,//签收部门/发起部门
|
|
|
sendEventType: null,//事件类型
|
|
|
- sendHuoZaiBanJing: null,//火灾报告
|
|
|
+ sendHuoZaiBanJing: 0,//火灾报告
|
|
|
sendGuanLianYuAn: null,//关联预案
|
|
|
sendUserFegin: [],//联系人
|
|
|
sendTaskSource: null,//任务来源
|
|
@@ -1517,7 +1502,7 @@ export default {
|
|
|
this.sendDeptName = null
|
|
|
this.sendUserFegin = []
|
|
|
this.sendEventType = null
|
|
|
- this.sendHuoZaiBanJing = null
|
|
|
+ this.sendHuoZaiBanJing = 0
|
|
|
this.sendGuanLianYuAn = null
|
|
|
this.longitude = null
|
|
|
this.latitude = null
|
|
@@ -1540,7 +1525,7 @@ export default {
|
|
|
this.sendDeptName = null
|
|
|
this.sendUserFegin = []
|
|
|
this.sendEventType = null
|
|
|
- this.sendHuoZaiBanJing = null
|
|
|
+ this.sendHuoZaiBanJing = 0
|
|
|
this.sendGuanLianYuAn = null
|
|
|
this.sendTaskTitle = null
|
|
|
this.sendTaskSource = null
|
|
@@ -1778,28 +1763,30 @@ export default {
|
|
|
})
|
|
|
|
|
|
} else if (eventStatus == 'gd') {
|
|
|
- let double = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; //数字和两位小数
|
|
|
- let number = /^[+]{0,1}(\d+)$/g; //正整数
|
|
|
+ if(that.eventType == 1){
|
|
|
+ let double = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; //数字和两位小数
|
|
|
+ let number = /^[+]{0,1}(\d+)$/g; //正整数
|
|
|
|
|
|
- if(!double.test(that.table2.areaTotal)){
|
|
|
- that.$message.error(`面积只能填写到小数后两位!`)
|
|
|
- return
|
|
|
- }
|
|
|
- if(!number.test(that.table2.peopleTotal)){
|
|
|
- that.$message.error(`人员请填写正整数!`)
|
|
|
- return
|
|
|
- }
|
|
|
- if(that.table2.forestComposition == '' || that.table2.forestComposition==null){
|
|
|
- that.$message.error(`林木组成不能为空!`)
|
|
|
- return
|
|
|
- }
|
|
|
- if(that.table2.forestToken == '' || that.table2.forestToken==null){
|
|
|
- that.$message.error(`林令不能为空!`)
|
|
|
- return
|
|
|
- }
|
|
|
+ if(!double.test(that.table2.areaTotal)){
|
|
|
+ that.$message.error(`面积只能填写到小数后两位!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!number.test(that.table2.peopleTotal)){
|
|
|
+ that.$message.error(`人员请填写正整数!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(that.table2.forestComposition == '' || that.table2.forestComposition==null){
|
|
|
+ that.$message.error(`林木组成不能为空!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(that.table2.forestToken == '' || that.table2.forestToken==null){
|
|
|
+ that.$message.error(`林令不能为空!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
if(that.table2.porosities == '' || that.table2.porosities==null){
|
|
|
- that.$message.error(`疏密度不能为空!`)
|
|
|
- return
|
|
|
+ that.$message.error(`疏密度不能为空!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//事件处理流程--归档
|
|
@@ -1839,10 +1826,6 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
if (eventStatus == 'qs') {
|
|
|
- if (that.sendHuoZaiBanJing == '' || that.sendHuoZaiBanJing == null) {
|
|
|
- that.$message.error(`请输入火灾半径!`)
|
|
|
- return
|
|
|
- }
|
|
|
if (that.sendEventType == '' || that.sendEventType == null) {
|
|
|
that.$message.error(`请选择事件类型!`)
|
|
|
return
|