فهرست منبع

视频会议 事件列表点击功能修改

limeng 2 سال پیش
والد
کامیت
4722db5bc4
4فایلهای تغییر یافته به همراه24 افزوده شده و 3 حذف شده
  1. 5 0
      src/components/supermap.vue
  2. 4 0
      src/components/v-fastmenu.vue
  3. 11 0
      src/views/eventdetailsdialog.vue
  4. 4 3
      src/views/forest.vue

+ 5 - 0
src/components/supermap.vue

@@ -1195,6 +1195,11 @@ export default {
       //   this.map.panTo([lat, lng])
       // }, 1000)
     },
+    dropLocation: function(lat, lng,leve) { //落点定位
+      this.map.flyTo([lat, lng], leve, {
+        duration: 2
+      })
+    },
     controlLevel: function(level) { //控制地图缩放级别
       this.map.setZoom(level)
     },

+ 4 - 0
src/components/v-fastmenu.vue

@@ -37,6 +37,8 @@
 </template>
 
 <script>
+import { selectConfigKey } from "@/api/system/config";
+import Cookies from 'js-cookie';
 import resetPwd from "../views/system/user/profile/resetPwd";
 import { getUserProfile } from "@/api/system/user";
 	export default {
@@ -60,6 +62,8 @@ import { getUserProfile } from "@/api/system/user";
           this.nickName=response.data.nickName
           this.deptNames=response.data.deptNames
           this.phonenumber=response.data.phonenumber
+          Cookies.set('userId',response.data.userId);
+          Cookies.set('nickName',response.data.nickName);
         });
       },
       resetPwd(){

+ 11 - 0
src/views/eventdetailsdialog.vue

@@ -329,6 +329,8 @@ import {
 import {
   treeselectAll as deptTreeselect
 } from '@/api/system/dept'
+import { selectConfigKey } from "@/api/system/config";
+import Cookies from 'js-cookie';
 
 export default {
   dicts: ['task_source'],
@@ -1197,6 +1199,15 @@ export default {
         this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
       })
     },
+    /** ----------------------------------视频会议开始------------------------------------- */
+    joinMeeting(){
+      let hwMeetingUrl;
+      selectConfigKey('hwMeetingUrl').then(res => {
+        hwMeetingUrl = res.data
+        window.open(hwMeetingUrl+"/"+this.eventId+"/"+this.eventName+"的会议"+"/"+Cookies.get("nickName"));
+      })
+    },
+    /** ----------------------------------视频会议结束------------------------------------- */
     // 页面元素转图片
     toImage() {
       // 手动创建一个 canvas 标签

+ 4 - 3
src/views/forest.vue

@@ -69,7 +69,7 @@
                   </el-input>
                 </div>
                 <div class="d-l-con padding-box nowrap" v-for="(item,index) in eventList"
-                     @click="dropLocation(item.latitude,item.longitude)">
+                     @click="dropLocation(item.latitude,item.longitude,item.eventCode)">
                   <div class="bgt-img">
                     <img v-if="item.picturePath!=null&&item.picturePath!=''&& isAssetTypeAnImage(item.picturePath)"
                          :src="item.picturePath"
@@ -337,8 +337,9 @@ export default {
         }, 2000)
       }
     },
-    dropLocation(lat, lng) {
-      this.$refs.supermap.dropLocation(lat, lng)
+    dropLocation(lat, lng,eventCode) {
+      this.$refs.supermap.dropLocation(lat, lng,18)
+      this.showEventDialog(eventCode)
     },
     showEventDialog(eventCode) {
       //事件信息弹出