应急接报->值班管理->值班日志
parent
f5cee70663
commit
957ca790a6
|
@ -0,0 +1,244 @@
|
|||
<template>
|
||||
<div>
|
||||
<div class="app-container">
|
||||
<div class="level-title">
|
||||
<h1>救援队伍详情</h1>
|
||||
</div>
|
||||
<div class="mb-20">
|
||||
<table class="table-ui">
|
||||
<tr>
|
||||
<td class="tbg">救援队名称</td>
|
||||
<td>{{ form.RESCUE_TEAM_NAME }}</td>
|
||||
<td class="tbg">地址</td>
|
||||
<td>{{ form.RESCUE_TEAM_ADDRESS }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">类型</td>
|
||||
<td>{{ form.TYPE_NAME }}</td>
|
||||
<td class="tbg">级别</td>
|
||||
<td>{{ form.LEVEL }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">密级</td>
|
||||
<td>{{ form.SECURITY_LEVEL }}</td>
|
||||
<td class="tbg">所属区域</td>
|
||||
<td>{{ form.AREA_NAME }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">值班电话</td>
|
||||
<td>{{ form.DUTY_PHONE }}</td>
|
||||
<td class="tbg">传真</td>
|
||||
<td>{{ form.FAX }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">邮编</td>
|
||||
<td>{{ form.POSTAL_CODE }}</td>
|
||||
<td class="tbg">成立时间</td>
|
||||
<td>{{ form.ESTABLISHMENT_DATE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">经度</td>
|
||||
<td>{{ form.LONGITUDE }}</td>
|
||||
<td class="tbg">纬度</td>
|
||||
<td>{{ form.LATITUDE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">负责人</td>
|
||||
<td>{{ form.RESPONSIBLE_PERSON }}</td>
|
||||
<td class="tbg">负责人办公电话</td>
|
||||
<td>{{ form.RESPONSIBLE_OFFICE_PHONE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">负责人移动电话</td>
|
||||
<td>{{ form.RESPONSIBLE_MOBILE_PHONE }}</td>
|
||||
<td class="tbg">负责人住宅电话</td>
|
||||
<td>{{ form.RESPONSIBLE_HOME_PHONE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">联系人</td>
|
||||
<td>{{ form.CONTACT_PERSON }}</td>
|
||||
<td class="tbg">联系人办公电话</td>
|
||||
<td>{{ form.CONTACT_OFFICE_PHONE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">联系人移动电话</td>
|
||||
<td>{{ form.CONTACT_MOBILE_PHONE }}</td>
|
||||
<td class="tbg">联系人住宅电话</td>
|
||||
<td>{{ form.CONTACT_HOME_PHONE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">联系人电子邮箱</td>
|
||||
<td>{{ form.CONTACT_EMAIL }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">主管单位名称</td>
|
||||
<td>{{ form.SUPERVISING_UNIT_NAME }}</td>
|
||||
<td class="tbg">主管单位地址</td>
|
||||
<td>{{ form.SUPERVISING_UNIT_ADDRESS }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">总人数</td>
|
||||
<td>{{ form.TOTAL_PERSONNEL }}</td>
|
||||
<td class="tbg">应急通信方式</td>
|
||||
<td>{{ form.EMERGENCY_COMMUNICATION_MODE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">预计准备时间</td>
|
||||
<td>{{ form.EXPECTED_PREPARATION_TIME }}</td>
|
||||
<td class="tbg">集合出发地点</td>
|
||||
<td>{{ form.ASSEMBLY_DEPARTURE_LOCATION }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">主要职责</td>
|
||||
<td colspan="3">{{ form.MAIN_DUTIES }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">主要装备描述</td>
|
||||
<td colspan="3">{{ form.MAIN_EQUIPMENT_DESCRIPTION }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">专长描述</td>
|
||||
<td colspan="3">{{ form.SPECIALTY_DESCRIPTION }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">资质等级</td>
|
||||
<td colspan="3">{{ form.QUALIFICATION_LEVEL }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">应急救援经历</td>
|
||||
<td colspan="3">{{ form.EMERGENCY_RESCUE_EXPERIENCE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">备注</td>
|
||||
<td colspan="3">{{ form.REMARK }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-height" />
|
||||
<div class="ui-foot">
|
||||
<el-button type="primary" @click="goBack">返回基本信息</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { requestFN } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
RESCUE_TEAM_NAME: '',
|
||||
RESCUE_TEAM_ADDRESS: '',
|
||||
TYPE: '',
|
||||
TYPE_NAME: '',
|
||||
LEVEL: '',
|
||||
LEVEL_NAME: '',
|
||||
SECURITY_LEVEL: '',
|
||||
SECURITY_LEVEL_NAME: '',
|
||||
AREA: '',
|
||||
AREA_NAME: '',
|
||||
DUTY_PHONE: '',
|
||||
FAX: '',
|
||||
POSTAL_CODE: '',
|
||||
LONGITUDE: '',
|
||||
LATITUDE: '',
|
||||
RESPONSIBLE_PERSON: '',
|
||||
RESPONSIBLE_OFFICE_PHONE: '',
|
||||
RESPONSIBLE_MOBILE_PHONE: '',
|
||||
RESPONSIBLE_HOME_PHONE: '',
|
||||
CONTACT_PERSON: '',
|
||||
CONTACT_OFFICE_PHONE: '',
|
||||
CONTACT_MOBILE_PHONE: '',
|
||||
CONTACT_HOME_PHONE: '',
|
||||
CONTACT_EMAIL: '',
|
||||
TOTAL_PERSONNEL: '',
|
||||
ESTABLISHMENT_DATE: '',
|
||||
EMERGENCY_COMMUNICATION_MODE: '',
|
||||
SUPERVISING_UNIT_NAME: '',
|
||||
SUPERVISING_UNIT_ADDRESS: '',
|
||||
MAIN_DUTIES: '',
|
||||
MAIN_EQUIPMENT_DESCRIPTION: '',
|
||||
SPECIALTY_DESCRIPTION: '',
|
||||
QUALIFICATION_LEVEL: '',
|
||||
EMERGENCY_RESCUE_EXPERIENCE: '',
|
||||
EXPECTED_PREPARATION_TIME: '',
|
||||
ASSEMBLY_DEPARTURE_LOCATION: '',
|
||||
REMARK: ''
|
||||
},
|
||||
Id: ''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (this.$parent.CASE_ID) {
|
||||
this.Id = this.$parent.CASE_ID
|
||||
this.getDetail(this.Id)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$parent.activeName = 'list'
|
||||
},
|
||||
getDetail(Id) {
|
||||
const params = { Id }
|
||||
requestFN('/major/emergency/detail', params).then((response) => {
|
||||
const data = response.msg
|
||||
this.form = {
|
||||
RESCUE_TEAM_NAME: data.RESCUE_TEAM_NAME,
|
||||
RESCUE_TEAM_ADDRESS: data.RESCUE_TEAM_ADDRESS,
|
||||
TYPE: data.TYPE,
|
||||
TYPE_NAME: data.TYPE_NAME,
|
||||
LEVEL: data.LEVEL,
|
||||
LEVEL_NAME: data.LEVEL_NAME,
|
||||
SECURITY_LEVEL: data.SECURITY_LEVEL,
|
||||
SECURITY_LEVEL_NAME: data.SECURITY_LEVEL_NAME,
|
||||
AREA: data.AREA,
|
||||
AREA_NAME: data.AREA_NAME,
|
||||
DUTY_PHONE: data.DUTY_PHONE,
|
||||
FAX: data.FAX,
|
||||
POSTAL_CODE: data.POSTAL_CODE,
|
||||
LONGITUDE: data.LONGITUDE,
|
||||
LATITUDE: data.LATITUDE,
|
||||
RESPONSIBLE_PERSON: data.RESPONSIBLE_PERSON,
|
||||
RESPONSIBLE_OFFICE_PHONE: data.RESPONSIBLE_OFFICE_PHONE,
|
||||
RESPONSIBLE_MOBILE_PHONE: data.RESPONSIBLE_MOBILE_PHONE,
|
||||
RESPONSIBLE_HOME_PHONE: data.RESPONSIBLE_HOME_PHONE,
|
||||
CONTACT_PERSON: data.CONTACT_PERSON,
|
||||
CONTACT_OFFICE_PHONE: data.CONTACT_OFFICE_PHONE,
|
||||
CONTACT_MOBILE_PHONE: data.CONTACT_MOBILE_PHONE,
|
||||
CONTACT_HOME_PHONE: data.CONTACT_HOME_PHONE,
|
||||
CONTACT_EMAIL: data.CONTACT_EMAIL,
|
||||
TOTAL_PERSONNEL: data.TOTAL_PERSONNEL,
|
||||
ESTABLISHMENT_DATE: data.ESTABLISHMENT_DATE,
|
||||
EMERGENCY_COMMUNICATION_MODE: data.EMERGENCY_COMMUNICATION_MODE,
|
||||
SUPERVISING_UNIT_NAME: data.SUPERVISING_UNIT_NAME,
|
||||
SUPERVISING_UNIT_ADDRESS: data.SUPERVISING_UNIT_ADDRESS,
|
||||
MAIN_DUTIES: data.MAIN_DUTIES,
|
||||
MAIN_EQUIPMENT_DESCRIPTION: data.MAIN_EQUIPMENT_DESCRIPTION,
|
||||
SPECIALTY_DESCRIPTION: data.SPECIALTY_DESCRIPTION,
|
||||
QUALIFICATION_LEVEL: data.QUALIFICATION_LEVEL,
|
||||
EMERGENCY_RESCUE_EXPERIENCE: data.EMERGENCY_RESCUE_EXPERIENCE,
|
||||
EXPECTED_PREPARATION_TIME: data.EXPECTED_PREPARATION_TIME,
|
||||
ASSEMBLY_DEPARTURE_LOCATION: data.ASSEMBLY_DEPARTURE_LOCATION,
|
||||
REMARK: data.REMARK,
|
||||
Id: data.ID
|
||||
}
|
||||
}).catch((e) => {
|
||||
console.error('获取详情数据失败', e)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
.table-ui
|
||||
td
|
||||
line-height: 34px
|
||||
.tbg
|
||||
width: 200px
|
||||
.ui-foot
|
||||
text-align: center
|
||||
margin-top: 20px
|
||||
</style>
|
|
@ -0,0 +1,846 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<div class="filter-container">
|
||||
<el-form inline>
|
||||
<el-form-item label="机构名称:" prop="RESCUE_TEAM_NAME">
|
||||
<el-input v-model="RESCUE_TEAM_NAME" placeholder="机构名称" class="filter-item" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">搜索</el-button>
|
||||
<el-button class="filter-item" type="default" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</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-column type="selection" width="55" align="center" />
|
||||
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||
<el-table-column prop="RESCUE_TEAM_NAME" label="队伍名称" width="180" />
|
||||
<el-table-column prop="TYPE_NAME" label="队伍类型" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="LEVEL" label="队伍级别" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="RESCUE_TEAM_ADDRESS" label="队伍地址" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="RESPONSIBLE_OFFICE_PHONE" label="负责人办公电话" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="RESPONSIBLE_MOBILE_PHONE" label="负责人移动电话" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="RESPONSIBLE_HOME_PHONE" label="负责人固定电话" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="OPERATETIME" label="修改时间" show-overflow-tooltip="true" />
|
||||
|
||||
<el-table-column label="操作" align="center" width="300">
|
||||
<template slot-scope="{row}">
|
||||
<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)">编辑</el-button>
|
||||
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.ID,row.RESCUE_TEAM_NAME)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<template>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button type="danger" icon="el-icon-delete" plain @click="makeAll('0')">删除</el-button>
|
||||
</template>
|
||||
</div>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||
</div>
|
||||
<el-dialog :visible.sync="dialogFormEdit" :title="dialogType==='editUser'?'修改':'新增'" width="1000px">
|
||||
<el-form ref="form" :rules="rules" :model="form" label-width="250px">
|
||||
<el-form-item label="救援队名称" prop="RESCUE_TEAM_NAME">
|
||||
<el-input v-model="form.RESCUE_TEAM_NAME" placeholder="请输入救援队名称..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="地址" prop="RESCUE_TEAM_ADDRESS">
|
||||
<el-input v-model="form.RESCUE_TEAM_ADDRESS" placeholder="请输入救援队地址..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="类型" prop="TYPE">
|
||||
<Treeselect
|
||||
:options="yjTypeData"
|
||||
:normalizer="normalizer"
|
||||
v-model="form.TYPE"
|
||||
placeholder="请选择类型"
|
||||
no-options-text="暂无数据"
|
||||
no-children-text="暂无数据"
|
||||
@input="handleTypeChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="级别" prop="LEVEL">
|
||||
<el-input v-model="form.LEVEL" placeholder="请输入级别..." />
|
||||
</el-form-item>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="密级" prop="SECURITY_LEVEL">
|
||||
<el-input v-model="form.SECURITY_LEVEL" placeholder="请输入密级..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="办公电话" prop="DUTY_PHONE">
|
||||
<el-input v-model="form.DUTY_PHONE" placeholder="请输入办公电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item label="所属区域" prop="AREA">
|
||||
<Treeselect
|
||||
:options="treeData"
|
||||
:normalizer="normalizer"
|
||||
v-model="form.AREA"
|
||||
:disable-branch-nodes="true"
|
||||
placeholder="请选择所属区域"
|
||||
no-options-text="暂无数据"
|
||||
no-children-text="暂无数据"
|
||||
@input="handleRegionChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="经度" prop="LONGITUDE">
|
||||
<el-input v-model="form.LONGITUDE" placeholder="请输入经度" disabled @focus="handleMap" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="纬度" prop="LATITUDE">
|
||||
<div style="display: flex">
|
||||
<el-input v-model="form.LATITUDE" placeholder="请输入纬度" disabled style="width: 100%" @focus="handleMap"/>
|
||||
<el-button style="margin-left:10px" @click="handleMap">
|
||||
<span class="svg-container">
|
||||
<svg-icon icon-class="international" />
|
||||
</span>
|
||||
</el-button>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="负责人" prop="RESPONSIBLE_PERSON">
|
||||
<el-input v-model="form.RESPONSIBLE_PERSON" placeholder="请输入负责人..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="负责人办公电话" prop="RESPONSIBLE_OFFICE_PHONE">
|
||||
<el-input v-model="form.RESPONSIBLE_OFFICE_PHONE" placeholder="请输入负责人办公电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="负责人移动电话" prop="RESPONSIBLE_MOBILE_PHONE">
|
||||
<el-input v-model="form.RESPONSIBLE_MOBILE_PHONE" placeholder="请输入负责人移动电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="负责人住宅电话" prop="RESPONSIBLE_HOME_PHONE">
|
||||
<el-input v-model="form.RESPONSIBLE_HOME_PHONE" placeholder="请输入负责人住宅电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人" prop="CONTACT_PERSON">
|
||||
<el-input v-model="form.CONTACT_PERSON" placeholder="请输入联系人..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人办公电话" prop="CONTACT_OFFICE_PHONE">
|
||||
<el-input v-model="form.CONTACT_OFFICE_PHONE" placeholder="请输入联系人办公电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人移动电话" prop="CONTACT_MOBILE_PHONE">
|
||||
<el-input v-model="form.CONTACT_MOBILE_PHONE" placeholder="请输入联系人移动电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人住宅电话" prop="CONTACT_HOME_PHONE">
|
||||
<el-input v-model="form.CONTACT_HOME_PHONE" placeholder="请输入联系人住宅电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item label="联系人电子邮箱" prop="CONTACT_EMAIL">
|
||||
<el-input v-model="form.CONTACT_EMAIL" placeholder="请输入联系人电子邮箱..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="邮编" prop="POSTAL_CODE">
|
||||
<el-input v-model="form.POSTAL_CODE" placeholder="请输入邮编..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="传真" prop="FAX">
|
||||
<el-input v-model="form.FAX" placeholder="请输入传真..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="主管单位名称" prop="SUPERVISING_UNIT_NAME">
|
||||
<Treeselect
|
||||
:options="DepartmentData"
|
||||
v-model="form.SUPERVISING_UNIT"
|
||||
placeholder="请选择主管单位名称"
|
||||
no-options-text="暂无数据"
|
||||
no-children-text="暂无数据"
|
||||
@input="handleDepartmentChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="主管单位地址" prop="SUPERVISING_UNIT_ADDRESS">
|
||||
<el-input v-model="form.SUPERVISING_UNIT_ADDRESS" placeholder="请输入主管单位地址..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="总人数" prop="TOTAL_PERSONNEL">
|
||||
<el-input v-model="form.TOTAL_PERSONNEL" placeholder="请输入总人数..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="成立时间" prop="ESTABLISHMENT_DATE">
|
||||
<el-date-picker
|
||||
v-model="form.ESTABLISHMENT_DATE"
|
||||
type="date"
|
||||
placeholder="请选择成立时间"
|
||||
format="yyyy-MM-dd"
|
||||
value-format="yyyy-MM-dd"
|
||||
style="width: 100%;"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="应急通信方式" prop="EMERGENCY_COMMUNICATION_MODE">
|
||||
<el-input v-model="form.EMERGENCY_COMMUNICATION_MODE" placeholder="请输入应急通信方式..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="主要职责" prop="MAIN_DUTIES">
|
||||
<el-input v-model="form.MAIN_DUTIES" type="textarea" placeholder="请输入主要职责..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="主要装备描述" prop="MAIN_EQUIPMENT_DESCRIPTION">
|
||||
<el-input v-model="form.MAIN_EQUIPMENT_DESCRIPTION" type="textarea" placeholder="请输入主要装备描述..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="专长描述" prop="SPECIALTY_DESCRIPTION">
|
||||
<el-input v-model="form.SPECIALTY_DESCRIPTION" type="textarea" placeholder="请输入专长描述..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="资质等级" prop="QUALIFICATION_LEVEL">
|
||||
<el-input v-model="form.QUALIFICATION_LEVEL" placeholder="请输入资质等级..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="应急救援经历" prop="EMERGENCY_RESCUE_EXPERIENCE">
|
||||
<el-input v-model="form.EMERGENCY_RESCUE_EXPERIENCE" type="textarea" placeholder="请输入应急救援经历..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="预计准备时间" prop="EXPECTED_PREPARATION_TIME">
|
||||
<el-date-picker
|
||||
v-model="form.EXPECTED_PREPARATION_TIME"
|
||||
type="date"
|
||||
placeholder="请选择预计准备时间"
|
||||
format="yyyy-MM-dd"
|
||||
value-format="yyyy-MM-dd"
|
||||
style="width: 100%;"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="集合出发地点" prop="ASSEMBLY_DEPARTURE_LOCATION">
|
||||
<el-input v-model="form.ASSEMBLY_DEPARTURE_LOCATION" placeholder="请输入集合出发地点..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="自备交通工具" prop="SELF_PROVIDED_TRANSPORT">
|
||||
<el-input v-model="form.SELF_PROVIDED_TRANSPORT" placeholder="请输入自备交通工具..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="需要后备支援" prop="REQUIRES_BACKUP_SUPPORT">
|
||||
<el-input v-model="form.REQUIRES_BACKUP_SUPPORT" placeholder="请输入是否需要后备支援..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="REMARK">
|
||||
<el-input v-model="form.REMARK" type="textarea" placeholder="请输入备注..." />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormEdit = false">取 消</el-button>
|
||||
<el-button type="primary" @click="confirm">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 坐标选择 -->
|
||||
<el-dialog :visible.sync="dialogFormMap" title="编辑坐标" width="800px" class="dy-dialog">
|
||||
<baidu-map
|
||||
v-loading="loadingMap"
|
||||
:zoom="zoom"
|
||||
:scroll-wheel-zoom="true"
|
||||
:style="{height: clientHeight+'px'}"
|
||||
@click="getClickInfo"
|
||||
@ready="handler">
|
||||
<bm-view style="width: 100%; height:100%; flex: 1" />
|
||||
<bm-control ref="control" :offset="{width: 10, height: 10}" anchor="BMAP_ANCHOR_TOP_LEFT">
|
||||
<div class="map-flex">
|
||||
|
||||
<div class="map-lable">关键词:</div>
|
||||
<div style="flex:1;">
|
||||
<el-autocomplete v-model="addressKeyword" :fetch-suggestions="querySearch" :trigger-on-focus="false" placeholder="请输入详细地址" style="width:100%" @select="handleSelect" />
|
||||
</div>
|
||||
</div>
|
||||
</bm-control>
|
||||
</baidu-map>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<span>经度:</span>
|
||||
<el-input v-model="LONGITUDE" style="width: 200px" placeholder="请输入内容" disabled />
|
||||
<span>纬度:</span>
|
||||
<el-input v-model="LATITUDE" style="width: 200px" placeholder="请输入内容" disabled />
|
||||
<el-button @click="dialogFormMap = false">取 消</el-button>
|
||||
<el-button type="primary" @click="setPosition">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Pagination from '@/components/Pagination'
|
||||
import { requestFN } from '@/utils/request'
|
||||
import { Treeselect } from '@riophae/vue-treeselect'
|
||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||
export default {
|
||||
components: { Treeselect, Pagination },
|
||||
data() {
|
||||
return {
|
||||
// 地图相关
|
||||
CORPINFO_ID: this.$parent.CORPINFO_ID,
|
||||
clientHeight: 600,
|
||||
loadingMap: true,
|
||||
listLoading: false,
|
||||
buttonloading: false,
|
||||
BMap: '',
|
||||
map: '',
|
||||
showMap: false,
|
||||
addressKeyword: '',
|
||||
pointLngLat: '',
|
||||
zoom: 10,
|
||||
dialogFormMap: false,
|
||||
LATITUDE: '',
|
||||
LONGITUDE: '',
|
||||
listQuery: {
|
||||
page: 1,
|
||||
limit: 10
|
||||
},
|
||||
total: 0,
|
||||
varList: [],
|
||||
KEYWORDS: '',
|
||||
RESCUE_TEAM_NAME: '',
|
||||
dialogFormEdit: false,
|
||||
dialogFormShow: false,
|
||||
dialogType: 'add',
|
||||
form: {
|
||||
RESCUE_TEAM_NAME: '',
|
||||
RESCUE_TEAM_ADDRESS: '',
|
||||
TYPE: '',
|
||||
TYPE_NAME: '',
|
||||
LEVEL: '',
|
||||
LEVEL_NAME: '',
|
||||
SECURITY_LEVEL: '',
|
||||
SECURITY_LEVEL_NAME: '',
|
||||
AREA: '',
|
||||
AREA_NAME: '',
|
||||
DUTY_PHONE: '',
|
||||
FAX: '',
|
||||
POSTAL_CODE: '',
|
||||
LONGITUDE: '',
|
||||
LATITUDE: '',
|
||||
RESPONSIBLE_PERSON: '',
|
||||
RESPONSIBLE_OFFICE_PHONE: '',
|
||||
RESPONSIBLE_MOBILE_PHONE: '',
|
||||
RESPONSIBLE_HOME_PHONE: '',
|
||||
CONTACT_PERSON: '',
|
||||
CONTACT_OFFICE_PHONE: '',
|
||||
CONTACT_MOBILE_PHONE: '',
|
||||
CONTACT_HOME_PHONE: '',
|
||||
CONTACT_EMAIL: '',
|
||||
TOTAL_PERSONNEL: '',
|
||||
ESTABLISHMENT_DATE: '',
|
||||
EMERGENCY_COMMUNICATION_MODE: '',
|
||||
SUPERVISING_UNIT: '',
|
||||
SUPERVISING_UNIT_NAME: '',
|
||||
SUPERVISING_UNIT_ADDRESS: '',
|
||||
MAIN_DUTIES: '',
|
||||
MAIN_EQUIPMENT_DESCRIPTION: '',
|
||||
SPECIALTY_DESCRIPTION: '',
|
||||
QUALIFICATION_LEVEL: '',
|
||||
EMERGENCY_RESCUE_EXPERIENCE: '',
|
||||
EXPECTED_PREPARATION_TIME: '',
|
||||
ASSEMBLY_DEPARTURE_LOCATION: '',
|
||||
SELF_PROVIDED_TRANSPORT: '',
|
||||
REQUIRES_BACKUP_SUPPORT: '',
|
||||
REMARK: ''
|
||||
},
|
||||
// rules: {
|
||||
// RESCUE_TEAM_NAME: [
|
||||
// { required: true, message: '救援队名称不能为空', trigger: 'blur' },
|
||||
// { min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// RESCUE_TEAM_ADDRESS: [
|
||||
// { required: true, message: '救援队地址不能为空', trigger: 'blur' },
|
||||
// { min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// TYPE: [
|
||||
// { required: true, message: '类型不能为空', trigger: 'blur' },
|
||||
// { min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// LEVEL: [
|
||||
// { required: true, message: '级别不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// SECURITY_LEVEL: [
|
||||
// { required: true, message: '密级不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// AREA: [
|
||||
// { required: true, message: '所属区域不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// LONGITUDE: [
|
||||
// { required: true, message: '经度不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// LATITUDE: [
|
||||
// { required: true, message: '纬度不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// DUTY_PHONE: [
|
||||
// { required: true, message: '值班电话不能为空', trigger: 'blur' },
|
||||
// { min: 5, max: 50, message: '长度在 5 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// RESPONSIBLE_PERSON: [
|
||||
// { required: true, message: '负责人不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// RESPONSIBLE_OFFICE_PHONE: [
|
||||
// { required: true, message: '负责人办公电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// RESPONSIBLE_MOBILE_PHONE: [
|
||||
// { required: true, message: '负责人移动电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// RESPONSIBLE_HOME_PHONE: [
|
||||
// { required: true, message: '负责人住宅电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// CONTACT_PERSON: [
|
||||
// { required: true, message: '联系人不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// CONTACT_OFFICE_PHONE: [
|
||||
// { required: true, message: '联系人办公电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// CONTACT_MOBILE_PHONE: [
|
||||
// { required: true, message: '联系人移动电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// CONTACT_HOME_PHONE: [
|
||||
// { required: true, message: '联系人住宅电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// CONTACT_EMAIL: [
|
||||
// { required: true, message: '联系人电子邮箱不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// TOTAL_PERSONNEL: [
|
||||
// { required: true, message: '总人数不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// ESTABLISHMENT_DATE: [
|
||||
// { required: true, message: '成立时间不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// EMERGENCY_COMMUNICATION_MODE: [
|
||||
// { required: true, message: '应急通信方式不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// SUPERVISING_UNIT_NAME: [
|
||||
// { required: true, message: '主管单位名称不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// SUPERVISING_UNIT_ADDRESS: [
|
||||
// { required: true, message: '主管单位地址不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// MAIN_DUTIES: [
|
||||
// { required: true, message: '主要职责不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// MAIN_EQUIPMENT_DESCRIPTION: [
|
||||
// { required: true, message: '主要装备描述不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// SPECIALTY_DESCRIPTION: [
|
||||
// { required: true, message: '专长描述不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// QUALIFICATION_LEVEL: [
|
||||
// { required: true, message: '资质等级不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// EMERGENCY_RESCUE_EXPERIENCE: [
|
||||
// { required: true, message: '应急救援经历不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// EXPECTED_PREPARATION_TIME: [
|
||||
// { required: true, message: '预计准备时间不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// ASSEMBLY_DEPARTURE_LOCATION: [
|
||||
// { required: true, message: '集合出发地点不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// SELF_PROVIDED_TRANSPORT: [
|
||||
// { required: true, message: '自备交通工具不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// REQUIRES_BACKUP_SUPPORT: [
|
||||
// { required: true, message: '是否需要后备支援不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// REMARK: [
|
||||
// { required: true, message: '备注不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }
|
||||
// ]
|
||||
// },
|
||||
FFILE: [],
|
||||
caseSummaryList: [],
|
||||
treeData: [],
|
||||
DepartmentData: [],
|
||||
yjTypeData: [],
|
||||
normalizer(node) {
|
||||
return {
|
||||
id: node.DICTIONARIES_ID,
|
||||
label: node.name,
|
||||
children: node.nodes
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getyjTypeDataList()
|
||||
this.getList()
|
||||
this.getTreeList()
|
||||
this.getDepartmentList()
|
||||
},
|
||||
methods: {
|
||||
handleRegionChange(value) {
|
||||
const selectedRegion = this.treeData.find(region => region.DICTIONARIES_ID === value)
|
||||
if (selectedRegion) {
|
||||
this.form.AREA_NAME = selectedRegion.name
|
||||
}
|
||||
},
|
||||
handleTypeChange(value) {
|
||||
const selectedType = this.yjTypeData.find(type => type.DICTIONARIES_ID === value)
|
||||
if (selectedType) {
|
||||
this.form.TYPE_NAME = selectedType.name
|
||||
}
|
||||
},
|
||||
handleDepartmentChange(value) {
|
||||
const selectedDepartment = this.DepartmentData.find(department => department.id === value)
|
||||
if (selectedDepartment) {
|
||||
this.form.SUPERVISING_UNIT_NAME = selectedDepartment.label
|
||||
}
|
||||
},
|
||||
resetQuery() {
|
||||
this.RESCUE_TEAM_NAME = ''
|
||||
this.getQuery()
|
||||
},
|
||||
goList(page, CASE_ID, ticketType) {
|
||||
this.$parent.activeName = page
|
||||
this.$parent.CASE_ID = CASE_ID
|
||||
this.$parent.ticketType = ticketType
|
||||
},
|
||||
getDepartmentList() {
|
||||
requestFN('/department/listAll').then((data) => {
|
||||
this.DepartmentData = data.list.map(item => ({
|
||||
id: item.department_ID,
|
||||
label: item.name
|
||||
}))
|
||||
console.log(this.DepartmentData)
|
||||
}).catch((e) => {
|
||||
console.error('获取主管单位数据失败', e)
|
||||
})
|
||||
},
|
||||
getTreeList() {
|
||||
const params = {
|
||||
PARENT_ID: '5a5d2809ed644aa6ba97a5240ff35484'
|
||||
}
|
||||
requestFN('/dictionaries/listTree', params).then((data) => {
|
||||
this.treeData = JSON.parse(data.zTreeNodes)
|
||||
}).catch((e) => {
|
||||
console.error('获取树形数据失败', e)
|
||||
})
|
||||
},
|
||||
//* **************地图相关*****************
|
||||
// 地图相关
|
||||
mapOpen() {
|
||||
this.top = this.getScrollTop()
|
||||
if (this.top) {
|
||||
this.setScrollTop(0)
|
||||
}
|
||||
},
|
||||
// 关闭地图后调用
|
||||
mapClose() {
|
||||
this.setScrollTop(this.top)
|
||||
this.top = 0
|
||||
this.showMap = false
|
||||
},
|
||||
getScrollTop() {
|
||||
let scrollTop = 0
|
||||
if (document.documentElement && document.documentElement.scrollTop) {
|
||||
scrollTop = document.documentElement.scrollTop
|
||||
} else if (document.body) {
|
||||
scrollTop = document.body.scrollTop
|
||||
}
|
||||
return scrollTop
|
||||
},
|
||||
setScrollTop(top) {
|
||||
if (!isNaN(top)) {
|
||||
if (document.documentElement && document.documentElement.scrollTop !== undefined) {
|
||||
document.documentElement.scrollTop = top
|
||||
} else if (document.body) {
|
||||
document.body.scrollTop = top
|
||||
}
|
||||
}
|
||||
},
|
||||
// 地图初始化
|
||||
handler({ BMap, map }) {
|
||||
this.mapOpen()
|
||||
this.BMap = BMap
|
||||
this.map = map
|
||||
this.loadingMap = true
|
||||
var geolocation = new BMap.Geolocation()
|
||||
const myGeo = new BMap.Geocoder()
|
||||
var $this = this
|
||||
// 调用百度地图api 中的获取当前位置接口
|
||||
geolocation.getCurrentPosition(function(r) {
|
||||
myGeo.getLocation(new BMap.Point(r.point.lng, r.point.lat), function(result) {
|
||||
if (result) {
|
||||
$this.loadingMap = false
|
||||
$this.$set($this, 'pointLngLat', { lng: result.point.lng, lat: result.point.lat })
|
||||
map.enableScrollWheelZoom(true) // 开启鼠标滚轮缩放,默认关闭
|
||||
$this.setCenter({ BMap, map })
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// 搜索地图
|
||||
querySearch(queryString, cb) {
|
||||
var options = {
|
||||
onSearchComplete: function(results) {
|
||||
if (local.getStatus() === 0) {
|
||||
// 判断状态是否正确
|
||||
var s = []
|
||||
for (var i = 0; i < results.getCurrentNumPois(); i++) {
|
||||
var x = results.getPoi(i)
|
||||
var item = { value: x.address + x.title, point: x.point }
|
||||
s.push(item)
|
||||
cb(s)
|
||||
}
|
||||
} else {
|
||||
cb()
|
||||
}
|
||||
}
|
||||
}
|
||||
var local = new this.BMap.LocalSearch(this.map, options)
|
||||
local.search(queryString)
|
||||
},
|
||||
handleSelect(item) {
|
||||
var { point } = item
|
||||
this.map.clearOverlays() // 清除地图上所有覆盖物
|
||||
this.map.centerAndZoom(point, this.zoom)
|
||||
const marker = new this.BMap.Marker(point) // 创建标注
|
||||
this.map.addOverlay(marker) // 将标注添加到地图中
|
||||
marker.enableDragging() // 可拖拽
|
||||
this.LONGITUDE = point.lng
|
||||
this.LATITUDE = point.lat
|
||||
},
|
||||
// 设置打开中心位置
|
||||
setCenter({ BMap, map }) {
|
||||
var lng = ''
|
||||
var lat = ''
|
||||
if (this.form.LONGITUDE == '' || this.form.LATITUDE == '') {
|
||||
lng = '119.525971'
|
||||
lat = '39.894727'
|
||||
} else {
|
||||
lng = this.form.LONGITUDE
|
||||
lat = this.form.LATITUDE
|
||||
}
|
||||
var point = new BMap.Point(lng, lat)
|
||||
// var point = new BMap.Point(this.form.LONGITUDE, this.form.LATITUDE)
|
||||
const zoom = map.getZoom()
|
||||
setTimeout(() => {
|
||||
map.centerAndZoom(point, zoom)
|
||||
}, 0)
|
||||
// var marker = new BMap.Marker(point) // 创建标注
|
||||
// map.addOverlay(marker) // 将标注添加到地图中
|
||||
},
|
||||
handleMap() {
|
||||
this.dialogFormMap = true
|
||||
this.LATITUDE = this.form.LATITUDE
|
||||
this.LONGITUDE = this.form.LONGITUDE
|
||||
},
|
||||
getClickInfo(e) {
|
||||
this.LONGITUDE = e.point.lng
|
||||
this.LATITUDE = e.point.lat
|
||||
},
|
||||
setPosition() {
|
||||
this.dialogFormMap = false
|
||||
this.form.LATITUDE = this.LATITUDE
|
||||
this.form.LONGITUDE = this.LONGITUDE
|
||||
},
|
||||
//* *******************列表查询******************************
|
||||
|
||||
getList() {
|
||||
this.listLoading = true
|
||||
requestFN(
|
||||
'/major/emergency/list?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||
{
|
||||
name: this.RESCUE_TEAM_NAME
|
||||
}
|
||||
).then((data) => {
|
||||
this.listLoading = false
|
||||
this.varList = data.varList
|
||||
this.total = data.page.totalResult
|
||||
})
|
||||
.catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
getyjTypeDataList() {
|
||||
const params = {
|
||||
PARENT_ID: '2bd21d9d4d254f179e79f75d6377f651'
|
||||
}
|
||||
requestFN('/dictionaries/listTree', params).then((data) => {
|
||||
this.yjTypeData = JSON.parse(data.zTreeNodes)
|
||||
}).catch((e) => {
|
||||
console.error('获取树形数据失败', e)
|
||||
})
|
||||
},
|
||||
//* ***************************数据保存**********************************
|
||||
handleEdit(id) {
|
||||
this.dialogFormEdit = true
|
||||
this.dialogType = 'editUser'
|
||||
this.getDetail(id) // 获取详情并回显
|
||||
this.$refs.upload.clearFiles()
|
||||
},
|
||||
getDetail(id) {
|
||||
const params = {
|
||||
Id: id
|
||||
}
|
||||
requestFN('/major/emergency/detail', params).then((response) => {
|
||||
const data = response.msg
|
||||
console.log(data)
|
||||
this.form = {
|
||||
RESCUE_TEAM_NAME: data.RESCUE_TEAM_NAME,
|
||||
RESCUE_TEAM_ADDRESS: data.RESCUE_TEAM_ADDRESS,
|
||||
TYPE: data.TYPE,
|
||||
TYPE_NAME: data.TYPE_NAME,
|
||||
LEVEL: data.LEVEL,
|
||||
LEVEL_NAME: data.LEVEL_NAME,
|
||||
SECURITY_LEVEL: data.SECURITY_LEVEL,
|
||||
SECURITY_LEVEL_NAME: data.SECURITY_LEVEL_NAME,
|
||||
AREA: data.AREA,
|
||||
AREA_NAME: data.AREA_NAME,
|
||||
DUTY_PHONE: data.DUTY_PHONE,
|
||||
FAX: data.FAX,
|
||||
POSTAL_CODE: data.POSTAL_CODE,
|
||||
LONGITUDE: data.LONGITUDE,
|
||||
LATITUDE: data.LATITUDE,
|
||||
RESPONSIBLE_PERSON: data.RESPONSIBLE_PERSON,
|
||||
RESPONSIBLE_OFFICE_PHONE: data.RESPONSIBLE_OFFICE_PHONE,
|
||||
RESPONSIBLE_MOBILE_PHONE: data.RESPONSIBLE_MOBILE_PHONE,
|
||||
RESPONSIBLE_HOME_PHONE: data.RESPONSIBLE_HOME_PHONE,
|
||||
CONTACT_PERSON: data.CONTACT_PERSON,
|
||||
CONTACT_OFFICE_PHONE: data.CONTACT_OFFICE_PHONE,
|
||||
CONTACT_MOBILE_PHONE: data.CONTACT_MOBILE_PHONE,
|
||||
CONTACT_HOME_PHONE: data.CONTACT_HOME_PHONE,
|
||||
CONTACT_EMAIL: data.CONTACT_EMAIL,
|
||||
TOTAL_PERSONNEL: data.TOTAL_PERSONNEL,
|
||||
ESTABLISHMENT_DATE: data.ESTABLISHMENT_DATE,
|
||||
EMERGENCY_COMMUNICATION_MODE: data.EMERGENCY_COMMUNICATION_MODE,
|
||||
SUPERVISING_UNIT_NAME: data.SUPERVISING_UNIT_NAME,
|
||||
SUPERVISING_UNIT_ADDRESS: data.SUPERVISING_UNIT_ADDRESS,
|
||||
MAIN_DUTIES: data.MAIN_DUTIES,
|
||||
MAIN_EQUIPMENT_DESCRIPTION: data.MAIN_EQUIPMENT_DESCRIPTION,
|
||||
SPECIALTY_DESCRIPTION: data.SPECIALTY_DESCRIPTION,
|
||||
QUALIFICATION_LEVEL: data.QUALIFICATION_LEVEL,
|
||||
EMERGENCY_RESCUE_EXPERIENCE: data.EMERGENCY_RESCUE_EXPERIENCE,
|
||||
EXPECTED_PREPARATION_TIME: data.EXPECTED_PREPARATION_TIME,
|
||||
ASSEMBLY_DEPARTURE_LOCATION: data.ASSEMBLY_DEPARTURE_LOCATION,
|
||||
SELF_PROVIDED_TRANSPORT: data.SELF_PROVIDED_TRANSPORT,
|
||||
REQUIRES_BACKUP_SUPPORT: data.REQUIRES_BACKUP_SUPPORT,
|
||||
REMARK: data.REMARK,
|
||||
Id: data.ID
|
||||
}
|
||||
}).catch((e) => {
|
||||
console.error('获取详情数据失败', e)
|
||||
})
|
||||
},
|
||||
handleAdd() {
|
||||
this.dialogFormEdit = true
|
||||
this.form = {}
|
||||
this.form.LONGITUDE = ''
|
||||
this.form.LATITUDE = ''
|
||||
this.dialogType = 'saveUser'
|
||||
this.$refs.upload.clearFiles()
|
||||
},
|
||||
confirm() {
|
||||
this.dataSave()
|
||||
},
|
||||
dataSave() {
|
||||
this.listLoading = true
|
||||
requestFN('/major/emergency/save', this.form).then((data) => {
|
||||
this.listLoading = false
|
||||
this.dialogFormEdit = false
|
||||
this.varList = []
|
||||
this.listQuery.page = 1
|
||||
this.getList()
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
//* *****************************删除********************************
|
||||
handleDelete(id, RESCUE_TEAM_NAME) {
|
||||
this.$confirm('确定要删除[' + RESCUE_TEAM_NAME + ']吗?', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.listLoading = true
|
||||
requestFN(
|
||||
'/major/emergency/delete',
|
||||
{
|
||||
id: id
|
||||
}
|
||||
).then((data) => {
|
||||
if (data.result == 'success') {
|
||||
this.listLoading = false
|
||||
this.getList()
|
||||
}
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
makeAll() {
|
||||
const _selectData = this.$refs.multipleTable.selection
|
||||
console.info('_selectData')
|
||||
console.info(_selectData)
|
||||
if (_selectData == null || _selectData.length == 0) {
|
||||
this.$message({
|
||||
message: '请选中要删除的项...',
|
||||
type: 'error'
|
||||
})
|
||||
return false
|
||||
}
|
||||
const ids = _selectData.map((item, index) => {
|
||||
return item.ID
|
||||
}).join(',')
|
||||
|
||||
this.$confirm('确定要删除选中的数据吗?', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.listLoading = true
|
||||
requestFN(
|
||||
'/major/emergency/deleteAll',
|
||||
{
|
||||
ids: ids
|
||||
}
|
||||
).then(() => {
|
||||
this.listLoading = false
|
||||
this.varList = []
|
||||
this.listQuery.page = 1
|
||||
this.$refs.multipleTable.clearSelection()
|
||||
this.getList()
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
getQuery() {
|
||||
this.$refs.multipleTable.clearSelection()
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,19 @@
|
|||
<template>
|
||||
<div>
|
||||
<list v-show="activeName=='list'" ref="list" />
|
||||
<detail v-if="activeName=='detail'"/>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import list from './components/list.vue'
|
||||
import detail from './components/detail.vue'
|
||||
export default {
|
||||
components: { list, detail },
|
||||
data() {
|
||||
return {
|
||||
activeName: 'list',
|
||||
CASE_ID: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,3 @@
|
|||
<template>
|
||||
<router-view />
|
||||
</template>
|
|
@ -0,0 +1,244 @@
|
|||
<template>
|
||||
<div>
|
||||
<div class="app-container">
|
||||
<div class="level-title">
|
||||
<h1>救援队伍详情</h1>
|
||||
</div>
|
||||
<div class="mb-20">
|
||||
<table class="table-ui">
|
||||
<tr>
|
||||
<td class="tbg">救援队名称</td>
|
||||
<td>{{ form.RESCUE_TEAM_NAME }}</td>
|
||||
<td class="tbg">地址</td>
|
||||
<td>{{ form.RESCUE_TEAM_ADDRESS }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">类型</td>
|
||||
<td>{{ form.TYPE_NAME }}</td>
|
||||
<td class="tbg">级别</td>
|
||||
<td>{{ form.LEVEL }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">密级</td>
|
||||
<td>{{ form.SECURITY_LEVEL }}</td>
|
||||
<td class="tbg">所属区域</td>
|
||||
<td>{{ form.AREA_NAME }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">值班电话</td>
|
||||
<td>{{ form.DUTY_PHONE }}</td>
|
||||
<td class="tbg">传真</td>
|
||||
<td>{{ form.FAX }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">邮编</td>
|
||||
<td>{{ form.POSTAL_CODE }}</td>
|
||||
<td class="tbg">成立时间</td>
|
||||
<td>{{ form.ESTABLISHMENT_DATE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">经度</td>
|
||||
<td>{{ form.LONGITUDE }}</td>
|
||||
<td class="tbg">纬度</td>
|
||||
<td>{{ form.LATITUDE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">负责人</td>
|
||||
<td>{{ form.RESPONSIBLE_PERSON }}</td>
|
||||
<td class="tbg">负责人办公电话</td>
|
||||
<td>{{ form.RESPONSIBLE_OFFICE_PHONE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">负责人移动电话</td>
|
||||
<td>{{ form.RESPONSIBLE_MOBILE_PHONE }}</td>
|
||||
<td class="tbg">负责人住宅电话</td>
|
||||
<td>{{ form.RESPONSIBLE_HOME_PHONE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">联系人</td>
|
||||
<td>{{ form.CONTACT_PERSON }}</td>
|
||||
<td class="tbg">联系人办公电话</td>
|
||||
<td>{{ form.CONTACT_OFFICE_PHONE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">联系人移动电话</td>
|
||||
<td>{{ form.CONTACT_MOBILE_PHONE }}</td>
|
||||
<td class="tbg">联系人住宅电话</td>
|
||||
<td>{{ form.CONTACT_HOME_PHONE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">联系人电子邮箱</td>
|
||||
<td>{{ form.CONTACT_EMAIL }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">主管单位名称</td>
|
||||
<td>{{ form.SUPERVISING_UNIT_NAME }}</td>
|
||||
<td class="tbg">主管单位地址</td>
|
||||
<td>{{ form.SUPERVISING_UNIT_ADDRESS }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">总人数</td>
|
||||
<td>{{ form.TOTAL_PERSONNEL }}</td>
|
||||
<td class="tbg">应急通信方式</td>
|
||||
<td>{{ form.EMERGENCY_COMMUNICATION_MODE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">预计准备时间</td>
|
||||
<td>{{ form.EXPECTED_PREPARATION_TIME }}</td>
|
||||
<td class="tbg">集合出发地点</td>
|
||||
<td>{{ form.ASSEMBLY_DEPARTURE_LOCATION }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">主要职责</td>
|
||||
<td colspan="3">{{ form.MAIN_DUTIES }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">主要装备描述</td>
|
||||
<td colspan="3">{{ form.MAIN_EQUIPMENT_DESCRIPTION }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">专长描述</td>
|
||||
<td colspan="3">{{ form.SPECIALTY_DESCRIPTION }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">资质等级</td>
|
||||
<td colspan="3">{{ form.QUALIFICATION_LEVEL }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">应急救援经历</td>
|
||||
<td colspan="3">{{ form.EMERGENCY_RESCUE_EXPERIENCE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">备注</td>
|
||||
<td colspan="3">{{ form.REMARK }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-height" />
|
||||
<div class="ui-foot">
|
||||
<el-button type="primary" @click="goBack">返回基本信息</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { requestFN } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
RESCUE_TEAM_NAME: '',
|
||||
RESCUE_TEAM_ADDRESS: '',
|
||||
TYPE: '',
|
||||
TYPE_NAME: '',
|
||||
LEVEL: '',
|
||||
LEVEL_NAME: '',
|
||||
SECURITY_LEVEL: '',
|
||||
SECURITY_LEVEL_NAME: '',
|
||||
AREA: '',
|
||||
AREA_NAME: '',
|
||||
DUTY_PHONE: '',
|
||||
FAX: '',
|
||||
POSTAL_CODE: '',
|
||||
LONGITUDE: '',
|
||||
LATITUDE: '',
|
||||
RESPONSIBLE_PERSON: '',
|
||||
RESPONSIBLE_OFFICE_PHONE: '',
|
||||
RESPONSIBLE_MOBILE_PHONE: '',
|
||||
RESPONSIBLE_HOME_PHONE: '',
|
||||
CONTACT_PERSON: '',
|
||||
CONTACT_OFFICE_PHONE: '',
|
||||
CONTACT_MOBILE_PHONE: '',
|
||||
CONTACT_HOME_PHONE: '',
|
||||
CONTACT_EMAIL: '',
|
||||
TOTAL_PERSONNEL: '',
|
||||
ESTABLISHMENT_DATE: '',
|
||||
EMERGENCY_COMMUNICATION_MODE: '',
|
||||
SUPERVISING_UNIT_NAME: '',
|
||||
SUPERVISING_UNIT_ADDRESS: '',
|
||||
MAIN_DUTIES: '',
|
||||
MAIN_EQUIPMENT_DESCRIPTION: '',
|
||||
SPECIALTY_DESCRIPTION: '',
|
||||
QUALIFICATION_LEVEL: '',
|
||||
EMERGENCY_RESCUE_EXPERIENCE: '',
|
||||
EXPECTED_PREPARATION_TIME: '',
|
||||
ASSEMBLY_DEPARTURE_LOCATION: '',
|
||||
REMARK: ''
|
||||
},
|
||||
Id: ''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (this.$parent.CASE_ID) {
|
||||
this.Id = this.$parent.CASE_ID
|
||||
this.getDetail(this.Id)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$parent.activeName = 'list'
|
||||
},
|
||||
getDetail(Id) {
|
||||
const params = { Id }
|
||||
requestFN('/major/emergency/detail', params).then((response) => {
|
||||
const data = response.msg
|
||||
this.form = {
|
||||
RESCUE_TEAM_NAME: data.RESCUE_TEAM_NAME,
|
||||
RESCUE_TEAM_ADDRESS: data.RESCUE_TEAM_ADDRESS,
|
||||
TYPE: data.TYPE,
|
||||
TYPE_NAME: data.TYPE_NAME,
|
||||
LEVEL: data.LEVEL,
|
||||
LEVEL_NAME: data.LEVEL_NAME,
|
||||
SECURITY_LEVEL: data.SECURITY_LEVEL,
|
||||
SECURITY_LEVEL_NAME: data.SECURITY_LEVEL_NAME,
|
||||
AREA: data.AREA,
|
||||
AREA_NAME: data.AREA_NAME,
|
||||
DUTY_PHONE: data.DUTY_PHONE,
|
||||
FAX: data.FAX,
|
||||
POSTAL_CODE: data.POSTAL_CODE,
|
||||
LONGITUDE: data.LONGITUDE,
|
||||
LATITUDE: data.LATITUDE,
|
||||
RESPONSIBLE_PERSON: data.RESPONSIBLE_PERSON,
|
||||
RESPONSIBLE_OFFICE_PHONE: data.RESPONSIBLE_OFFICE_PHONE,
|
||||
RESPONSIBLE_MOBILE_PHONE: data.RESPONSIBLE_MOBILE_PHONE,
|
||||
RESPONSIBLE_HOME_PHONE: data.RESPONSIBLE_HOME_PHONE,
|
||||
CONTACT_PERSON: data.CONTACT_PERSON,
|
||||
CONTACT_OFFICE_PHONE: data.CONTACT_OFFICE_PHONE,
|
||||
CONTACT_MOBILE_PHONE: data.CONTACT_MOBILE_PHONE,
|
||||
CONTACT_HOME_PHONE: data.CONTACT_HOME_PHONE,
|
||||
CONTACT_EMAIL: data.CONTACT_EMAIL,
|
||||
TOTAL_PERSONNEL: data.TOTAL_PERSONNEL,
|
||||
ESTABLISHMENT_DATE: data.ESTABLISHMENT_DATE,
|
||||
EMERGENCY_COMMUNICATION_MODE: data.EMERGENCY_COMMUNICATION_MODE,
|
||||
SUPERVISING_UNIT_NAME: data.SUPERVISING_UNIT_NAME,
|
||||
SUPERVISING_UNIT_ADDRESS: data.SUPERVISING_UNIT_ADDRESS,
|
||||
MAIN_DUTIES: data.MAIN_DUTIES,
|
||||
MAIN_EQUIPMENT_DESCRIPTION: data.MAIN_EQUIPMENT_DESCRIPTION,
|
||||
SPECIALTY_DESCRIPTION: data.SPECIALTY_DESCRIPTION,
|
||||
QUALIFICATION_LEVEL: data.QUALIFICATION_LEVEL,
|
||||
EMERGENCY_RESCUE_EXPERIENCE: data.EMERGENCY_RESCUE_EXPERIENCE,
|
||||
EXPECTED_PREPARATION_TIME: data.EXPECTED_PREPARATION_TIME,
|
||||
ASSEMBLY_DEPARTURE_LOCATION: data.ASSEMBLY_DEPARTURE_LOCATION,
|
||||
REMARK: data.REMARK,
|
||||
Id: data.ID
|
||||
}
|
||||
}).catch((e) => {
|
||||
console.error('获取详情数据失败', e)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
.table-ui
|
||||
td
|
||||
line-height: 34px
|
||||
.tbg
|
||||
width: 200px
|
||||
.ui-foot
|
||||
text-align: center
|
||||
margin-top: 20px
|
||||
</style>
|
|
@ -0,0 +1,846 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<div class="filter-container">
|
||||
<el-form inline>
|
||||
<el-form-item label="机构名称:" prop="RESCUE_TEAM_NAME">
|
||||
<el-input v-model="RESCUE_TEAM_NAME" placeholder="机构名称" class="filter-item" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">搜索</el-button>
|
||||
<el-button class="filter-item" type="default" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</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-column type="selection" width="55" align="center" />
|
||||
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||
<el-table-column prop="RESCUE_TEAM_NAME" label="队伍名称" width="180" />
|
||||
<el-table-column prop="TYPE_NAME" label="队伍类型" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="LEVEL" label="队伍级别" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="RESCUE_TEAM_ADDRESS" label="队伍地址" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="RESPONSIBLE_OFFICE_PHONE" label="负责人办公电话" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="RESPONSIBLE_MOBILE_PHONE" label="负责人移动电话" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="RESPONSIBLE_HOME_PHONE" label="负责人固定电话" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="OPERATETIME" label="修改时间" show-overflow-tooltip="true" />
|
||||
|
||||
<el-table-column label="操作" align="center" width="300">
|
||||
<template slot-scope="{row}">
|
||||
<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)">编辑</el-button>
|
||||
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.ID,row.RESCUE_TEAM_NAME)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<template>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button type="danger" icon="el-icon-delete" plain @click="makeAll('0')">删除</el-button>
|
||||
</template>
|
||||
</div>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||
</div>
|
||||
<el-dialog :visible.sync="dialogFormEdit" :title="dialogType==='editUser'?'修改':'新增'" width="1000px">
|
||||
<el-form ref="form" :rules="rules" :model="form" label-width="250px">
|
||||
<el-form-item label="救援队名称" prop="RESCUE_TEAM_NAME">
|
||||
<el-input v-model="form.RESCUE_TEAM_NAME" placeholder="请输入救援队名称..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="地址" prop="RESCUE_TEAM_ADDRESS">
|
||||
<el-input v-model="form.RESCUE_TEAM_ADDRESS" placeholder="请输入救援队地址..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="类型" prop="TYPE">
|
||||
<Treeselect
|
||||
:options="yjTypeData"
|
||||
:normalizer="normalizer"
|
||||
v-model="form.TYPE"
|
||||
placeholder="请选择类型"
|
||||
no-options-text="暂无数据"
|
||||
no-children-text="暂无数据"
|
||||
@input="handleTypeChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="级别" prop="LEVEL">
|
||||
<el-input v-model="form.LEVEL" placeholder="请输入级别..." />
|
||||
</el-form-item>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="密级" prop="SECURITY_LEVEL">
|
||||
<el-input v-model="form.SECURITY_LEVEL" placeholder="请输入密级..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="办公电话" prop="DUTY_PHONE">
|
||||
<el-input v-model="form.DUTY_PHONE" placeholder="请输入办公电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item label="所属区域" prop="AREA">
|
||||
<Treeselect
|
||||
:options="treeData"
|
||||
:normalizer="normalizer"
|
||||
v-model="form.AREA"
|
||||
:disable-branch-nodes="true"
|
||||
placeholder="请选择所属区域"
|
||||
no-options-text="暂无数据"
|
||||
no-children-text="暂无数据"
|
||||
@input="handleRegionChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="经度" prop="LONGITUDE">
|
||||
<el-input v-model="form.LONGITUDE" placeholder="请输入经度" disabled @focus="handleMap" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="纬度" prop="LATITUDE">
|
||||
<div style="display: flex">
|
||||
<el-input v-model="form.LATITUDE" placeholder="请输入纬度" disabled style="width: 100%" @focus="handleMap"/>
|
||||
<el-button style="margin-left:10px" @click="handleMap">
|
||||
<span class="svg-container">
|
||||
<svg-icon icon-class="international" />
|
||||
</span>
|
||||
</el-button>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="负责人" prop="RESPONSIBLE_PERSON">
|
||||
<el-input v-model="form.RESPONSIBLE_PERSON" placeholder="请输入负责人..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="负责人办公电话" prop="RESPONSIBLE_OFFICE_PHONE">
|
||||
<el-input v-model="form.RESPONSIBLE_OFFICE_PHONE" placeholder="请输入负责人办公电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="负责人移动电话" prop="RESPONSIBLE_MOBILE_PHONE">
|
||||
<el-input v-model="form.RESPONSIBLE_MOBILE_PHONE" placeholder="请输入负责人移动电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="负责人住宅电话" prop="RESPONSIBLE_HOME_PHONE">
|
||||
<el-input v-model="form.RESPONSIBLE_HOME_PHONE" placeholder="请输入负责人住宅电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人" prop="CONTACT_PERSON">
|
||||
<el-input v-model="form.CONTACT_PERSON" placeholder="请输入联系人..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人办公电话" prop="CONTACT_OFFICE_PHONE">
|
||||
<el-input v-model="form.CONTACT_OFFICE_PHONE" placeholder="请输入联系人办公电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人移动电话" prop="CONTACT_MOBILE_PHONE">
|
||||
<el-input v-model="form.CONTACT_MOBILE_PHONE" placeholder="请输入联系人移动电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人住宅电话" prop="CONTACT_HOME_PHONE">
|
||||
<el-input v-model="form.CONTACT_HOME_PHONE" placeholder="请输入联系人住宅电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item label="联系人电子邮箱" prop="CONTACT_EMAIL">
|
||||
<el-input v-model="form.CONTACT_EMAIL" placeholder="请输入联系人电子邮箱..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="邮编" prop="POSTAL_CODE">
|
||||
<el-input v-model="form.POSTAL_CODE" placeholder="请输入邮编..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="传真" prop="FAX">
|
||||
<el-input v-model="form.FAX" placeholder="请输入传真..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="主管单位名称" prop="SUPERVISING_UNIT_NAME">
|
||||
<Treeselect
|
||||
:options="DepartmentData"
|
||||
v-model="form.SUPERVISING_UNIT"
|
||||
placeholder="请选择主管单位名称"
|
||||
no-options-text="暂无数据"
|
||||
no-children-text="暂无数据"
|
||||
@input="handleDepartmentChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="主管单位地址" prop="SUPERVISING_UNIT_ADDRESS">
|
||||
<el-input v-model="form.SUPERVISING_UNIT_ADDRESS" placeholder="请输入主管单位地址..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="总人数" prop="TOTAL_PERSONNEL">
|
||||
<el-input v-model="form.TOTAL_PERSONNEL" placeholder="请输入总人数..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="成立时间" prop="ESTABLISHMENT_DATE">
|
||||
<el-date-picker
|
||||
v-model="form.ESTABLISHMENT_DATE"
|
||||
type="date"
|
||||
placeholder="请选择成立时间"
|
||||
format="yyyy-MM-dd"
|
||||
value-format="yyyy-MM-dd"
|
||||
style="width: 100%;"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="应急通信方式" prop="EMERGENCY_COMMUNICATION_MODE">
|
||||
<el-input v-model="form.EMERGENCY_COMMUNICATION_MODE" placeholder="请输入应急通信方式..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="主要职责" prop="MAIN_DUTIES">
|
||||
<el-input v-model="form.MAIN_DUTIES" type="textarea" placeholder="请输入主要职责..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="主要装备描述" prop="MAIN_EQUIPMENT_DESCRIPTION">
|
||||
<el-input v-model="form.MAIN_EQUIPMENT_DESCRIPTION" type="textarea" placeholder="请输入主要装备描述..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="专长描述" prop="SPECIALTY_DESCRIPTION">
|
||||
<el-input v-model="form.SPECIALTY_DESCRIPTION" type="textarea" placeholder="请输入专长描述..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="资质等级" prop="QUALIFICATION_LEVEL">
|
||||
<el-input v-model="form.QUALIFICATION_LEVEL" placeholder="请输入资质等级..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="应急救援经历" prop="EMERGENCY_RESCUE_EXPERIENCE">
|
||||
<el-input v-model="form.EMERGENCY_RESCUE_EXPERIENCE" type="textarea" placeholder="请输入应急救援经历..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="预计准备时间" prop="EXPECTED_PREPARATION_TIME">
|
||||
<el-date-picker
|
||||
v-model="form.EXPECTED_PREPARATION_TIME"
|
||||
type="date"
|
||||
placeholder="请选择预计准备时间"
|
||||
format="yyyy-MM-dd"
|
||||
value-format="yyyy-MM-dd"
|
||||
style="width: 100%;"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="集合出发地点" prop="ASSEMBLY_DEPARTURE_LOCATION">
|
||||
<el-input v-model="form.ASSEMBLY_DEPARTURE_LOCATION" placeholder="请输入集合出发地点..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="自备交通工具" prop="SELF_PROVIDED_TRANSPORT">
|
||||
<el-input v-model="form.SELF_PROVIDED_TRANSPORT" placeholder="请输入自备交通工具..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="需要后备支援" prop="REQUIRES_BACKUP_SUPPORT">
|
||||
<el-input v-model="form.REQUIRES_BACKUP_SUPPORT" placeholder="请输入是否需要后备支援..." />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="REMARK">
|
||||
<el-input v-model="form.REMARK" type="textarea" placeholder="请输入备注..." />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormEdit = false">取 消</el-button>
|
||||
<el-button type="primary" @click="confirm">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 坐标选择 -->
|
||||
<el-dialog :visible.sync="dialogFormMap" title="编辑坐标" width="800px" class="dy-dialog">
|
||||
<baidu-map
|
||||
v-loading="loadingMap"
|
||||
:zoom="zoom"
|
||||
:scroll-wheel-zoom="true"
|
||||
:style="{height: clientHeight+'px'}"
|
||||
@click="getClickInfo"
|
||||
@ready="handler">
|
||||
<bm-view style="width: 100%; height:100%; flex: 1" />
|
||||
<bm-control ref="control" :offset="{width: 10, height: 10}" anchor="BMAP_ANCHOR_TOP_LEFT">
|
||||
<div class="map-flex">
|
||||
|
||||
<div class="map-lable">关键词:</div>
|
||||
<div style="flex:1;">
|
||||
<el-autocomplete v-model="addressKeyword" :fetch-suggestions="querySearch" :trigger-on-focus="false" placeholder="请输入详细地址" style="width:100%" @select="handleSelect" />
|
||||
</div>
|
||||
</div>
|
||||
</bm-control>
|
||||
</baidu-map>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<span>经度:</span>
|
||||
<el-input v-model="LONGITUDE" style="width: 200px" placeholder="请输入内容" disabled />
|
||||
<span>纬度:</span>
|
||||
<el-input v-model="LATITUDE" style="width: 200px" placeholder="请输入内容" disabled />
|
||||
<el-button @click="dialogFormMap = false">取 消</el-button>
|
||||
<el-button type="primary" @click="setPosition">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Pagination from '@/components/Pagination'
|
||||
import { requestFN } from '@/utils/request'
|
||||
import { Treeselect } from '@riophae/vue-treeselect'
|
||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||
export default {
|
||||
components: { Treeselect, Pagination },
|
||||
data() {
|
||||
return {
|
||||
// 地图相关
|
||||
CORPINFO_ID: this.$parent.CORPINFO_ID,
|
||||
clientHeight: 600,
|
||||
loadingMap: true,
|
||||
listLoading: false,
|
||||
buttonloading: false,
|
||||
BMap: '',
|
||||
map: '',
|
||||
showMap: false,
|
||||
addressKeyword: '',
|
||||
pointLngLat: '',
|
||||
zoom: 10,
|
||||
dialogFormMap: false,
|
||||
LATITUDE: '',
|
||||
LONGITUDE: '',
|
||||
listQuery: {
|
||||
page: 1,
|
||||
limit: 10
|
||||
},
|
||||
total: 0,
|
||||
varList: [],
|
||||
KEYWORDS: '',
|
||||
RESCUE_TEAM_NAME: '',
|
||||
dialogFormEdit: false,
|
||||
dialogFormShow: false,
|
||||
dialogType: 'add',
|
||||
form: {
|
||||
RESCUE_TEAM_NAME: '',
|
||||
RESCUE_TEAM_ADDRESS: '',
|
||||
TYPE: '',
|
||||
TYPE_NAME: '',
|
||||
LEVEL: '',
|
||||
LEVEL_NAME: '',
|
||||
SECURITY_LEVEL: '',
|
||||
SECURITY_LEVEL_NAME: '',
|
||||
AREA: '',
|
||||
AREA_NAME: '',
|
||||
DUTY_PHONE: '',
|
||||
FAX: '',
|
||||
POSTAL_CODE: '',
|
||||
LONGITUDE: '',
|
||||
LATITUDE: '',
|
||||
RESPONSIBLE_PERSON: '',
|
||||
RESPONSIBLE_OFFICE_PHONE: '',
|
||||
RESPONSIBLE_MOBILE_PHONE: '',
|
||||
RESPONSIBLE_HOME_PHONE: '',
|
||||
CONTACT_PERSON: '',
|
||||
CONTACT_OFFICE_PHONE: '',
|
||||
CONTACT_MOBILE_PHONE: '',
|
||||
CONTACT_HOME_PHONE: '',
|
||||
CONTACT_EMAIL: '',
|
||||
TOTAL_PERSONNEL: '',
|
||||
ESTABLISHMENT_DATE: '',
|
||||
EMERGENCY_COMMUNICATION_MODE: '',
|
||||
SUPERVISING_UNIT: '',
|
||||
SUPERVISING_UNIT_NAME: '',
|
||||
SUPERVISING_UNIT_ADDRESS: '',
|
||||
MAIN_DUTIES: '',
|
||||
MAIN_EQUIPMENT_DESCRIPTION: '',
|
||||
SPECIALTY_DESCRIPTION: '',
|
||||
QUALIFICATION_LEVEL: '',
|
||||
EMERGENCY_RESCUE_EXPERIENCE: '',
|
||||
EXPECTED_PREPARATION_TIME: '',
|
||||
ASSEMBLY_DEPARTURE_LOCATION: '',
|
||||
SELF_PROVIDED_TRANSPORT: '',
|
||||
REQUIRES_BACKUP_SUPPORT: '',
|
||||
REMARK: ''
|
||||
},
|
||||
// rules: {
|
||||
// RESCUE_TEAM_NAME: [
|
||||
// { required: true, message: '救援队名称不能为空', trigger: 'blur' },
|
||||
// { min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// RESCUE_TEAM_ADDRESS: [
|
||||
// { required: true, message: '救援队地址不能为空', trigger: 'blur' },
|
||||
// { min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// TYPE: [
|
||||
// { required: true, message: '类型不能为空', trigger: 'blur' },
|
||||
// { min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// LEVEL: [
|
||||
// { required: true, message: '级别不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// SECURITY_LEVEL: [
|
||||
// { required: true, message: '密级不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// AREA: [
|
||||
// { required: true, message: '所属区域不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// LONGITUDE: [
|
||||
// { required: true, message: '经度不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// LATITUDE: [
|
||||
// { required: true, message: '纬度不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// DUTY_PHONE: [
|
||||
// { required: true, message: '值班电话不能为空', trigger: 'blur' },
|
||||
// { min: 5, max: 50, message: '长度在 5 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// RESPONSIBLE_PERSON: [
|
||||
// { required: true, message: '负责人不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// RESPONSIBLE_OFFICE_PHONE: [
|
||||
// { required: true, message: '负责人办公电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// RESPONSIBLE_MOBILE_PHONE: [
|
||||
// { required: true, message: '负责人移动电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// RESPONSIBLE_HOME_PHONE: [
|
||||
// { required: true, message: '负责人住宅电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// CONTACT_PERSON: [
|
||||
// { required: true, message: '联系人不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// CONTACT_OFFICE_PHONE: [
|
||||
// { required: true, message: '联系人办公电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// CONTACT_MOBILE_PHONE: [
|
||||
// { required: true, message: '联系人移动电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// CONTACT_HOME_PHONE: [
|
||||
// { required: true, message: '联系人住宅电话不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// CONTACT_EMAIL: [
|
||||
// { required: true, message: '联系人电子邮箱不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// TOTAL_PERSONNEL: [
|
||||
// { required: true, message: '总人数不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// ESTABLISHMENT_DATE: [
|
||||
// { required: true, message: '成立时间不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// EMERGENCY_COMMUNICATION_MODE: [
|
||||
// { required: true, message: '应急通信方式不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// SUPERVISING_UNIT_NAME: [
|
||||
// { required: true, message: '主管单位名称不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// SUPERVISING_UNIT_ADDRESS: [
|
||||
// { required: true, message: '主管单位地址不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// MAIN_DUTIES: [
|
||||
// { required: true, message: '主要职责不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// MAIN_EQUIPMENT_DESCRIPTION: [
|
||||
// { required: true, message: '主要装备描述不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// SPECIALTY_DESCRIPTION: [
|
||||
// { required: true, message: '专长描述不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// QUALIFICATION_LEVEL: [
|
||||
// { required: true, message: '资质等级不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// EMERGENCY_RESCUE_EXPERIENCE: [
|
||||
// { required: true, message: '应急救援经历不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// EXPECTED_PREPARATION_TIME: [
|
||||
// { required: true, message: '预计准备时间不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// ASSEMBLY_DEPARTURE_LOCATION: [
|
||||
// { required: true, message: '集合出发地点不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// SELF_PROVIDED_TRANSPORT: [
|
||||
// { required: true, message: '自备交通工具不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// REQUIRES_BACKUP_SUPPORT: [
|
||||
// { required: true, message: '是否需要后备支援不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
||||
// ],
|
||||
// REMARK: [
|
||||
// { required: true, message: '备注不能为空', trigger: 'blur' },
|
||||
// { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }
|
||||
// ]
|
||||
// },
|
||||
FFILE: [],
|
||||
caseSummaryList: [],
|
||||
treeData: [],
|
||||
DepartmentData: [],
|
||||
yjTypeData: [],
|
||||
normalizer(node) {
|
||||
return {
|
||||
id: node.DICTIONARIES_ID,
|
||||
label: node.name,
|
||||
children: node.nodes
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getyjTypeDataList()
|
||||
this.getList()
|
||||
this.getTreeList()
|
||||
this.getDepartmentList()
|
||||
},
|
||||
methods: {
|
||||
handleRegionChange(value) {
|
||||
const selectedRegion = this.treeData.find(region => region.DICTIONARIES_ID === value)
|
||||
if (selectedRegion) {
|
||||
this.form.AREA_NAME = selectedRegion.name
|
||||
}
|
||||
},
|
||||
handleTypeChange(value) {
|
||||
const selectedType = this.yjTypeData.find(type => type.DICTIONARIES_ID === value)
|
||||
if (selectedType) {
|
||||
this.form.TYPE_NAME = selectedType.name
|
||||
}
|
||||
},
|
||||
handleDepartmentChange(value) {
|
||||
const selectedDepartment = this.DepartmentData.find(department => department.id === value)
|
||||
if (selectedDepartment) {
|
||||
this.form.SUPERVISING_UNIT_NAME = selectedDepartment.label
|
||||
}
|
||||
},
|
||||
resetQuery() {
|
||||
this.RESCUE_TEAM_NAME = ''
|
||||
this.getQuery()
|
||||
},
|
||||
goList(page, CASE_ID, ticketType) {
|
||||
this.$parent.activeName = page
|
||||
this.$parent.CASE_ID = CASE_ID
|
||||
this.$parent.ticketType = ticketType
|
||||
},
|
||||
getDepartmentList() {
|
||||
requestFN('/department/listAll').then((data) => {
|
||||
this.DepartmentData = data.list.map(item => ({
|
||||
id: item.department_ID,
|
||||
label: item.name
|
||||
}))
|
||||
console.log(this.DepartmentData)
|
||||
}).catch((e) => {
|
||||
console.error('获取主管单位数据失败', e)
|
||||
})
|
||||
},
|
||||
getTreeList() {
|
||||
const params = {
|
||||
PARENT_ID: '5a5d2809ed644aa6ba97a5240ff35484'
|
||||
}
|
||||
requestFN('/dictionaries/listTree', params).then((data) => {
|
||||
this.treeData = JSON.parse(data.zTreeNodes)
|
||||
}).catch((e) => {
|
||||
console.error('获取树形数据失败', e)
|
||||
})
|
||||
},
|
||||
//* **************地图相关*****************
|
||||
// 地图相关
|
||||
mapOpen() {
|
||||
this.top = this.getScrollTop()
|
||||
if (this.top) {
|
||||
this.setScrollTop(0)
|
||||
}
|
||||
},
|
||||
// 关闭地图后调用
|
||||
mapClose() {
|
||||
this.setScrollTop(this.top)
|
||||
this.top = 0
|
||||
this.showMap = false
|
||||
},
|
||||
getScrollTop() {
|
||||
let scrollTop = 0
|
||||
if (document.documentElement && document.documentElement.scrollTop) {
|
||||
scrollTop = document.documentElement.scrollTop
|
||||
} else if (document.body) {
|
||||
scrollTop = document.body.scrollTop
|
||||
}
|
||||
return scrollTop
|
||||
},
|
||||
setScrollTop(top) {
|
||||
if (!isNaN(top)) {
|
||||
if (document.documentElement && document.documentElement.scrollTop !== undefined) {
|
||||
document.documentElement.scrollTop = top
|
||||
} else if (document.body) {
|
||||
document.body.scrollTop = top
|
||||
}
|
||||
}
|
||||
},
|
||||
// 地图初始化
|
||||
handler({ BMap, map }) {
|
||||
this.mapOpen()
|
||||
this.BMap = BMap
|
||||
this.map = map
|
||||
this.loadingMap = true
|
||||
var geolocation = new BMap.Geolocation()
|
||||
const myGeo = new BMap.Geocoder()
|
||||
var $this = this
|
||||
// 调用百度地图api 中的获取当前位置接口
|
||||
geolocation.getCurrentPosition(function(r) {
|
||||
myGeo.getLocation(new BMap.Point(r.point.lng, r.point.lat), function(result) {
|
||||
if (result) {
|
||||
$this.loadingMap = false
|
||||
$this.$set($this, 'pointLngLat', { lng: result.point.lng, lat: result.point.lat })
|
||||
map.enableScrollWheelZoom(true) // 开启鼠标滚轮缩放,默认关闭
|
||||
$this.setCenter({ BMap, map })
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// 搜索地图
|
||||
querySearch(queryString, cb) {
|
||||
var options = {
|
||||
onSearchComplete: function(results) {
|
||||
if (local.getStatus() === 0) {
|
||||
// 判断状态是否正确
|
||||
var s = []
|
||||
for (var i = 0; i < results.getCurrentNumPois(); i++) {
|
||||
var x = results.getPoi(i)
|
||||
var item = { value: x.address + x.title, point: x.point }
|
||||
s.push(item)
|
||||
cb(s)
|
||||
}
|
||||
} else {
|
||||
cb()
|
||||
}
|
||||
}
|
||||
}
|
||||
var local = new this.BMap.LocalSearch(this.map, options)
|
||||
local.search(queryString)
|
||||
},
|
||||
handleSelect(item) {
|
||||
var { point } = item
|
||||
this.map.clearOverlays() // 清除地图上所有覆盖物
|
||||
this.map.centerAndZoom(point, this.zoom)
|
||||
const marker = new this.BMap.Marker(point) // 创建标注
|
||||
this.map.addOverlay(marker) // 将标注添加到地图中
|
||||
marker.enableDragging() // 可拖拽
|
||||
this.LONGITUDE = point.lng
|
||||
this.LATITUDE = point.lat
|
||||
},
|
||||
// 设置打开中心位置
|
||||
setCenter({ BMap, map }) {
|
||||
var lng = ''
|
||||
var lat = ''
|
||||
if (this.form.LONGITUDE == '' || this.form.LATITUDE == '') {
|
||||
lng = '119.525971'
|
||||
lat = '39.894727'
|
||||
} else {
|
||||
lng = this.form.LONGITUDE
|
||||
lat = this.form.LATITUDE
|
||||
}
|
||||
var point = new BMap.Point(lng, lat)
|
||||
// var point = new BMap.Point(this.form.LONGITUDE, this.form.LATITUDE)
|
||||
const zoom = map.getZoom()
|
||||
setTimeout(() => {
|
||||
map.centerAndZoom(point, zoom)
|
||||
}, 0)
|
||||
// var marker = new BMap.Marker(point) // 创建标注
|
||||
// map.addOverlay(marker) // 将标注添加到地图中
|
||||
},
|
||||
handleMap() {
|
||||
this.dialogFormMap = true
|
||||
this.LATITUDE = this.form.LATITUDE
|
||||
this.LONGITUDE = this.form.LONGITUDE
|
||||
},
|
||||
getClickInfo(e) {
|
||||
this.LONGITUDE = e.point.lng
|
||||
this.LATITUDE = e.point.lat
|
||||
},
|
||||
setPosition() {
|
||||
this.dialogFormMap = false
|
||||
this.form.LATITUDE = this.LATITUDE
|
||||
this.form.LONGITUDE = this.LONGITUDE
|
||||
},
|
||||
//* *******************列表查询******************************
|
||||
|
||||
getList() {
|
||||
this.listLoading = true
|
||||
requestFN(
|
||||
'/major/emergency/list?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||
{
|
||||
name: this.RESCUE_TEAM_NAME
|
||||
}
|
||||
).then((data) => {
|
||||
this.listLoading = false
|
||||
this.varList = data.varList
|
||||
this.total = data.page.totalResult
|
||||
})
|
||||
.catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
getyjTypeDataList() {
|
||||
const params = {
|
||||
PARENT_ID: '2bd21d9d4d254f179e79f75d6377f651'
|
||||
}
|
||||
requestFN('/dictionaries/listTree', params).then((data) => {
|
||||
this.yjTypeData = JSON.parse(data.zTreeNodes)
|
||||
}).catch((e) => {
|
||||
console.error('获取树形数据失败', e)
|
||||
})
|
||||
},
|
||||
//* ***************************数据保存**********************************
|
||||
handleEdit(id) {
|
||||
this.dialogFormEdit = true
|
||||
this.dialogType = 'editUser'
|
||||
this.getDetail(id) // 获取详情并回显
|
||||
this.$refs.upload.clearFiles()
|
||||
},
|
||||
getDetail(id) {
|
||||
const params = {
|
||||
Id: id
|
||||
}
|
||||
requestFN('/major/emergency/detail', params).then((response) => {
|
||||
const data = response.msg
|
||||
console.log(data)
|
||||
this.form = {
|
||||
RESCUE_TEAM_NAME: data.RESCUE_TEAM_NAME,
|
||||
RESCUE_TEAM_ADDRESS: data.RESCUE_TEAM_ADDRESS,
|
||||
TYPE: data.TYPE,
|
||||
TYPE_NAME: data.TYPE_NAME,
|
||||
LEVEL: data.LEVEL,
|
||||
LEVEL_NAME: data.LEVEL_NAME,
|
||||
SECURITY_LEVEL: data.SECURITY_LEVEL,
|
||||
SECURITY_LEVEL_NAME: data.SECURITY_LEVEL_NAME,
|
||||
AREA: data.AREA,
|
||||
AREA_NAME: data.AREA_NAME,
|
||||
DUTY_PHONE: data.DUTY_PHONE,
|
||||
FAX: data.FAX,
|
||||
POSTAL_CODE: data.POSTAL_CODE,
|
||||
LONGITUDE: data.LONGITUDE,
|
||||
LATITUDE: data.LATITUDE,
|
||||
RESPONSIBLE_PERSON: data.RESPONSIBLE_PERSON,
|
||||
RESPONSIBLE_OFFICE_PHONE: data.RESPONSIBLE_OFFICE_PHONE,
|
||||
RESPONSIBLE_MOBILE_PHONE: data.RESPONSIBLE_MOBILE_PHONE,
|
||||
RESPONSIBLE_HOME_PHONE: data.RESPONSIBLE_HOME_PHONE,
|
||||
CONTACT_PERSON: data.CONTACT_PERSON,
|
||||
CONTACT_OFFICE_PHONE: data.CONTACT_OFFICE_PHONE,
|
||||
CONTACT_MOBILE_PHONE: data.CONTACT_MOBILE_PHONE,
|
||||
CONTACT_HOME_PHONE: data.CONTACT_HOME_PHONE,
|
||||
CONTACT_EMAIL: data.CONTACT_EMAIL,
|
||||
TOTAL_PERSONNEL: data.TOTAL_PERSONNEL,
|
||||
ESTABLISHMENT_DATE: data.ESTABLISHMENT_DATE,
|
||||
EMERGENCY_COMMUNICATION_MODE: data.EMERGENCY_COMMUNICATION_MODE,
|
||||
SUPERVISING_UNIT_NAME: data.SUPERVISING_UNIT_NAME,
|
||||
SUPERVISING_UNIT_ADDRESS: data.SUPERVISING_UNIT_ADDRESS,
|
||||
MAIN_DUTIES: data.MAIN_DUTIES,
|
||||
MAIN_EQUIPMENT_DESCRIPTION: data.MAIN_EQUIPMENT_DESCRIPTION,
|
||||
SPECIALTY_DESCRIPTION: data.SPECIALTY_DESCRIPTION,
|
||||
QUALIFICATION_LEVEL: data.QUALIFICATION_LEVEL,
|
||||
EMERGENCY_RESCUE_EXPERIENCE: data.EMERGENCY_RESCUE_EXPERIENCE,
|
||||
EXPECTED_PREPARATION_TIME: data.EXPECTED_PREPARATION_TIME,
|
||||
ASSEMBLY_DEPARTURE_LOCATION: data.ASSEMBLY_DEPARTURE_LOCATION,
|
||||
SELF_PROVIDED_TRANSPORT: data.SELF_PROVIDED_TRANSPORT,
|
||||
REQUIRES_BACKUP_SUPPORT: data.REQUIRES_BACKUP_SUPPORT,
|
||||
REMARK: data.REMARK,
|
||||
Id: data.ID
|
||||
}
|
||||
}).catch((e) => {
|
||||
console.error('获取详情数据失败', e)
|
||||
})
|
||||
},
|
||||
handleAdd() {
|
||||
this.dialogFormEdit = true
|
||||
this.form = {}
|
||||
this.form.LONGITUDE = ''
|
||||
this.form.LATITUDE = ''
|
||||
this.dialogType = 'saveUser'
|
||||
this.$refs.upload.clearFiles()
|
||||
},
|
||||
confirm() {
|
||||
this.dataSave()
|
||||
},
|
||||
dataSave() {
|
||||
this.listLoading = true
|
||||
requestFN('/major/emergency/save', this.form).then((data) => {
|
||||
this.listLoading = false
|
||||
this.dialogFormEdit = false
|
||||
this.varList = []
|
||||
this.listQuery.page = 1
|
||||
this.getList()
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
//* *****************************删除********************************
|
||||
handleDelete(id, RESCUE_TEAM_NAME) {
|
||||
this.$confirm('确定要删除[' + RESCUE_TEAM_NAME + ']吗?', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.listLoading = true
|
||||
requestFN(
|
||||
'/major/emergency/delete',
|
||||
{
|
||||
id: id
|
||||
}
|
||||
).then((data) => {
|
||||
if (data.result == 'success') {
|
||||
this.listLoading = false
|
||||
this.getList()
|
||||
}
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
makeAll() {
|
||||
const _selectData = this.$refs.multipleTable.selection
|
||||
console.info('_selectData')
|
||||
console.info(_selectData)
|
||||
if (_selectData == null || _selectData.length == 0) {
|
||||
this.$message({
|
||||
message: '请选中要删除的项...',
|
||||
type: 'error'
|
||||
})
|
||||
return false
|
||||
}
|
||||
const ids = _selectData.map((item, index) => {
|
||||
return item.ID
|
||||
}).join(',')
|
||||
|
||||
this.$confirm('确定要删除选中的数据吗?', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.listLoading = true
|
||||
requestFN(
|
||||
'/major/emergency/deleteAll',
|
||||
{
|
||||
ids: ids
|
||||
}
|
||||
).then(() => {
|
||||
this.listLoading = false
|
||||
this.varList = []
|
||||
this.listQuery.page = 1
|
||||
this.$refs.multipleTable.clearSelection()
|
||||
this.getList()
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
getQuery() {
|
||||
this.$refs.multipleTable.clearSelection()
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,19 @@
|
|||
<template>
|
||||
<div>
|
||||
<list v-show="activeName=='list'" ref="list" />
|
||||
<detail v-if="activeName=='detail'"/>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import list from './components/list.vue'
|
||||
import detail from './components/detail.vue'
|
||||
export default {
|
||||
components: { list, detail },
|
||||
data() {
|
||||
return {
|
||||
activeName: 'list',
|
||||
CASE_ID: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,3 @@
|
|||
<template>
|
||||
<router-view />
|
||||
</template>
|
Loading…
Reference in New Issue