|
@@ -2,7 +2,7 @@ import { defineComponent, onMounted, watchEffect, ref } from "vue";
|
|
import { RouterView, useRoute, useRouter } from 'vue-router';
|
|
import { RouterView, useRoute, useRouter } from 'vue-router';
|
|
import MarkerMap from '@/components/MarkerMap';
|
|
import MarkerMap from '@/components/MarkerMap';
|
|
import './index.scss';
|
|
import './index.scss';
|
|
-import { useIncidentStore, useDaHuaStore, useMainStore } from '@/store';
|
|
|
|
|
|
+import { useIncidentStore, useDaHuaStore, useMainStore,useCommonStore } from '@/store';
|
|
import { constants } from 'zlib';
|
|
import { constants } from 'zlib';
|
|
import clsx from "clsx";
|
|
import clsx from "clsx";
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
@@ -132,6 +132,7 @@ export default defineComponent({
|
|
const daHuaStore = useDaHuaStore();
|
|
const daHuaStore = useDaHuaStore();
|
|
|
|
|
|
const mainStore = useMainStore();
|
|
const mainStore = useMainStore();
|
|
|
|
+ const commonstore = useCommonStore();
|
|
|
|
|
|
const sqdh = ref(import.meta.env.VITE_DH_SERVER as string + "/index.html");
|
|
const sqdh = ref(import.meta.env.VITE_DH_SERVER as string + "/index.html");
|
|
|
|
|
|
@@ -261,6 +262,10 @@ export default defineComponent({
|
|
// }, false);
|
|
// }, false);
|
|
try {
|
|
try {
|
|
(yjzh_btn.value)?.addEventListener("click", () => {
|
|
(yjzh_btn.value)?.addEventListener("click", () => {
|
|
|
|
+ if(commonstore.isclick){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ commonstore.isclick = true;
|
|
|
|
|
|
|
|
|
|
if(window.theSocket){
|
|
if(window.theSocket){
|
|
@@ -279,7 +284,11 @@ export default defineComponent({
|
|
|
|
|
|
meeting.settargetId("vPlayArea");
|
|
meeting.settargetId("vPlayArea");
|
|
window.metting = meeting;
|
|
window.metting = meeting;
|
|
- cremetting();
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ cremetting();
|
|
|
|
+
|
|
|
|
+ }, 1000);
|
|
|
|
+
|
|
});
|
|
});
|
|
|
|
|
|
}
|
|
}
|
|
@@ -290,11 +299,11 @@ export default defineComponent({
|
|
|
|
|
|
|
|
|
|
try{
|
|
try{
|
|
- window.metting.deleteAllMeeting();
|
|
|
|
|
|
+ window.metting.deleteAllMeeting(dothing);
|
|
}catch(E){}
|
|
}catch(E){}
|
|
-
|
|
|
|
-
|
|
|
|
- await window.metting.getLocalUserInfo();
|
|
|
|
|
|
+
|
|
|
|
+ async function dothing(){
|
|
|
|
+ await window.metting.getLocalUserInfo();
|
|
const res = await window.metting.queryUser("5269853761765376");
|
|
const res = await window.metting.queryUser("5269853761765376");
|
|
|
|
|
|
// _this.localUserInfo.masterName = res.userName;
|
|
// _this.localUserInfo.masterName = res.userName;
|
|
@@ -312,6 +321,12 @@ export default defineComponent({
|
|
memberNumber: ""// 成员号码
|
|
memberNumber: ""// 成员号码
|
|
};
|
|
};
|
|
window.theSocket&&window.theSocket.createGroupChat(chartParams);
|
|
window.theSocket&&window.theSocket.createGroupChat(chartParams);
|
|
|
|
+ commonstore.isclick = false;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -373,8 +388,8 @@ export default defineComponent({
|
|
<div id="vPlayArea" ></div>
|
|
<div id="vPlayArea" ></div>
|
|
</div>
|
|
</div>
|
|
<header class="base-layout-title-contatisner">
|
|
<header class="base-layout-title-contatisner">
|
|
- <div class="back-to-home" onClick={() => router.push('/home')}></div>
|
|
|
|
- <div class="time-text">
|
|
|
|
|
|
+ <div class="back-to-home " onClick={() => router.push('/home')}></div>
|
|
|
|
+ <div class="time-text ">
|
|
<span>{timetext.value}</span>
|
|
<span>{timetext.value}</span>
|
|
<span>{datetext.value}</span>
|
|
<span>{datetext.value}</span>
|
|
<span>{weektext.value}</span>
|
|
<span>{weektext.value}</span>
|
|
@@ -388,7 +403,7 @@ export default defineComponent({
|
|
// marker={store.incidentDetail}
|
|
// marker={store.incidentDetail}
|
|
/>
|
|
/>
|
|
|
|
|
|
- <div class="yjld_btn" ref={yjzh_btn}></div>
|
|
|
|
|
|
+ <div class={"yjld_btn " + (commonstore.isclick?"animate__animated animate__rotateIn":"")} ref={yjzh_btn}></div>
|
|
</main>
|
|
</main>
|
|
</section>
|
|
</section>
|
|
);
|
|
);
|