|
@@ -158,7 +158,7 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<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>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -170,8 +170,8 @@
|
|
|
<div style="text-align:left">
|
|
|
<el-button size="small"
|
|
|
icon="el-icon-s-flag"
|
|
|
- @click="updateCentereventTEventcatalogueStatus('qs',false)">
|
|
|
- 签收
|
|
|
+ @click="updateCentereventTEventcatalogueStatus('qr',true)">
|
|
|
+ 确认
|
|
|
</el-button>
|
|
|
<el-button size="small"
|
|
|
icon="el-icon-question"
|
|
@@ -187,18 +187,39 @@
|
|
|
<el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
|
|
|
</el-button>
|
|
|
</div>
|
|
|
- <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_2'">
|
|
|
- <div>
|
|
|
- <el-button size="small"
|
|
|
- icon="el-icon-question"
|
|
|
- @click="updateCentereventTEventcatalogueStatus('wb',false)">
|
|
|
- 误报
|
|
|
- </el-button>
|
|
|
+ <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-warning"
|
|
|
- @click="updateCentereventTEventcatalogueStatus('cf',false)">
|
|
|
- 重复
|
|
|
+ icon="el-icon-s-flag"
|
|
|
+ @click="updateCentereventTEventcatalogueStatus('qs',false)">
|
|
|
+ 签收
|
|
|
</el-button>
|
|
|
+ <!--<el-button size="small"-->
|
|
|
+ <!--icon="el-icon-question"-->
|
|
|
+ <!--@click="updateCentereventTEventcatalogueStatus('wb',false)">-->
|
|
|
+ <!--误报-->
|
|
|
+ <!--</el-button>-->
|
|
|
+ <!--<el-button size="small"-->
|
|
|
+ <!--icon="el-icon-warning"-->
|
|
|
+ <!--@click="updateCentereventTEventcatalogueStatus('cf',false)">-->
|
|
|
+ <!--重复-->
|
|
|
+ <!--</el-button>-->
|
|
|
+ </div>
|
|
|
+ <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_2'">
|
|
|
+ <div>
|
|
|
+ <!--<el-button size="small"-->
|
|
|
+ <!--icon="el-icon-question"-->
|
|
|
+ <!--@click="updateCentereventTEventcatalogueStatus('wb',false)">-->
|
|
|
+ <!--误报-->
|
|
|
+ <!--</el-button>-->
|
|
|
+ <!--<el-button size="small"-->
|
|
|
+ <!--icon="el-icon-warning"-->
|
|
|
+ <!--@click="updateCentereventTEventcatalogueStatus('cf',false)">-->
|
|
|
+ <!--重复-->
|
|
|
+ <!--</el-button>-->
|
|
|
<el-button size="small"
|
|
|
icon="el-icon-phone" style="text-align:left"
|
|
|
@click="updateCentereventTEventcatalogueStatus('ld',false)">
|
|
@@ -322,15 +343,18 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</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'"
|
|
|
@click="updateCentereventTEventcatalogueStatus('qs',true)">签收
|
|
|
</el-button>
|
|
@@ -385,9 +409,16 @@
|
|
|
v-if="depteventId!=null&&depteventId!=''"
|
|
|
@click="addLine">添加
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="danger"
|
|
|
+ v-if="depteventId!=null&&depteventId!=''"
|
|
|
+ @click="finUserByDept">选择
|
|
|
+ </el-button>
|
|
|
<el-table
|
|
|
:data="dutysystemTableData"
|
|
|
- style="width: 100%">
|
|
|
+ style="width: 100%"
|
|
|
+ :rules="rules">
|
|
|
<el-table-column prop="id" label="主键" v-if="false">
|
|
|
<template slot-scope="scope" hidden>
|
|
|
<el-input v-model="scope.row.id" readonly placeholder="主键"></el-input>
|
|
@@ -395,7 +426,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="name" label="姓名">
|
|
|
<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>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="post" label="岗位">
|
|
@@ -405,7 +436,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="telphone" label="手机号码">
|
|
|
<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>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="bookbuytime" label="操作">
|
|
@@ -416,18 +447,18 @@
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.$index, scope.row)">删除
|
|
|
</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>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</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>
|
|
|
<div style="clear: both;"></div>
|
|
|
</el-form>
|
|
@@ -943,6 +974,9 @@
|
|
|
<div id="playWnd" class="playWnd" style="left: 0px; top: 0px;"></div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="人员选择" :visible.sync="showFindUserByDept" width="40%">
|
|
|
+ <findUserByDept v-if="showFindUserByDept" ref="findUserByDept" :deptId="iconCurrentIndex" @addSelection="addSelection"></findUserByDept>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -954,6 +988,7 @@ import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部
|
|
|
import eventLogUpload from '@/views/eventLogUpload.vue' //日志上传文件
|
|
|
import areaSupermap from '@/components/supermap'//区域标记地图
|
|
|
import TcPlayer from '@/components/TcPlayer' //视频预览
|
|
|
+import findUserByDept from '@/views/findUserByDept' //责任人选择弹框
|
|
|
import {
|
|
|
getEventDetail,
|
|
|
sendEventLog,
|
|
@@ -977,7 +1012,14 @@ import {
|
|
|
import {
|
|
|
getHaiKangVideoServer
|
|
|
} 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 {
|
|
|
dicts: ['task_source'],
|
|
|
watch: {
|
|
@@ -991,12 +1033,15 @@ export default {
|
|
|
supermapDialog,
|
|
|
eventLogUpload,
|
|
|
areaSupermap,
|
|
|
- TcPlayer
|
|
|
+ TcPlayer,
|
|
|
+ findUserByDept
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ showFindUserByDept: false,//责任人选择框
|
|
|
//海康
|
|
|
cameraTitle: '',
|
|
|
+ cameraCode:'',
|
|
|
cameraVisible: false,
|
|
|
initCount: 0,
|
|
|
pubKey: '',
|
|
@@ -1132,6 +1177,7 @@ export default {
|
|
|
dataStatus: null,//事件流程按钮
|
|
|
deptId: null,//事件流程部门
|
|
|
eventCode: null,
|
|
|
+ eventName: null,
|
|
|
longitude: null,
|
|
|
latitude: null,
|
|
|
eventLog: null,
|
|
@@ -1196,13 +1242,19 @@ export default {
|
|
|
],
|
|
|
resourcesListCheck: [],
|
|
|
//文本域
|
|
|
- feedback: ''
|
|
|
+ feedback: '',
|
|
|
|
|
|
}
|
|
|
},
|
|
|
props: {
|
|
|
calendarDay: null//首页日历选择
|
|
|
},
|
|
|
+ created() {
|
|
|
+ /** ----------------------------------摄像头预览开始------------------------------------- */
|
|
|
+ const DHWsInstance = DHWs.getInstance()
|
|
|
+ this.ws = DHWsInstance
|
|
|
+ /** ----------------------------------摄像头预览结束------------------------------------- */
|
|
|
+ },
|
|
|
methods: {
|
|
|
/************************************责任制-开始****************************************/
|
|
|
addLine: function() {//添加负责人行数
|
|
@@ -1217,6 +1269,20 @@ export default {
|
|
|
//添加新的行数
|
|
|
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) {//删除负责人行数
|
|
|
if (row.id != null && row.id != '') {
|
|
|
let param = { ids: row.id }
|
|
@@ -1255,8 +1321,8 @@ export default {
|
|
|
}]
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
},
|
|
|
+
|
|
|
showResponsibility() {//弹出责任制弹窗
|
|
|
let param = { eventCode: this.eventCode }
|
|
|
centereventtdepteventList(param).then(res => {
|
|
@@ -1271,6 +1337,31 @@ export default {
|
|
|
this.iconCurrentIndex = ''
|
|
|
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() {
|
|
|
// if (!this.$refs.supermapDialog.isheatPlotting) {
|
|
@@ -1353,7 +1444,9 @@ export default {
|
|
|
markersMap.icon = 'camera'
|
|
|
if (res.data[i].cameraCode != null) {
|
|
|
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
|
|
@@ -1575,12 +1668,6 @@ export default {
|
|
|
that.guanLianYuAnList = res.data
|
|
|
}
|
|
|
})
|
|
|
- await userFeginlist().then(res => {
|
|
|
- //联系人列表
|
|
|
- if (res.code == 200) {
|
|
|
- that.userFeginList = res.data
|
|
|
- }
|
|
|
- })
|
|
|
await selectByeventCode(that.eventCode).then(res => {
|
|
|
//签收部门
|
|
|
if (res.code == 200) {
|
|
@@ -1589,6 +1676,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
that.showEventConfirm = true
|
|
|
+ } else if (eventStatus == 'qr') {//确认
|
|
|
+ that.eventConfirmTitle = '事件确认'
|
|
|
} else if (eventStatus == 'wb') {//误报
|
|
|
that.eventConfirmTitle = '事件误报'
|
|
|
await selectByeventCode(that.eventCode).then(res => {
|
|
@@ -1676,6 +1765,30 @@ export default {
|
|
|
})
|
|
|
|
|
|
} else if (eventStatus == 'gd') {
|
|
|
+ let double = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; //数字和两位小数
|
|
|
+ let number = /^[+]{0,1}(\d+)$/g; //正整数
|
|
|
+
|
|
|
+ if(!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 = {
|
|
|
deptId: that.deptId,
|
|
@@ -1693,7 +1806,8 @@ export default {
|
|
|
that.refreshEvent(that.eventCode)
|
|
|
that.cancelEventConfirm_send()
|
|
|
that.showEventConfirm_gd = false
|
|
|
- that.$emit('getEventList', that.calendarDay)
|
|
|
+ that.$emit('getEventList', that.calendarDay,10,1)
|
|
|
+ that.$emit('getSupermap', that.calendarDay)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -1725,8 +1839,10 @@ export default {
|
|
|
eventType: that.sendEventType,
|
|
|
id: that.eventId,
|
|
|
czlx: '',
|
|
|
+ cameraCode: that.cameraCode,
|
|
|
fireRadius: that.sendHuoZaiBanJing,
|
|
|
- reserve: that.sendGuanLianYuAn
|
|
|
+ reserve: that.sendGuanLianYuAn,
|
|
|
+ fileList:eventStatus == 'qs'?this.eventLogList[this.eventLogList.length-1].fileVOs:[]
|
|
|
}
|
|
|
updateCentereventTEventcatalogueStatus(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -1734,7 +1850,8 @@ export default {
|
|
|
that.refreshEvent(that.eventCode)
|
|
|
that.cancelEventConfirm_send()
|
|
|
that.showEventConfirm = false
|
|
|
- that.$emit('getEventList', that.calendarDay)
|
|
|
+ that.$emit('getEventList', that.calendarDay,10,1)
|
|
|
+ that.$emit('getSupermap', that.calendarDay)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -1781,6 +1898,7 @@ export default {
|
|
|
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 = {
|
|
|
lng: 124.59,
|
|
|
lat: 43.02,
|
|
@@ -1803,6 +1921,8 @@ export default {
|
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
|
} else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
|
|
|
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.lat = res.data.catalogue.latitude
|
|
@@ -1816,13 +1936,14 @@ export default {
|
|
|
that.$refs.supermapDialog.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
|
|
|
}, 2000)
|
|
|
if (res.data.centermonitorTCamera != null) {
|
|
|
+ that.cameraCode = res.data.centermonitorTCamera.cameraCode;
|
|
|
let markersMap = {
|
|
|
lng: 124.59,
|
|
|
lat: 43.02,
|
|
|
icon: 'camera',
|
|
|
bindPopupHtml: '',
|
|
|
click: 'preview',
|
|
|
- parameter: res.data.centermonitorTCamera.cameraCode,
|
|
|
+ parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
|
|
|
keepBindPopup: false,
|
|
|
isAggregation: false,
|
|
|
radius: 0
|
|
@@ -1861,6 +1982,7 @@ export default {
|
|
|
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 = {
|
|
|
lng: 124.59,
|
|
|
lat: 43.02,
|
|
@@ -1883,6 +2005,8 @@ export default {
|
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
|
} else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
|
|
|
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.lat = res.data.catalogue.latitude
|
|
@@ -1905,7 +2029,7 @@ export default {
|
|
|
icon: 'camera',
|
|
|
bindPopupHtml: '',
|
|
|
click: 'preview',
|
|
|
- parameter: res.data.centermonitorTCamera.cameraCode,
|
|
|
+ parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
|
|
|
keepBindPopup: false,
|
|
|
isAggregation: false,
|
|
|
radius: 0
|
|
@@ -2009,49 +2133,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)
|
|
|
- that.$nextTick(()=>{
|
|
|
- console.log(that.oWebControl)
|
|
|
+ preview(cameraParam) {
|
|
|
+ if(cameraParam.type=='1'){
|
|
|
+ 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(cameraParam.code)
|
|
|
+ } else {
|
|
|
+ this.alertLoginFailed()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else { // 连接客户端失败
|
|
|
+ this.alertReinstall()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }else if(cameraParam.type=='0'){
|
|
|
+ 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() {
|
|
|
- console.log(that.oWebControl)
|
|
|
that.playhk(newResponse.data.channelCode)
|
|
|
}, 5000)
|
|
|
})
|
|
|
- })
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
realTimeVideoDialog(cameraParams) { // 调用弹窗实时播放接口
|
|
@@ -2187,11 +2310,34 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-//RSA加密
|
|
|
+ //RSA加密
|
|
|
setEncrypt(value) {
|
|
|
var encrypt = new JSEncrypt()
|
|
|
encrypt.setPublicKey(this.pubKey)
|
|
|
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);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
/** ----------------------------------海康摄像头预览结束------------------------------------- */
|
|
|
}
|