救援新增不救援选项

liujun0703-新项目开发
liujun 2024-08-13 10:41:53 +08:00
parent 29e6d5cd4f
commit 4a07455a1d
1 changed files with 104 additions and 63 deletions

View File

@ -25,7 +25,14 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<el-table ref="multipleTable" :data="varList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row> <el-table
ref="multipleTable"
:data="varList"
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
tooltip-effect="dark"
border
fit
highlight-current-row>
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column type="index" label="序号" width="50" align="center"/> <el-table-column type="index" label="序号" width="50" align="center"/>
<el-table-column prop="ACCESS_MODE" label="接入方式" width="180"/> <el-table-column prop="ACCESS_MODE" label="接入方式" width="180"/>
@ -38,11 +45,21 @@
<el-table-column :show-overflow-tooltip="true" prop="EVENT_SITUATION_NAME" label="预案是否启动"/> <el-table-column :show-overflow-tooltip="true" prop="EVENT_SITUATION_NAME" label="预案是否启动"/>
<el-table-column label="操作" align="center" width="500"> <el-table-column label="操作" align="center" width="500">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button v-if="row.RESCUE_SITUATION !== '1'" type="primary" size="mini" @click="handleRescue(row.ID)"></el-button> <el-button v-if="row.RESCUE_SITUATION !== '1'" type="primary" size="mini" @click="handleRescue(row.ID)">
<el-button type="primary" icon="el-icon-document" size="mini" @click="goList('detail', row.ID, '1')">查看</el-button> 是否救援
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.ID, true)">生成专报</el-button> </el-button>
<el-button type="primary" icon="el-icon-document" size="mini" @click="goList('detail', row.ID, '1')">查看
</el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.ID, true)">生成专报
</el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.ID)"></el-button> <el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.ID)"></el-button>
<el-button v-if="false" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.ID,row.EVENT_NAME)"></el-button> <el-button
v-if="false"
type="danger"
icon="el-icon-delete"
size="mini"
@click="handleDelete(row.ID,row.EVENT_NAME)">删除
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -117,7 +134,12 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="纬度" prop="LATITUDE"> <el-form-item label="纬度" prop="LATITUDE">
<div style="display: flex"> <div style="display: flex">
<el-input v-model="form.LATITUDE" placeholder="请输入纬度" disabled style="width: 100%" @focus="handleMap"/> <el-input
v-model="form.LATITUDE"
placeholder="请输入纬度"
disabled
style="width: 100%"
@focus="handleMap"/>
<el-button style="margin-left:10px" @click="handleMap"> <el-button style="margin-left:10px" @click="handleMap">
<span class="svg-container"> <span class="svg-container">
<svg-icon icon-class="international"/> <svg-icon icon-class="international"/>
@ -192,7 +214,10 @@
</el-col> </el-col>
<el-col v-if="rescueForm.EVENT_SITUATION === '1'" :span="12"> <el-col v-if="rescueForm.EVENT_SITUATION === '1'" :span="12">
<el-form-item label="应急预案" prop="FIRERESERVEPLAN_ID"> <el-form-item label="应急预案" prop="FIRERESERVEPLAN_ID">
<el-select v-model="rescueForm.FIRERESERVEPLAN_ID" placeholder="请选择应急预案..." @change="handlePlanChange"> <el-select
v-model="rescueForm.FIRERESERVEPLAN_ID"
placeholder="请选择应急预案..."
@change="handlePlanChange">
<el-option <el-option
v-for="plan in FirereServePlan" v-for="plan in FirereServePlan"
:key="plan.id" :key="plan.id"
@ -357,7 +382,12 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="纬度" prop="LATITUDE"> <el-form-item label="纬度" prop="LATITUDE">
<div style="display: flex"> <div style="display: flex">
<el-input v-model="reportForm.LATITUDE" placeholder="请输入纬度" disabled style="width: 100%" @focus="handleMap"/> <el-input
v-model="reportForm.LATITUDE"
placeholder="请输入纬度"
disabled
style="width: 100%"
@focus="handleMap"/>
<el-button style="margin-left:10px" @click="handleMap"> <el-button style="margin-left:10px" @click="handleMap">
<span class="svg-container"> <span class="svg-container">
<svg-icon icon-class="international"/> <svg-icon icon-class="international"/>
@ -465,7 +495,13 @@
<div class="map-flex"> <div class="map-flex">
<div class="map-lable">关键词</div> <div class="map-lable">关键词</div>
<div style="flex:1;"> <div style="flex:1;">
<el-autocomplete v-model="addressKeyword" :fetch-suggestions="querySearch" :trigger-on-focus="false" placeholder="请输入详细地址" style="width:100%" @select="handleSelect" /> <el-autocomplete
v-model="addressKeyword"
:fetch-suggestions="querySearch"
:trigger-on-focus="false"
placeholder="请输入详细地址"
style="width:100%"
@select="handleSelect"/>
</div> </div>
</div> </div>
</bm-control> </bm-control>
@ -487,6 +523,7 @@ import Pagination from '@/components/Pagination'
import { requestFN } from '@/utils/request' import { requestFN } from '@/utils/request'
import { Treeselect } from '@riophae/vue-treeselect' import { Treeselect } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css' import '@riophae/vue-treeselect/dist/vue-treeselect.css'
export default { export default {
components: { Treeselect, Pagination }, components: { Treeselect, Pagination },
data() { data() {
@ -674,14 +711,18 @@ export default {
}, },
sendSMS(e) { sendSMS(e) {
requestFN('/major/registration/sendSMS', requestFN('/major/registration/sendSMS',
{ planId: e.FIRERESERVEPLAN_ID, {
planId: e.FIRERESERVEPLAN_ID,
responseId: e.FIRERESERVEPLAN_ID, responseId: e.FIRERESERVEPLAN_ID,
registrationId: e.REGISTRATION_ID, registrationId: e.REGISTRATION_ID,
eventSituation: e.EVENT_SITUATION, eventSituation: e.EVENT_SITUATION,
rescueSituation: e.RESCUE_SITUATION rescueSituation: e.RESCUE_SITUATION
}) })
.then((data) => { .then((data) => {
//
if (this.rescueForm.RESCUE_SITUATION === '1') {
this.$router.push({ path: '/emergen_cyrescue/incident_management', query: { a: '' }}) this.$router.push({ path: '/emergen_cyrescue/incident_management', query: { a: '' }})
}
}).catch((e) => { }).catch((e) => {
console.error('获取树形数据失败', e) console.error('获取树形数据失败', e)
}) })