监管人参会
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.9 KiB |
@ -1,17 +1,22 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="">
|
<html lang="">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
|
||||||
<!-- <meta http-equiv="origin-trial" content="AuKHz2ifylDpZfg7iawfCDGtilbLT+tg9CCbVG4PNSxRA1v2NtYGRKAKctmE4Us42+t1lZ3IkPO9s5/VlHy/rwIAAABgeyJvcmlnaW4iOiJodHRwOi8vbG9jYWxob3N0OjMwMDAiLCJmZWF0dXJlIjoiVW5yZXN0cmljdGVkU2hhcmVkQXJyYXlCdWZmZXIiLCJleHBpcnkiOjE2NTg4Nzk5OTl9" /> -->
|
<!-- <meta http-equiv="origin-trial" content="AuKHz2ifylDpZfg7iawfCDGtilbLT+tg9CCbVG4PNSxRA1v2NtYGRKAKctmE4Us42+t1lZ3IkPO9s5/VlHy/rwIAAABgeyJvcmlnaW4iOiJodHRwOi8vbG9jYWxob3N0OjMwMDAiLCJmZWF0dXJlIjoiVW5yZXN0cmljdGVkU2hhcmVkQXJyYXlCdWZmZXIiLCJleHBpcnkiOjE2NTg4Nzk5OTl9" /> -->
|
||||||
<script src="/coi-serviceworker.js"></script>
|
<script src="/coi-serviceworker.js"></script>
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
|
||||||
|
<title>楚桓会议客户端</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>
|
<noscript>
|
||||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
<strong
|
||||||
|
>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
|
||||||
|
properly without JavaScript enabled. Please enable it to
|
||||||
|
continue.</strong
|
||||||
|
>
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<!-- built files will be auto injected -->
|
<!-- built files will be auto injected -->
|
||||||
|
@ -97,3 +97,13 @@ export function getMeetingSetting() {
|
|||||||
method: "get",
|
method: "get",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 监管参会
|
||||||
|
export function superviseJoinMeeting(params) {
|
||||||
|
return request({
|
||||||
|
url: `/app/superviseJoinMeeting`,
|
||||||
|
method: "post",
|
||||||
|
// headers: { "Content-Type": "application/json" },
|
||||||
|
params,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
@ -8,6 +8,7 @@ import {
|
|||||||
registerJoinUser,
|
registerJoinUser,
|
||||||
visitorJoinUser,
|
visitorJoinUser,
|
||||||
panelistJoinMeeting,
|
panelistJoinMeeting,
|
||||||
|
superviseJoinMeeting,
|
||||||
} from "@/api/meeting";
|
} from "@/api/meeting";
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHistory(),
|
||||||
@ -47,6 +48,11 @@ const router = createRouter({
|
|||||||
name: "Host",
|
name: "Host",
|
||||||
component: () => import("@/views/meeting.vue"),
|
component: () => import("@/views/meeting.vue"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/supervisor/:meetingId/:username",
|
||||||
|
name: "Supervisor",
|
||||||
|
component: () => import("@/views/meeting.vue"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/:pathMatch(.*)*",
|
path: "/:pathMatch(.*)*",
|
||||||
name: "NotFound",
|
name: "NotFound",
|
||||||
@ -77,7 +83,7 @@ router.beforeEach(async (to) => {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// 如果要前往参会页面
|
// 如果要前往参会页面
|
||||||
if (to.name === "Meeting") {
|
else if (to.name === "Meeting") {
|
||||||
// 如果要去的页面会议号于 vuex中的不一样,则清除数据
|
// 如果要去的页面会议号于 vuex中的不一样,则清除数据
|
||||||
if (to.params.meetingId !== store.state.joinUser.meetingId) {
|
if (to.params.meetingId !== store.state.joinUser.meetingId) {
|
||||||
store.commit("setJoinUser", {});
|
store.commit("setJoinUser", {});
|
||||||
@ -145,8 +151,7 @@ router.beforeEach(async (to) => {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else if (to.name === "Panelist") {
|
||||||
if (to.name === "Panelist") {
|
|
||||||
// 如果要去的页面会议号于 vuex中的不一样,则清除数据
|
// 如果要去的页面会议号于 vuex中的不一样,则清除数据
|
||||||
if (to.params.meetingId !== store.state.joinUser.meetingId) {
|
if (to.params.meetingId !== store.state.joinUser.meetingId) {
|
||||||
store.commit("setJoinUser", {});
|
store.commit("setJoinUser", {});
|
||||||
@ -173,6 +178,23 @@ router.beforeEach(async (to) => {
|
|||||||
store.commit("setJoinUser", {});
|
store.commit("setJoinUser", {});
|
||||||
return `/panelist-verify/${to.params.meetingId}`;
|
return `/panelist-verify/${to.params.meetingId}`;
|
||||||
}
|
}
|
||||||
|
} else if (to.name === "Supervisor") {
|
||||||
|
// 监管参会
|
||||||
|
if (to.params.meetingId !== store.state.joinUser.meetingId) {
|
||||||
|
store.commit("setMessagesList", []);
|
||||||
|
}
|
||||||
|
const { email, meetingPassword } = await superviseJoinMeeting({
|
||||||
|
icCard: to.params.username,
|
||||||
|
meetingId: to.params.meetingId,
|
||||||
|
});
|
||||||
|
store.commit("setJoinUser", {
|
||||||
|
meetingId: to.params.meetingId,
|
||||||
|
icCard: to.params.username,
|
||||||
|
email: email.email,
|
||||||
|
token: email.token,
|
||||||
|
});
|
||||||
|
store.commit("setPassword", meetingPassword);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user