|
@@ -28,7 +28,7 @@
|
|
</el-carousel-item>
|
|
</el-carousel-item>
|
|
</el-carousel>
|
|
</el-carousel>
|
|
</div>
|
|
</div>
|
|
- <el-button size="mini" type="primary" @click="showUpdateYjYuAn">预案调整
|
|
|
|
|
|
+ <el-button size="mini" type="primary" class="yatz_button" @click="showUpdateYjYuAn">预案调整
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
<!-- 应急预案end -->
|
|
<!-- 应急预案end -->
|
|
@@ -48,8 +48,10 @@
|
|
<el-input type="number" v-model="radius" style="width: 80px;" placeholder="请输入搜索半径"/>
|
|
<el-input type="number" v-model="radius" style="width: 80px;" placeholder="请输入搜索半径"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</dv-border-box-7>
|
|
</dv-border-box-7>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
<!-- 左侧资源end -->
|
|
<!-- 左侧资源end -->
|
|
<!-- 底部工具栏 -->
|
|
<!-- 底部工具栏 -->
|
|
@@ -156,7 +158,7 @@
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="z-info-btm-grp-right">
|
|
<div class="z-info-btm-grp-right">
|
|
- <el-button size="small" icon="el-icon-mic">会议
|
|
|
|
|
|
+ <el-button size="small" icon="el-icon-mic" @click="joinMeeting()">会议
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -168,6 +170,27 @@
|
|
<div style="text-align:left">
|
|
<div style="text-align:left">
|
|
<el-button size="small"
|
|
<el-button size="small"
|
|
icon="el-icon-s-flag"
|
|
icon="el-icon-s-flag"
|
|
|
|
+ @click="updateCentereventTEventcatalogueStatus('qr',true)">
|
|
|
|
+ 确认
|
|
|
|
+ </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_7'">
|
|
|
|
+ <div style="text-align:left">
|
|
|
|
+ <el-button size="small"
|
|
|
|
+ icon="el-icon-s-flag"
|
|
@click="updateCentereventTEventcatalogueStatus('qs',false)">
|
|
@click="updateCentereventTEventcatalogueStatus('qs',false)">
|
|
签收
|
|
签收
|
|
</el-button>
|
|
</el-button>
|
|
@@ -296,7 +319,7 @@
|
|
v-model="filterText">
|
|
v-model="filterText">
|
|
</el-input>
|
|
</el-input>
|
|
<el-tree
|
|
<el-tree
|
|
- class="tree-border"
|
|
|
|
|
|
+ class="tree-border tree_scroll"
|
|
style="height: 20vh; overflow-y:scroll"
|
|
style="height: 20vh; overflow-y:scroll"
|
|
:data="deptOptionsLiandong"
|
|
:data="deptOptionsLiandong"
|
|
show-checkbox
|
|
show-checkbox
|
|
@@ -320,15 +343,18 @@
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="联系人" v-if="eventStatusButton=='qs'">
|
|
|
|
- <el-select multiple collapse-tags v-model='sendUserFegin' placeholder='请选择联系人!' clearable>
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in userFeginList"
|
|
|
|
- :label="item.nickName"
|
|
|
|
- :value="item.phonenumber"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <!--<el-form-item label="联系人" v-if="eventStatusButton=='qs'">-->
|
|
|
|
+ <!--<el-select multiple collapse-tags v-model='sendUserFegin' placeholder='请选择联系人!' clearable filterable>-->
|
|
|
|
+ <!--<el-option-->
|
|
|
|
+ <!--v-for="item in userFeginList"-->
|
|
|
|
+ <!--:label="item.nickName"-->
|
|
|
|
+ <!--:value="item.phonenumber"-->
|
|
|
|
+ <!--/>-->
|
|
|
|
+ <!--</el-select>-->
|
|
|
|
+ <!--</el-form-item>-->
|
|
|
|
+ <el-button size="mini" type="primary" v-if="eventStatusButton=='qr'"
|
|
|
|
+ @click="updateCentereventTEventcatalogueStatus('qr',false)">确认
|
|
|
|
+ </el-button>
|
|
<el-button size="mini" type="primary" v-if="eventStatusButton=='qs'"
|
|
<el-button size="mini" type="primary" v-if="eventStatusButton=='qs'"
|
|
@click="updateCentereventTEventcatalogueStatus('qs',true)">签收
|
|
@click="updateCentereventTEventcatalogueStatus('qs',true)">签收
|
|
</el-button>
|
|
</el-button>
|
|
@@ -344,7 +370,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog title="调整预案" :visible.sync="showGuanLianYuAnConfirm" v-if="showGuanLianYuAnConfirm" width="50%"
|
|
<el-dialog title="调整预案" :visible.sync="showGuanLianYuAnConfirm" v-if="showGuanLianYuAnConfirm" width="50%"
|
|
- class="top-dialog">
|
|
|
|
|
|
+ class="top-dialog tz_tk">
|
|
<el-form label-width="80px">
|
|
<el-form label-width="80px">
|
|
<el-form-item label="关联预案">
|
|
<el-form-item label="关联预案">
|
|
<el-select v-model="sendGuanLianYuAn" placeholder="请选择关联预案!" clearable>
|
|
<el-select v-model="sendGuanLianYuAn" placeholder="请选择关联预案!" clearable>
|
|
@@ -356,8 +382,9 @@
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-button size="mini" type="primary" @click="updateYjYuAn">确定
|
|
|
|
|
|
+ <el-button size="mini" type="primary" class="fr_button" @click="updateYjYuAn">确定
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <div style="clear: both;"></div>
|
|
</el-form>
|
|
</el-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog title="责任制" :visible.sync="showResponsibilityDialog" v-if="showResponsibilityDialog" width="65%"
|
|
<el-dialog title="责任制" :visible.sync="showResponsibilityDialog" v-if="showResponsibilityDialog" width="65%"
|
|
@@ -369,7 +396,7 @@
|
|
<div class="leftItem d-l-con padding-box nowrap" v-for="(item,index) in depteventList">
|
|
<div class="leftItem d-l-con padding-box nowrap" v-for="(item,index) in depteventList">
|
|
<div class="bgt-info">
|
|
<div class="bgt-info">
|
|
<div class="bgt-info-name" :class="{on:iconCurrentIndex==item.deptId}"
|
|
<div class="bgt-info-name" :class="{on:iconCurrentIndex==item.deptId}"
|
|
- @click="dutysystemSelect(item.deptId,item.deptName,item.id)">{{item.deptName}}
|
|
|
|
|
|
+ @click="dutysystemSelect(item.deptId,item.deptName,item.id)">{{ item.deptName }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -382,9 +409,16 @@
|
|
v-if="depteventId!=null&&depteventId!=''"
|
|
v-if="depteventId!=null&&depteventId!=''"
|
|
@click="addLine">添加
|
|
@click="addLine">添加
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="danger"
|
|
|
|
+ v-if="depteventId!=null&&depteventId!=''"
|
|
|
|
+ @click="finUserByDept">选择
|
|
|
|
+ </el-button>
|
|
<el-table
|
|
<el-table
|
|
:data="dutysystemTableData"
|
|
:data="dutysystemTableData"
|
|
- style="width: 100%">
|
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ :rules="rules">
|
|
<el-table-column prop="id" label="主键" v-if="false">
|
|
<el-table-column prop="id" label="主键" v-if="false">
|
|
<template slot-scope="scope" hidden>
|
|
<template slot-scope="scope" hidden>
|
|
<el-input v-model="scope.row.id" readonly placeholder="主键"></el-input>
|
|
<el-input v-model="scope.row.id" readonly placeholder="主键"></el-input>
|
|
@@ -392,7 +426,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="name" label="姓名">
|
|
<el-table-column prop="name" label="姓名">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-input v-model="scope.row.name" placeholder="姓名"></el-input>
|
|
|
|
|
|
+ <el-input v-model="scope.row.name" placeholder="姓名" οninput="value=value.replace(/^[\u4e00-\u9fa5]{2,4}$/,'')"></el-input>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="post" label="岗位">
|
|
<el-table-column prop="post" label="岗位">
|
|
@@ -402,7 +436,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="telphone" label="手机号码">
|
|
<el-table-column prop="telphone" label="手机号码">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-input v-model="scope.row.telphone" placeholder="手机号码"></el-input>
|
|
|
|
|
|
+ <el-input v-model="scope.row.telphone" placeholder="手机号码" οninput="value=value.replace(/^((13[0-9])|(14[5-9])|(15([0-3]|[5-9]))|(16[6-7])|(17[1-8])|(18[0-9])|(19[1|3])|(19[5|6])|(19[8|9]))\d{8}$/,'')"></el-input>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="bookbuytime" label="操作">
|
|
<el-table-column prop="bookbuytime" label="操作">
|
|
@@ -413,18 +447,18 @@
|
|
icon="el-icon-delete"
|
|
icon="el-icon-delete"
|
|
@click="handleDelete(scope.$index, scope.row)">删除
|
|
@click="handleDelete(scope.$index, scope.row)">删除
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="danger"
|
|
|
|
- icon="el-icon-save"
|
|
|
|
- @click="handleSave(scope.$index, scope.row)">保存
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ <!--<el-button-->
|
|
|
|
+ <!--size="mini"-->
|
|
|
|
+ <!--type="danger"-->
|
|
|
|
+ <!--icon="el-icon-save"-->
|
|
|
|
+ <!--@click="handleSave(scope.$index, scope.row)">保存-->
|
|
|
|
+ <!--</el-button>-->
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <el-button size="mini" type="primary" class="fr_button" @click="closeResponsibilityDialog">确定
|
|
|
|
|
|
+ <el-button size="mini" type="primary" class="fr_button" @click="addResponsibilityDialog">确定
|
|
</el-button>
|
|
</el-button>
|
|
<div style="clear: both;"></div>
|
|
<div style="clear: both;"></div>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -940,6 +974,9 @@
|
|
<div id="playWnd" class="playWnd" style="left: 0px; top: 0px;"></div>
|
|
<div id="playWnd" class="playWnd" style="left: 0px; top: 0px;"></div>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog title="人员选择" :visible.sync="showFindUserByDept" width="40%">
|
|
|
|
+ <findUserByDept v-if="showFindUserByDept" ref="findUserByDept" :deptId="iconCurrentIndex" @addSelection="addSelection"></findUserByDept>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -951,6 +988,7 @@ import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部
|
|
import eventLogUpload from '@/views/eventLogUpload.vue' //日志上传文件
|
|
import eventLogUpload from '@/views/eventLogUpload.vue' //日志上传文件
|
|
import areaSupermap from '@/components/supermap'//区域标记地图
|
|
import areaSupermap from '@/components/supermap'//区域标记地图
|
|
import TcPlayer from '@/components/TcPlayer' //视频预览
|
|
import TcPlayer from '@/components/TcPlayer' //视频预览
|
|
|
|
+import findUserByDept from '@/views/findUserByDept' //责任人选择弹框
|
|
import {
|
|
import {
|
|
getEventDetail,
|
|
getEventDetail,
|
|
sendEventLog,
|
|
sendEventLog,
|
|
@@ -974,7 +1012,14 @@ import {
|
|
import {
|
|
import {
|
|
getHaiKangVideoServer
|
|
getHaiKangVideoServer
|
|
} from '@/api/haikang/haikang'
|
|
} from '@/api/haikang/haikang'
|
|
-
|
|
|
|
|
|
+import {
|
|
|
|
+ hasConferences,
|
|
|
|
+ createConferences, getUserInfo
|
|
|
|
+} from "@/api/meeting"
|
|
|
|
+import {
|
|
|
|
+ getDahuaVideoServer
|
|
|
|
+} from '@/api/dahua/dahua'
|
|
|
|
+import DHWs from '@/dahua/lib/DHWs'
|
|
export default {
|
|
export default {
|
|
dicts: ['task_source'],
|
|
dicts: ['task_source'],
|
|
watch: {
|
|
watch: {
|
|
@@ -988,12 +1033,15 @@ export default {
|
|
supermapDialog,
|
|
supermapDialog,
|
|
eventLogUpload,
|
|
eventLogUpload,
|
|
areaSupermap,
|
|
areaSupermap,
|
|
- TcPlayer
|
|
|
|
|
|
+ TcPlayer,
|
|
|
|
+ findUserByDept
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ showFindUserByDept: false,//责任人选择框
|
|
//海康
|
|
//海康
|
|
cameraTitle: '',
|
|
cameraTitle: '',
|
|
|
|
+ cameraCode:'',
|
|
cameraVisible: false,
|
|
cameraVisible: false,
|
|
initCount: 0,
|
|
initCount: 0,
|
|
pubKey: '',
|
|
pubKey: '',
|
|
@@ -1013,17 +1061,17 @@ export default {
|
|
sendDeptName: null,//签收部门/发起部门
|
|
sendDeptName: null,//签收部门/发起部门
|
|
sendEventType: null,//事件类型
|
|
sendEventType: null,//事件类型
|
|
sendHuoZaiBanJing: null,//火灾报告
|
|
sendHuoZaiBanJing: null,//火灾报告
|
|
- sendUserFegin: [],//联系人
|
|
|
|
sendGuanLianYuAn: null,//关联预案
|
|
sendGuanLianYuAn: null,//关联预案
|
|
|
|
+ sendUserFegin: [],//联系人
|
|
sendTaskSource: null,//任务来源
|
|
sendTaskSource: null,//任务来源
|
|
sendTaskTitle: null,//联动标题
|
|
sendTaskTitle: null,//联动标题
|
|
sendTaskContent: null,//联动内容
|
|
sendTaskContent: null,//联动内容
|
|
sendLianDongDept: [],//联动部门
|
|
sendLianDongDept: [],//联动部门
|
|
eventTypeList: [],//事件类型列表
|
|
eventTypeList: [],//事件类型列表
|
|
guanLianYuAnList: [],//关联预案列表
|
|
guanLianYuAnList: [],//关联预案列表
|
|
|
|
+ userFeginList: [],//联系人列表
|
|
deptOptions: [],//签收部门
|
|
deptOptions: [],//签收部门
|
|
deptOptionsLiandong: [],//联动部门
|
|
deptOptionsLiandong: [],//联动部门
|
|
- userFeginList: [],//联系人列表
|
|
|
|
eventStatusButton: null,//流程按钮标识
|
|
eventStatusButton: null,//流程按钮标识
|
|
eventConfirmTitle: null,//弹窗标题 ---签收 误报 重复
|
|
eventConfirmTitle: null,//弹窗标题 ---签收 误报 重复
|
|
defaultProps: {
|
|
defaultProps: {
|
|
@@ -1129,6 +1177,7 @@ export default {
|
|
dataStatus: null,//事件流程按钮
|
|
dataStatus: null,//事件流程按钮
|
|
deptId: null,//事件流程部门
|
|
deptId: null,//事件流程部门
|
|
eventCode: null,
|
|
eventCode: null,
|
|
|
|
+ eventName: null,
|
|
longitude: null,
|
|
longitude: null,
|
|
latitude: null,
|
|
latitude: null,
|
|
eventLog: null,
|
|
eventLog: null,
|
|
@@ -1144,21 +1193,45 @@ export default {
|
|
radius: 50,//资源搜索半径
|
|
radius: 50,//资源搜索半径
|
|
resourcesList: [
|
|
resourcesList: [
|
|
{
|
|
{
|
|
- resourceName: '重点企业',
|
|
|
|
- type: 'zdqygl',
|
|
|
|
|
|
+ resourceName: '取水口',
|
|
|
|
+ type: 'qsk',
|
|
|
|
+ count: '1',
|
|
|
|
+ icon: 'sj-icon-waterintake'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ resourceName: '水鹤',
|
|
|
|
+ type: 'sh',
|
|
|
|
+ icon: 'sj-icon-watercrane'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ resourceName: '消防栓',
|
|
|
|
+ type: 'xfs',
|
|
|
|
+ count: '1',
|
|
|
|
+ icon: 'sj-icon-firehydrant'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ resourceName: '起降点',
|
|
|
|
+ type: 'qjd',
|
|
|
|
+ count: '1',
|
|
|
|
+ icon: 'sj-icon-landing'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ resourceName: '检查站',
|
|
|
|
+ type: 'jcz',
|
|
count: '1',
|
|
count: '1',
|
|
- icon: 'sj-icon-enterprise'
|
|
|
|
|
|
+ icon: 'sj-icon-checkpoint'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- resourceName: '禁烧区',
|
|
|
|
- type: 'jsqgl',
|
|
|
|
- icon: 'sj-icon-area'
|
|
|
|
|
|
+ resourceName: '防火队',
|
|
|
|
+ type: 'fhd',
|
|
|
|
+ count: '1',
|
|
|
|
+ icon: 'sj-icon-fireteam'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- resourceName: '污染源',
|
|
|
|
- type: 'wrygl',
|
|
|
|
|
|
+ resourceName: '重点区域',
|
|
|
|
+ type: 'zdqy',
|
|
count: '1',
|
|
count: '1',
|
|
- icon: 'sj-icon-pollution'
|
|
|
|
|
|
+ icon: 'sj-icon-keyAreas'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
resourceName: '摄像头',
|
|
resourceName: '摄像头',
|
|
@@ -1169,13 +1242,19 @@ export default {
|
|
],
|
|
],
|
|
resourcesListCheck: [],
|
|
resourcesListCheck: [],
|
|
//文本域
|
|
//文本域
|
|
- feedback: ''
|
|
|
|
|
|
+ feedback: '',
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
calendarDay: null//首页日历选择
|
|
calendarDay: null//首页日历选择
|
|
},
|
|
},
|
|
|
|
+ created() {
|
|
|
|
+ /** ----------------------------------摄像头预览开始------------------------------------- */
|
|
|
|
+ const DHWsInstance = DHWs.getInstance()
|
|
|
|
+ this.ws = DHWsInstance
|
|
|
|
+ /** ----------------------------------摄像头预览结束------------------------------------- */
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
/************************************责任制-开始****************************************/
|
|
/************************************责任制-开始****************************************/
|
|
addLine: function() {//添加负责人行数
|
|
addLine: function() {//添加负责人行数
|
|
@@ -1190,6 +1269,20 @@ export default {
|
|
//添加新的行数
|
|
//添加新的行数
|
|
this.dutysystemTableData.push(newValue)
|
|
this.dutysystemTableData.push(newValue)
|
|
},
|
|
},
|
|
|
|
+ finUserByDept: function(){ //根据部门选择责任人
|
|
|
|
+ this.showFindUserByDept=true;
|
|
|
|
+ },
|
|
|
|
+ addSelection: function(userList){
|
|
|
|
+ for (let i in this.dutysystemTableData) {
|
|
|
|
+ for (let j in userList) {
|
|
|
|
+ if(this.dutysystemTableData[i].name == userList[j].name && this.dutysystemTableData[i].telphone == userList[j].telphone){
|
|
|
|
+ userList.splice(j, 1);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.dutysystemTableData = this.dutysystemTableData.concat(userList);
|
|
|
|
+ this.showFindUserByDept=false;
|
|
|
|
+ },
|
|
handleDelete: function(index, row) {//删除负责人行数
|
|
handleDelete: function(index, row) {//删除负责人行数
|
|
if (row.id != null && row.id != '') {
|
|
if (row.id != null && row.id != '') {
|
|
let param = { ids: row.id }
|
|
let param = { ids: row.id }
|
|
@@ -1228,8 +1321,8 @@ export default {
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
+
|
|
showResponsibility() {//弹出责任制弹窗
|
|
showResponsibility() {//弹出责任制弹窗
|
|
let param = { eventCode: this.eventCode }
|
|
let param = { eventCode: this.eventCode }
|
|
centereventtdepteventList(param).then(res => {
|
|
centereventtdepteventList(param).then(res => {
|
|
@@ -1244,8 +1337,39 @@ export default {
|
|
this.iconCurrentIndex = ''
|
|
this.iconCurrentIndex = ''
|
|
this.showResponsibilityDialog = false
|
|
this.showResponsibilityDialog = false
|
|
},
|
|
},
|
|
|
|
+ addResponsibilityDialog() {//责任制保存
|
|
|
|
+ let reg_user = /^[\u4e00-\u9fa5]{2,4}$/; //2-4个中文字符正则
|
|
|
|
+ let reg_tel = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/; //11位手机号码正则
|
|
|
|
+ for(let i in this.dutysystemTableData){
|
|
|
|
+ if(!reg_user.test(this.dutysystemTableData[i].name)){
|
|
|
|
+ this.$message.error(`请输入正确姓名!`)
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if(!reg_tel.test(this.dutysystemTableData[i].telphone)){
|
|
|
|
+ this.$message.error(`请输入正确手机号码!`)
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(this.dutysystemTableData[i].id==null || this.dutysystemTableData[i].id==''){
|
|
|
|
+ this.dutysystemTableData[i].dept = this.dutysystemDeptName;
|
|
|
|
+ this.dutysystemTableData[i].depteventId = this.depteventId;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ const param = {centereventTDutySystemList:this.dutysystemTableData,eventCode:this.eventCode,eventName:this.eventName}
|
|
|
|
+ dutysystemAdd(param).then(res => {
|
|
|
|
+ this.$message.success(`保存成功!`)
|
|
|
|
+ this.dutysystemSelect(this.iconCurrentIndex, this.dutysystemDeptName, this.depteventId);
|
|
|
|
+ this.closeResponsibilityDialog();
|
|
|
|
+ })
|
|
|
|
+ },
|
|
/************************************责任制-结束****************************************/
|
|
/************************************责任制-结束****************************************/
|
|
showheatPlotting() {
|
|
showheatPlotting() {
|
|
|
|
+ // if (!this.$refs.supermapDialog.isheatPlotting) {
|
|
|
|
+ // this.$refs.supermapDialog.showheatPlotting(this.latitude, this.longitude)
|
|
|
|
+ // } else {
|
|
|
|
+ // this.$refs.supermapDialog.isheatPlotting = false
|
|
|
|
+ // }
|
|
|
|
+ // this.cancelEventShow();
|
|
this.eventDialog = false;
|
|
this.eventDialog = false;
|
|
this.$emit('getFirespread', this.eventCode);
|
|
this.$emit('getFirespread', this.eventCode);
|
|
},
|
|
},
|
|
@@ -1259,16 +1383,21 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
updateYjYuAn() {
|
|
updateYjYuAn() {
|
|
- let param = { eventCode: this.eventCode, reserve: this.sendGuanLianYuAn }
|
|
|
|
- updateYjYuAn(param).then(res => {
|
|
|
|
- //事件调整关联预案
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- this.$message.success(`预案调整成功!`)
|
|
|
|
- this.refreshEventDialog(this.eventCode)
|
|
|
|
- this.sendGuanLianYuAn = null
|
|
|
|
- this.showGuanLianYuAnConfirm = false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ if(this.eventStatusValue=='forest_event_status_1'){
|
|
|
|
+ this.$message.error(`未签收事件无法修改预案信息,请先签收!`)
|
|
|
|
+ return
|
|
|
|
+ }else{
|
|
|
|
+ let param = { eventCode: this.eventCode, reserve: this.sendGuanLianYuAn }
|
|
|
|
+ updateYjYuAn(param).then(res => {
|
|
|
|
+ //事件调整关联预案
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message.success(`预案调整成功!`)
|
|
|
|
+ this.refreshEventDialog(this.eventCode)
|
|
|
|
+ this.sendGuanLianYuAn = null
|
|
|
|
+ this.showGuanLianYuAnConfirm = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
listResourceByWz(type) {
|
|
listResourceByWz(type) {
|
|
if (this.resourcesListCheck.indexOf(type) > -1) {
|
|
if (this.resourcesListCheck.indexOf(type) > -1) {
|
|
@@ -1297,17 +1426,27 @@ export default {
|
|
if (res.data.length > 50) {
|
|
if (res.data.length > 50) {
|
|
markersMap.isAggregation = true
|
|
markersMap.isAggregation = true
|
|
}
|
|
}
|
|
- if (type == 'zdqygl') {
|
|
|
|
- markersMap.icon = 'sj-icon-map-centerdata-t-environment-key-enterprise'
|
|
|
|
- } else if (type == 'jsqgl') {
|
|
|
|
- markersMap.icon = 'sj-icon-map-centerdata-t-environment-prohibition-area'
|
|
|
|
- } else if (type == 'wrygl') {
|
|
|
|
- markersMap.icon = 'sj-icon-map-centerdata-t-environment-source-pollution'
|
|
|
|
- }else if (type == 'sxt') {
|
|
|
|
|
|
+ if (type == 'qsk') {
|
|
|
|
+ markersMap.icon = 'sj-icon-waterintake'
|
|
|
|
+ } else if (type == 'sh') {
|
|
|
|
+ markersMap.icon = 'sj-icon-watercrane'
|
|
|
|
+ } else if (type == 'xfs') {
|
|
|
|
+ markersMap.icon = 'sj-icon-firehydrant'
|
|
|
|
+ } else if (type == 'qjd') {
|
|
|
|
+ markersMap.icon = 'sj-icon-landing'
|
|
|
|
+ } else if (type == 'jcz') {
|
|
|
|
+ markersMap.icon = 'sj-icon-checkpoint'
|
|
|
|
+ } else if (type == 'fhd') {
|
|
|
|
+ markersMap.icon = 'sj-icon-fireteam'
|
|
|
|
+ } else if (type == 'zdqy') {
|
|
|
|
+ markersMap.icon = 'sj-icon-keyAreas'
|
|
|
|
+ } else if (type == 'sxt') {
|
|
markersMap.icon = 'camera'
|
|
markersMap.icon = 'camera'
|
|
if (res.data[i].cameraCode != null) {
|
|
if (res.data[i].cameraCode != null) {
|
|
markersMap.click = 'preview'
|
|
markersMap.click = 'preview'
|
|
- markersMap.parameter = res.data[i].cameraCode
|
|
|
|
|
|
+ // markersMap.parameter = res.data[i].cameraCode
|
|
|
|
+ markersMap.parameter = {code:res.data.data[i].cameraCode,
|
|
|
|
+ type:res.data.data[i].cameraFactory}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
markersMap.lng = res.data[i].longitude
|
|
markersMap.lng = res.data[i].longitude
|
|
@@ -1367,10 +1506,10 @@ export default {
|
|
//关闭事件签收弹窗
|
|
//关闭事件签收弹窗
|
|
this.sendDeptId = null
|
|
this.sendDeptId = null
|
|
this.sendDeptName = null
|
|
this.sendDeptName = null
|
|
|
|
+ this.sendUserFegin = []
|
|
this.sendEventType = null
|
|
this.sendEventType = null
|
|
this.sendHuoZaiBanJing = null
|
|
this.sendHuoZaiBanJing = null
|
|
this.sendGuanLianYuAn = null
|
|
this.sendGuanLianYuAn = null
|
|
- this.sendUserFegin = []
|
|
|
|
this.longitude = null
|
|
this.longitude = null
|
|
this.latitude = null
|
|
this.latitude = null
|
|
this.sendTaskTitle = null
|
|
this.sendTaskTitle = null
|
|
@@ -1390,10 +1529,10 @@ export default {
|
|
//清空表单数据
|
|
//清空表单数据
|
|
this.sendDeptId = null
|
|
this.sendDeptId = null
|
|
this.sendDeptName = null
|
|
this.sendDeptName = null
|
|
|
|
+ this.sendUserFegin = []
|
|
this.sendEventType = null
|
|
this.sendEventType = null
|
|
this.sendHuoZaiBanJing = null
|
|
this.sendHuoZaiBanJing = null
|
|
this.sendGuanLianYuAn = null
|
|
this.sendGuanLianYuAn = null
|
|
- this.sendUserFegin = []
|
|
|
|
this.sendTaskTitle = null
|
|
this.sendTaskTitle = null
|
|
this.sendTaskSource = null
|
|
this.sendTaskSource = null
|
|
this.sendTaskContent = null
|
|
this.sendTaskContent = null
|
|
@@ -1512,7 +1651,7 @@ export default {
|
|
* */
|
|
* */
|
|
async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
|
|
async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
|
|
this.eventStatusButton = eventStatus
|
|
this.eventStatusButton = eventStatus
|
|
- let that = this
|
|
|
|
|
|
+ let that=this
|
|
if (!isSend) {//事件弹窗
|
|
if (!isSend) {//事件弹窗
|
|
if (eventStatus == 'qs') {//签收
|
|
if (eventStatus == 'qs') {//签收
|
|
that.eventConfirmTitle = '事件签收'
|
|
that.eventConfirmTitle = '事件签收'
|
|
@@ -1529,12 +1668,6 @@ export default {
|
|
that.guanLianYuAnList = res.data
|
|
that.guanLianYuAnList = res.data
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- await userFeginlist().then(res => {
|
|
|
|
- //联系人列表
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- that.userFeginList = res.data
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
await selectByeventCode(that.eventCode).then(res => {
|
|
await selectByeventCode(that.eventCode).then(res => {
|
|
//签收部门
|
|
//签收部门
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -1543,6 +1676,8 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
that.showEventConfirm = true
|
|
that.showEventConfirm = true
|
|
|
|
+ } else if (eventStatus == 'qr') {//确认
|
|
|
|
+ that.eventConfirmTitle = '事件确认'
|
|
} else if (eventStatus == 'wb') {//误报
|
|
} else if (eventStatus == 'wb') {//误报
|
|
that.eventConfirmTitle = '事件误报'
|
|
that.eventConfirmTitle = '事件误报'
|
|
await selectByeventCode(that.eventCode).then(res => {
|
|
await selectByeventCode(that.eventCode).then(res => {
|
|
@@ -1630,6 +1765,30 @@ export default {
|
|
})
|
|
})
|
|
|
|
|
|
} else if (eventStatus == 'gd') {
|
|
} 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(!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
|
|
|
|
+ }
|
|
|
|
+
|
|
//事件处理流程--归档
|
|
//事件处理流程--归档
|
|
let param = {
|
|
let param = {
|
|
deptId: that.deptId,
|
|
deptId: that.deptId,
|
|
@@ -1647,8 +1806,8 @@ export default {
|
|
that.refreshEvent(that.eventCode)
|
|
that.refreshEvent(that.eventCode)
|
|
that.cancelEventConfirm_send()
|
|
that.cancelEventConfirm_send()
|
|
that.showEventConfirm_gd = false
|
|
that.showEventConfirm_gd = false
|
|
- that.$emit('getEventList', that.calendarDay)
|
|
|
|
- that.$emit('getTodayEvents', that.calendarDay)
|
|
|
|
|
|
+ that.$emit('getEventList', that.calendarDay,10,1)
|
|
|
|
+ that.$emit('getSupermap', that.calendarDay)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
@@ -1657,12 +1816,22 @@ export default {
|
|
that.$message.error(`请选择部门!`)
|
|
that.$message.error(`请选择部门!`)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (eventStatus == 'qs') {
|
|
|
|
+ if (that.sendHuoZaiBanJing == '' || that.sendHuoZaiBanJing == null) {
|
|
|
|
+ that.$message.error(`请输入火灾半径!`)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (that.sendEventType == '' || that.sendEventType == null) {
|
|
|
|
+ that.$message.error(`请选择事件类型!`)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
that.sendDeptId = that.deptId
|
|
that.sendDeptId = that.deptId
|
|
}
|
|
}
|
|
//事件处理流程
|
|
//事件处理流程
|
|
let param = {
|
|
let param = {
|
|
- phones: that.sendUserFegin,
|
|
|
|
|
|
+ phones:that.sendUserFegin,
|
|
eventCode: that.eventCode,
|
|
eventCode: that.eventCode,
|
|
deptId: that.sendDeptId,
|
|
deptId: that.sendDeptId,
|
|
deptName: that.sendDeptName,
|
|
deptName: that.sendDeptName,
|
|
@@ -1670,6 +1839,7 @@ export default {
|
|
eventType: that.sendEventType,
|
|
eventType: that.sendEventType,
|
|
id: that.eventId,
|
|
id: that.eventId,
|
|
czlx: '',
|
|
czlx: '',
|
|
|
|
+ cameraCode: that.cameraCode,
|
|
fireRadius: that.sendHuoZaiBanJing,
|
|
fireRadius: that.sendHuoZaiBanJing,
|
|
reserve: that.sendGuanLianYuAn
|
|
reserve: that.sendGuanLianYuAn
|
|
}
|
|
}
|
|
@@ -1679,8 +1849,8 @@ export default {
|
|
that.refreshEvent(that.eventCode)
|
|
that.refreshEvent(that.eventCode)
|
|
that.cancelEventConfirm_send()
|
|
that.cancelEventConfirm_send()
|
|
that.showEventConfirm = false
|
|
that.showEventConfirm = false
|
|
- that.$emit('getEventList', that.calendarDay)
|
|
|
|
- that.$emit('getTodayEvents', that.calendarDay)
|
|
|
|
|
|
+ that.$emit('getEventList', that.calendarDay,10,1)
|
|
|
|
+ that.$emit('getSupermap', that.calendarDay)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1693,12 +1863,7 @@ export default {
|
|
},
|
|
},
|
|
sendEventLog() {
|
|
sendEventLog() {
|
|
//日志发送
|
|
//日志发送
|
|
- let param = {
|
|
|
|
- eventCode: this.eventCode,
|
|
|
|
- logContent: this.eventLog,
|
|
|
|
- operation: 'bus_oper_type_2',
|
|
|
|
- operationType: 'log_oper_type_1'
|
|
|
|
- }
|
|
|
|
|
|
+ let param = { eventCode: this.eventCode, logContent: this.eventLog,operation:"bus_oper_type_2",operationType:"log_oper_type_1"}
|
|
sendEventLog(param).then(res => {
|
|
sendEventLog(param).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message.success(`发送成功!`)
|
|
this.$message.success(`发送成功!`)
|
|
@@ -1711,9 +1876,9 @@ export default {
|
|
this.$refs.eventLogUpload.eventLogUpload(this.eventCode)
|
|
this.$refs.eventLogUpload.eventLogUpload(this.eventCode)
|
|
},
|
|
},
|
|
cancelEventShow() {
|
|
cancelEventShow() {
|
|
- console.log('关闭事件弹窗')
|
|
|
|
this.dataStatus = null
|
|
this.dataStatus = null
|
|
this.deptId = null
|
|
this.deptId = null
|
|
|
|
+ console.log('关闭事件弹窗')
|
|
this.eventLogList = []
|
|
this.eventLogList = []
|
|
},
|
|
},
|
|
showEventDialog(eventCode) {
|
|
showEventDialog(eventCode) {
|
|
@@ -1721,17 +1886,18 @@ export default {
|
|
let that = this
|
|
let that = this
|
|
//获取事件详情
|
|
//获取事件详情
|
|
getEventDetail({ eventCode: eventCode }).then(res => {
|
|
getEventDetail({ eventCode: eventCode }).then(res => {
|
|
- this.eventDialog = true
|
|
|
|
- this.eventLogList = res.data.eventlog//日志列表
|
|
|
|
- this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
|
|
|
|
- this.address = res.data.catalogue.address
|
|
|
|
- this.eventStatusValue = res.data.catalogue.eventStatusValue
|
|
|
|
- this.eventType = res.data.catalogue.eventType
|
|
|
|
- this.dataStatus = res.data.catalogue.dataStatus
|
|
|
|
- this.deptId = res.data.catalogue.deptId
|
|
|
|
- this.eventId = res.data.catalogue.id
|
|
|
|
- this.longitude = res.data.catalogue.longitude
|
|
|
|
- this.latitude = res.data.catalogue.latitude
|
|
|
|
|
|
+ that.eventDialog = true
|
|
|
|
+ that.eventLogList = res.data.eventlog//日志列表
|
|
|
|
+ that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
|
|
|
|
+ that.address = res.data.catalogue.address
|
|
|
|
+ that.eventStatusValue = res.data.catalogue.eventStatusValue
|
|
|
|
+ that.eventType = res.data.catalogue.eventType
|
|
|
|
+ that.dataStatus = res.data.catalogue.dataStatus
|
|
|
|
+ that.deptId = res.data.catalogue.deptId
|
|
|
|
+ that.eventId = res.data.catalogue.id
|
|
|
|
+ that.longitude = res.data.catalogue.longitude
|
|
|
|
+ that.latitude = res.data.catalogue.latitude
|
|
|
|
+ that.eventName = res.data.catalogue.eventName
|
|
let markersMap = {
|
|
let markersMap = {
|
|
lng: 124.59,
|
|
lng: 124.59,
|
|
lat: 43.02,
|
|
lat: 43.02,
|
|
@@ -1754,6 +1920,8 @@ export default {
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
} else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
|
|
} else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
|
|
markersMap.icon = 'sj-icon-map-guidang'
|
|
markersMap.icon = 'sj-icon-map-guidang'
|
|
|
|
+ } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-queren'
|
|
}
|
|
}
|
|
markersMap.lng = res.data.catalogue.longitude
|
|
markersMap.lng = res.data.catalogue.longitude
|
|
markersMap.lat = res.data.catalogue.latitude
|
|
markersMap.lat = res.data.catalogue.latitude
|
|
@@ -1764,16 +1932,17 @@ export default {
|
|
that.$refs.supermapDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
|
|
that.$refs.supermapDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
|
|
that.$refs.supermapDialog.clearM(false)
|
|
that.$refs.supermapDialog.clearM(false)
|
|
that.$refs.supermapDialog.setMarkersRadius([markersMap])
|
|
that.$refs.supermapDialog.setMarkersRadius([markersMap])
|
|
- that.$refs.supermapDialog.dropLocation(res.data.catalogue.latitude, res.data.catalogue.longitude)
|
|
|
|
|
|
+ that.$refs.supermapDialog.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
|
|
}, 2000)
|
|
}, 2000)
|
|
if (res.data.centermonitorTCamera != null) {
|
|
if (res.data.centermonitorTCamera != null) {
|
|
|
|
+ that.cameraCode = res.data.centermonitorTCamera.cameraCode;
|
|
let markersMap = {
|
|
let markersMap = {
|
|
lng: 124.59,
|
|
lng: 124.59,
|
|
lat: 43.02,
|
|
lat: 43.02,
|
|
icon: 'camera',
|
|
icon: 'camera',
|
|
bindPopupHtml: '',
|
|
bindPopupHtml: '',
|
|
click: 'preview',
|
|
click: 'preview',
|
|
- parameter: res.data.centermonitorTCamera.cameraCode,
|
|
|
|
|
|
+ parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
|
|
keepBindPopup: false,
|
|
keepBindPopup: false,
|
|
isAggregation: false,
|
|
isAggregation: false,
|
|
radius: 0
|
|
radius: 0
|
|
@@ -1801,17 +1970,18 @@ export default {
|
|
let that = this
|
|
let that = this
|
|
//刷新--事件详情
|
|
//刷新--事件详情
|
|
getEventDetail({ eventCode: eventCode }).then(res => {
|
|
getEventDetail({ eventCode: eventCode }).then(res => {
|
|
- this.eventDialog = true
|
|
|
|
- this.eventLogList = res.data.eventlog
|
|
|
|
- this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
|
|
|
|
- this.address = res.data.catalogue.address
|
|
|
|
- this.eventStatusValue = res.data.catalogue.eventStatusValue
|
|
|
|
- this.eventType = res.data.catalogue.eventType
|
|
|
|
- this.dataStatus = res.data.catalogue.dataStatus
|
|
|
|
- this.deptId = res.data.catalogue.deptId
|
|
|
|
- this.eventId = res.data.catalogue.id
|
|
|
|
- this.latitude = res.data.catalogue.latitude
|
|
|
|
- this.longitude = res.data.catalogue.longitude
|
|
|
|
|
|
+ that.eventDialog = true
|
|
|
|
+ that.eventLogList = res.data.eventlog
|
|
|
|
+ that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
|
|
|
|
+ that.address = res.data.catalogue.address
|
|
|
|
+ that.eventStatusValue = res.data.catalogue.eventStatusValue
|
|
|
|
+ that.eventType = res.data.catalogue.eventType
|
|
|
|
+ that.dataStatus = res.data.catalogue.dataStatus
|
|
|
|
+ that.deptId = res.data.catalogue.deptId
|
|
|
|
+ that.eventId = res.data.catalogue.id
|
|
|
|
+ that.latitude = res.data.catalogue.latitude
|
|
|
|
+ that.longitude = res.data.catalogue.longitude
|
|
|
|
+ that.eventName = res.data.catalogue.eventName
|
|
let markersMap = {
|
|
let markersMap = {
|
|
lng: 124.59,
|
|
lng: 124.59,
|
|
lat: 43.02,
|
|
lat: 43.02,
|
|
@@ -1834,6 +2004,8 @@ export default {
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
} else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
|
|
} else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
|
|
markersMap.icon = 'sj-icon-map-guidang'
|
|
markersMap.icon = 'sj-icon-map-guidang'
|
|
|
|
+ } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-queren'
|
|
}
|
|
}
|
|
markersMap.lng = res.data.catalogue.longitude
|
|
markersMap.lng = res.data.catalogue.longitude
|
|
markersMap.lat = res.data.catalogue.latitude
|
|
markersMap.lat = res.data.catalogue.latitude
|
|
@@ -1847,7 +2019,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
that.$refs.supermapDialog.setMarkers([markersMap])
|
|
that.$refs.supermapDialog.setMarkers([markersMap])
|
|
}
|
|
}
|
|
- that.$refs.supermapDialog.dropLocation(res.data.catalogue.latitude, res.data.catalogue.longitude)
|
|
|
|
|
|
+ that.$refs.supermapDialog.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
|
|
}, 2000)
|
|
}, 2000)
|
|
if (res.data.centermonitorTCamera != null) {
|
|
if (res.data.centermonitorTCamera != null) {
|
|
let markersMap = {
|
|
let markersMap = {
|
|
@@ -1856,7 +2028,7 @@ export default {
|
|
icon: 'camera',
|
|
icon: 'camera',
|
|
bindPopupHtml: '',
|
|
bindPopupHtml: '',
|
|
click: 'preview',
|
|
click: 'preview',
|
|
- parameter: res.data.centermonitorTCamera.cameraCode,
|
|
|
|
|
|
+ parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
|
|
keepBindPopup: false,
|
|
keepBindPopup: false,
|
|
isAggregation: false,
|
|
isAggregation: false,
|
|
radius: 0
|
|
radius: 0
|
|
@@ -1888,6 +2060,7 @@ export default {
|
|
},
|
|
},
|
|
// 页面元素转图片
|
|
// 页面元素转图片
|
|
toImage() {
|
|
toImage() {
|
|
|
|
+ this.$message.success(`正在上传!请稍后...`)
|
|
// 手动创建一个 canvas 标签
|
|
// 手动创建一个 canvas 标签
|
|
const canvas = document.createElement('canvas')
|
|
const canvas = document.createElement('canvas')
|
|
// 获取父标签,意思是这个标签内的 DOM 元素生成图片
|
|
// 获取父标签,意思是这个标签内的 DOM 元素生成图片
|
|
@@ -1915,7 +2088,6 @@ export default {
|
|
html2canvas(canvasBox, options).then((canvas) => {
|
|
html2canvas(canvasBox, options).then((canvas) => {
|
|
// toDataURL 图片格式转成 base64
|
|
// toDataURL 图片格式转成 base64
|
|
let dataBase64 = canvas.toDataURL('image/png')
|
|
let dataBase64 = canvas.toDataURL('image/png')
|
|
- console.log(dataBase64)
|
|
|
|
this.uploadBase64(dataBase64)
|
|
this.uploadBase64(dataBase64)
|
|
})
|
|
})
|
|
canvasBox.appendChild(toolbar)
|
|
canvasBox.appendChild(toolbar)
|
|
@@ -1934,7 +2106,6 @@ export default {
|
|
this.regionalFlagOpen = true
|
|
this.regionalFlagOpen = true
|
|
},
|
|
},
|
|
showAreaLatLng: function(latlng) {//获取火灾区域经纬度
|
|
showAreaLatLng: function(latlng) {//获取火灾区域经纬度
|
|
- console.log(latlng)
|
|
|
|
this.regionalFlagObj.array = latlng
|
|
this.regionalFlagObj.array = latlng
|
|
this.$modal.msgSuccess('获取坐标成功!')
|
|
this.$modal.msgSuccess('获取坐标成功!')
|
|
},
|
|
},
|
|
@@ -1961,45 +2132,48 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
/** 预览按钮操作 */
|
|
/** 预览按钮操作 */
|
|
- preview(cameraCode) {
|
|
|
|
- let that = this
|
|
|
|
- // getDahuaVideoServer().then(newResponse => {
|
|
|
|
- // console.log(newResponse)
|
|
|
|
- // this.ws.detectConnectQt().then(res => {
|
|
|
|
- // if (res) { // 连接客户端成功
|
|
|
|
- // this.alertLogin()
|
|
|
|
- // this.ws.login({
|
|
|
|
- // loginIp: newResponse.loginIp,
|
|
|
|
- // loginPort: newResponse.loginPort,
|
|
|
|
- // userName: newResponse.userName,
|
|
|
|
- // userPwd: newResponse.userPwd,
|
|
|
|
- // token: '',
|
|
|
|
- // https: 1
|
|
|
|
- // })
|
|
|
|
- // this.ws.on('loginState', (res) => {
|
|
|
|
- // this.isLogin = res
|
|
|
|
- // console.log('---res-----', res)
|
|
|
|
- // if (res) {
|
|
|
|
- // this.alertLoginSuccess()
|
|
|
|
- // this.activePanel = 'key2'
|
|
|
|
- // this.realTimeVideoDialog(channelCode)
|
|
|
|
- // } else {
|
|
|
|
- // this.alertLoginFailed()
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // } else { // 连接客户端失败
|
|
|
|
- // this.alertReinstall()
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // })
|
|
|
|
- that.cameraVisible = true
|
|
|
|
- getHaiKangVideoServer({ cameraCode: cameraCode }).then(newResponse => {
|
|
|
|
- that.cameraTitle = '摄像头-' + newResponse.data.cameraName
|
|
|
|
- that.initPlugin(newResponse.data.appkey, newResponse.data.loginIp, newResponse.data.secret, newResponse.data.loginPort)
|
|
|
|
- setTimeout(function() {
|
|
|
|
- that.playhk(newResponse.data.channelCode)
|
|
|
|
- }, 5000)
|
|
|
|
- })
|
|
|
|
|
|
+ preview(cameraParam) {
|
|
|
|
+ if(cameraParam.type=='大华'){
|
|
|
|
+ getDahuaVideoServer().then(newResponse => {
|
|
|
|
+ console.log(newResponse)
|
|
|
|
+ this.ws.detectConnectQt().then(res => {
|
|
|
|
+ if (res) { // 连接客户端成功
|
|
|
|
+ this.alertLogin()
|
|
|
|
+ this.ws.login({
|
|
|
|
+ loginIp: newResponse.loginIp,
|
|
|
|
+ loginPort: newResponse.loginPort,
|
|
|
|
+ userName: newResponse.userName,
|
|
|
|
+ userPwd: newResponse.userPwd,
|
|
|
|
+ token: '',
|
|
|
|
+ https: 0
|
|
|
|
+ })
|
|
|
|
+ this.ws.on('loginState', (res) => {
|
|
|
|
+ this.isLogin = res
|
|
|
|
+ console.log('---res-----', res)
|
|
|
|
+ if (res) {
|
|
|
|
+ this.alertLoginSuccess()
|
|
|
|
+ this.activePanel = 'key2'
|
|
|
|
+ this.realTimeVideoDialog(cameraParam.code)
|
|
|
|
+ } else {
|
|
|
|
+ this.alertLoginFailed()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else { // 连接客户端失败
|
|
|
|
+ this.alertReinstall()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }else if(cameraParam.type=='海康'){
|
|
|
|
+ let that = this
|
|
|
|
+ that.cameraVisible = true
|
|
|
|
+ getHaiKangVideoServer({cameraCode:cameraParam.code}).then(newResponse => {
|
|
|
|
+ that.cameraTitle = '摄像头-'+newResponse.data.cameraName
|
|
|
|
+ that.initPlugin(newResponse.data.appkey,newResponse.data.loginIp,newResponse.data.secret,newResponse.data.loginPort)
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ that.playhk(newResponse.data.channelCode)
|
|
|
|
+ }, 5000)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
|
|
},
|
|
},
|
|
realTimeVideoDialog(cameraParams) { // 调用弹窗实时播放接口
|
|
realTimeVideoDialog(cameraParams) { // 调用弹窗实时播放接口
|
|
@@ -2039,8 +2213,8 @@ export default {
|
|
that.oWebControl = null
|
|
that.oWebControl = null
|
|
$('#playWnd').html('插件未启动,正在尝试启动,请稍候...<a href="./hk/VideoWebPlugin.exe">点击下载插件</a>')
|
|
$('#playWnd').html('插件未启动,正在尝试启动,请稍候...<a href="./hk/VideoWebPlugin.exe">点击下载插件</a>')
|
|
WebControl.JS_WakeUp('VideoWebPlugin://') // 程序未启动时执行error函数,采用wakeup来启动程序
|
|
WebControl.JS_WakeUp('VideoWebPlugin://') // 程序未启动时执行error函数,采用wakeup来启动程序
|
|
- initCount++
|
|
|
|
- if (initCount < 3) {
|
|
|
|
|
|
+ that.initCount++
|
|
|
|
+ if (that.initCount < 3) {
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
that.initPlugin(newappkey, newloginIp, newsecret, newloginPort)
|
|
that.initPlugin(newappkey, newloginIp, newsecret, newloginPort)
|
|
}, 3000)
|
|
}, 3000)
|
|
@@ -2051,7 +2225,6 @@ export default {
|
|
cbConnectClose: function(bNormalClose) {
|
|
cbConnectClose: function(bNormalClose) {
|
|
// 异常断开:bNormalClose = false
|
|
// 异常断开:bNormalClose = false
|
|
// JS_Disconnect正常断开:bNormalClose = true
|
|
// JS_Disconnect正常断开:bNormalClose = true
|
|
- console.log('cbConnectClose')
|
|
|
|
that.oWebControl = null
|
|
that.oWebControl = null
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -2136,11 +2309,34 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
-//RSA加密
|
|
|
|
|
|
+ //RSA加密
|
|
setEncrypt(value) {
|
|
setEncrypt(value) {
|
|
var encrypt = new JSEncrypt()
|
|
var encrypt = new JSEncrypt()
|
|
encrypt.setPublicKey(this.pubKey)
|
|
encrypt.setPublicKey(this.pubKey)
|
|
return encrypt.encrypt(value)
|
|
return encrypt.encrypt(value)
|
|
|
|
+ },
|
|
|
|
+ //加入华为视频会议方法
|
|
|
|
+ joinMeeting(){
|
|
|
|
+ let eventId = this.eventId;
|
|
|
|
+ let subject = "视频会议";
|
|
|
|
+ let nickName;
|
|
|
|
+ getUserInfo().then(res => {
|
|
|
|
+ nickName = res.data.nickName;
|
|
|
|
+ });
|
|
|
|
+ hasConferences(eventId).then(res => {
|
|
|
|
+ let data = res.data;
|
|
|
|
+ /**如果没有正在开启的会议会返回空对象**/
|
|
|
|
+ if(res.code == 200 && Object.keys(data).length === 0){
|
|
|
|
+ createConferences(eventId,subject).then(res => {
|
|
|
|
+ let data = res.data;
|
|
|
|
+ if(res.code == 200){
|
|
|
|
+ window.open("/hwMeeting/meeting.html?nickName="+encodeURI(encodeURI(nickName))+"&conferenceID="+data.conferenceID+"&password="+data.password);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ window.open("/hwMeeting/meeting.html?nickName="+encodeURI(encodeURI(nickName))+"&conferenceID="+data.conferenceID+"&password="+data.password);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
/** ----------------------------------海康摄像头预览结束------------------------------------- */
|
|
/** ----------------------------------海康摄像头预览结束------------------------------------- */
|
|
}
|
|
}
|
|
@@ -2152,6 +2348,7 @@ function cbIntegrationCallBack(oData) {
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
+
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@import '@/assets/styles/base.scss';
|
|
@import '@/assets/styles/base.scss';
|
|
|
|
|
|
@@ -2339,6 +2536,26 @@ table tr td input:hover {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+// 20220928
|
|
|
|
+.yatz_button {
|
|
|
|
+ padding: 0.5rem 0.5rem;
|
|
|
|
+ color: #409EFF;
|
|
|
|
+ background: none;
|
|
|
|
+ border-color: #409EFF;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.yatz_button:hover {
|
|
|
|
+ color: #fff;
|
|
|
|
+ background: #409EFF;
|
|
|
|
+ border-color: #409EFF;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.fr_button {
|
|
|
|
+ float: right;
|
|
|
|
+ padding: 0.5rem 1.5rem;
|
|
|
|
+}
|
|
|
|
+
|
|
.bottom {
|
|
.bottom {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: calc(100% - 80px);
|
|
height: calc(100% - 80px);
|