|
@@ -156,6 +156,9 @@
|
|
|
</el-button>
|
|
|
<el-button size="small" icon="el-icon-download" @click="showResponsibility()">责任制
|
|
|
</el-button>
|
|
|
+ <el-button v-if="eventStatusValue=='forest_event_status_2' && statusFlag=='1' && dataStatus=='0'"
|
|
|
+ size="small" icon="el-icon-download" @click="updateCentereventTEventcatalogueStatus('cz',true)">处置
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
<div class="z-info-btm-grp-right">
|
|
|
<el-button size="small" icon="el-icon-mic" @click="joinMeeting()">会议
|
|
@@ -225,7 +228,7 @@
|
|
|
@click="updateCentereventTEventcatalogueStatus('ld',false)">
|
|
|
联动
|
|
|
</el-button>
|
|
|
- <el-button size="small" v-if="dataStatus=='1'"
|
|
|
+ <el-button size="small" v-if="statusFlag=='1'"
|
|
|
icon="el-icon-success" style="text-align:left"
|
|
|
@click="updateCentereventTEventcatalogueStatus('bj',true)">
|
|
|
办结
|
|
@@ -235,7 +238,7 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div class="z-info-btm-input-btn"
|
|
|
- v-else-if="eventStatusValue=='forest_event_status_5'&&dataStatus=='1'">
|
|
|
+ v-else-if="eventStatusValue=='forest_event_status_5'&&statusFlag=='1'">
|
|
|
<el-button size="small"
|
|
|
icon="el-icon-success" style="text-align:left"
|
|
|
@click="updateCentereventTEventcatalogueStatus('gd',false)">
|
|
@@ -1004,7 +1007,8 @@ import {
|
|
|
dutysystemList,
|
|
|
dutysystemAdd,
|
|
|
dutysystemRemove,
|
|
|
- userFeginlist
|
|
|
+ userFeginlist,
|
|
|
+ eventHandling
|
|
|
} from '@/api/forest'
|
|
|
import {
|
|
|
treeselectAll as deptTreeselect
|
|
@@ -1020,6 +1024,8 @@ import {
|
|
|
getDahuaVideoServer
|
|
|
} from '@/api/dahua/dahua'
|
|
|
import DHWs from '@/dahua/lib/DHWs'
|
|
|
+import { selectConfigKey } from "@/api/system/config";
|
|
|
+import Cookies from 'js-cookie';
|
|
|
export default {
|
|
|
dicts: ['task_source'],
|
|
|
watch: {
|
|
@@ -1175,7 +1181,8 @@ export default {
|
|
|
eventId: null,//事件ID
|
|
|
eventType: null,//事件类型-大类
|
|
|
eventTypeXl: null,//事件类型-小类
|
|
|
- dataStatus: null,//事件流程按钮
|
|
|
+ statusFlag: null,//事件流程按钮
|
|
|
+ dataStatus: null,//事件处置按钮
|
|
|
deptId: null,//事件流程部门
|
|
|
eventCode: null,
|
|
|
eventName: null,
|
|
@@ -1815,6 +1822,15 @@ export default {
|
|
|
that.$emit('getSupermap', that.calendarDay)
|
|
|
}
|
|
|
})
|
|
|
+ } else if(eventStatus == 'cz'){
|
|
|
+ eventHandling(that.eventId,that.eventCode).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ that.$message.success(`处理成功!`)
|
|
|
+ that.refreshEvent(that.eventCode)
|
|
|
+ that.cancelEventConfirm_send()
|
|
|
+ that.showEventConfirm = false
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
if (eventStatus == 'qs' || eventStatus == 'wb' || eventStatus == 'cf') {
|
|
|
if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || that.sendDeptName == null) {
|
|
@@ -1882,7 +1898,7 @@ export default {
|
|
|
this.$refs.eventLogUpload.eventLogUpload(this.eventCode)
|
|
|
},
|
|
|
cancelEventShow() {
|
|
|
- this.dataStatus = null
|
|
|
+ this.statusFlag = null
|
|
|
this.deptId = null
|
|
|
console.log('关闭事件弹窗')
|
|
|
this.eventLogList = []
|
|
@@ -1898,6 +1914,7 @@ export default {
|
|
|
that.address = res.data.catalogue.address
|
|
|
that.eventStatusValue = res.data.catalogue.eventStatusValue
|
|
|
that.eventType = res.data.catalogue.eventType
|
|
|
+ that.statusFlag = res.data.catalogue.statusFlag
|
|
|
that.dataStatus = res.data.catalogue.dataStatus
|
|
|
that.deptId = res.data.catalogue.deptId
|
|
|
that.eventId = res.data.catalogue.id
|
|
@@ -1983,6 +2000,7 @@ export default {
|
|
|
that.address = res.data.catalogue.address
|
|
|
that.eventStatusValue = res.data.catalogue.eventStatusValue
|
|
|
that.eventType = res.data.catalogue.eventType
|
|
|
+ that.statusFlag = res.data.catalogue.statusFlag
|
|
|
that.dataStatus = res.data.catalogue.dataStatus
|
|
|
that.deptId = res.data.catalogue.deptId
|
|
|
that.eventId = res.data.catalogue.id
|
|
@@ -2323,30 +2341,16 @@ export default {
|
|
|
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);
|
|
|
- }
|
|
|
- });
|
|
|
+ let hwMeetingUrl;
|
|
|
+ selectConfigKey('hwMeetingUrl').then(res => {
|
|
|
+ hwMeetingUrl = res.data
|
|
|
+ window.open(hwMeetingUrl+"/joinConferences/"+this.eventId+"/"+this.eventName+"的会议"+"/"+Cookies.get("nickName"));
|
|
|
+ })
|
|
|
}
|
|
|
- /** ----------------------------------海康摄像头预览结束------------------------------------- */
|
|
|
+ /** ----------------------------------视频会议结束------------------------------------- */
|
|
|
}
|
|
|
}
|
|
|
|