Merge branch 'dongwu_develop' into boe_develop

This commit is contained in:
BOE\10867418
2023-03-17 16:49:18 +08:00
7 changed files with 105 additions and 31 deletions

View File

@@ -60,7 +60,9 @@ http.interceptors.response.use(
if (code === 1000) { if (code === 1000) {
(process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'alpine') ? (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'alpine') ?
router.push({path: 'login', query: { returnUrl: router.currentRoute.value.fullPath }}) : router.push({path: 'login', query: { returnUrl: router.currentRoute.value.fullPath }}) :
(window.location.href = process.env.VUE_APP_LOGIN_URL + encodeURIComponent(window.location.protocol + import.meta.env.VUE_APP_BOE_API_URL + import.meta.env.VUE_APP_BASE + router.currentRoute.value.fullPath)) (window.location.href = process.env.VUE_APP_LOGIN_URL + encodeURIComponent(window.location.protocol + process.env.VUE_APP_BOE_API_URL + process.env.VUE_APP_BASE + router.currentRoute.value.fullPath))
// TODO token过期后退出登录 清空当前用户标记 - 为了刷新页面使用
localStorage.removeItem('refreshPage')
return Promise.reject(response); return Promise.reject(response);
} }
show && message.error(msg); show && message.error(msg);

View File

@@ -122,10 +122,10 @@
<a-input <a-input
v-model:value="formData.address" v-model:value="formData.address"
maxlength="50" maxlength="50"
style="width: 440px; height: 40px; border-radius: 8px" style="width: 88%; height: 40px; border-radius: 8px"
placeholder="请输入详细地点" placeholder="请输入详细地点"
/> />
<div class="inp_num" style="right: 164px"> <div class="inp_num" style="right: 90px">
<span style="color: #c7cbd2">{{ formData.address.length || 0 }}/50</span> <span style="color: #c7cbd2">{{ formData.address.length || 0 }}/50</span>
</div> </div>
</div> </div>
@@ -142,7 +142,7 @@
</div> </div>
<div class="select fitems"> <div class="select fitems">
<a-range-picker <a-range-picker
style="width: 440px; height: 40px; border-radius: 8px" style="width: 88%; height: 40px; border-radius: 8px"
:show-time="{ format: 'HH:mm' }" :show-time="{ format: 'HH:mm' }"
:disabled-date="disabledDate" :disabled-date="disabledDate"
format="YYYY-MM-DD HH:mm" format="YYYY-MM-DD HH:mm"
@@ -164,7 +164,7 @@
</div> </div>
<span style="margin-right: 3px">授课教师</span> <span style="margin-right: 3px">授课教师</span>
</div> </div>
<div class="select" style="width: 440px"> <div class="select" style="width: 88%">
<ProjectManager <ProjectManager
v-model:value="formData.teacherId" v-model:value="formData.teacherId"
v-model:name="formData.teacher" v-model:name="formData.teacher"
@@ -173,10 +173,10 @@
</div> </div>
<div class="cstm_items"> <div class="cstm_items">
<div class="signbox"> <div class="signbox">
<span style="margin-right: 3px">考勤设置</span> <span style="margin-right: 3px">考勤设置</span>
</div> </div>
<div style="display: flex; align-items: center"> <div style="display: flex; align-items: center; width: 88%;">
<div style="margin-right: 10px">签到</div> <div style="margin-right: 24px;">签到</div>
<div <div
style="display: flex; align-items: center; margin-right: 20px" style="display: flex; align-items: center; margin-right: 20px"
> >
@@ -217,7 +217,7 @@
<div class="signbox"> <div class="signbox">
<span style="margin-right: 3px">报名设置</span> <span style="margin-right: 3px">报名设置</span>
</div> </div>
<div class="b_input"> <div class="b_input" style="width: 88%;">
<CheckBox v-model:checked="formData.applyFlag" <CheckBox v-model:checked="formData.applyFlag"
:check-value="1" :check-value="1"
:un-check-value="0"> :un-check-value="0">
@@ -226,11 +226,11 @@
</div> </div>
</div> </div>
<div class="cstm_items"> <div class="cstm_items" style="align-items: flex-start;">
<div class="signbox"> <div class="signbox">
<span style="margin-right: 3px">现场参与</span> <span style="margin-right: 3px">现场参与</span>
</div> </div>
<div class="b_input"> <div class="b_input" style="width: 88%;display: flex;flex-direction: column;">
<CheckBox v-model:checked="formData.projectSignFlag" <CheckBox v-model:checked="formData.projectSignFlag"
:check-value="1" :check-value="1"
:un-check-value="0"> :un-check-value="0">
@@ -238,6 +238,7 @@
</CheckBox> </CheckBox>
<CheckBox v-model:checked="formData.signFlag" <CheckBox v-model:checked="formData.signFlag"
:check-value="1" :check-value="1"
style="margin-left: 0px;"
:un-check-value="0"> :un-check-value="0">
<span style="color: #6d7584">允许项目外人员临时到场参加</span> <span style="color: #6d7584">允许项目外人员临时到场参加</span>
</CheckBox> </CheckBox>
@@ -248,7 +249,7 @@
<div class="signbox"> <div class="signbox">
<span style="margin-right: 3px">评估设置</span> <span style="margin-right: 3px">评估设置</span>
</div> </div>
<div class="b_input"> <div class="b_input" style="width: 88%;">
<CheckBox v-model="formData.evalFlag" :checkValue="1" :un-checkValue="0"> <CheckBox v-model="formData.evalFlag" :checkValue="1" :un-checkValue="0">
<span style="color: #6d7584">是否需要评估</span> <span style="color: #6d7584">是否需要评估</span>
</CheckBox> </CheckBox>
@@ -256,7 +257,7 @@
</div> </div>
<div v-if="formData.evalFlag" class="cstm_items main_item"> <div v-if="formData.evalFlag" class="cstm_items main_item">
<div class="signbox"></div> <div class="signbox"></div>
<div class="btnbox"> <div class="btnbox" style="display: flex;">
<AssessmentList <AssessmentList
v-model:assessmentName="formData.assessmentName" v-model:assessmentName="formData.assessmentName"
v-model:assessmentId="formData.assessmentId" v-model:assessmentId="formData.assessmentId"
@@ -280,7 +281,7 @@
<div class="cstm_items main_item"> <div class="cstm_items main_item">
<div class="signbox"></div> <div class="signbox"></div>
<div class="btnbox"> <div class="btnbox" style="display: flex;">
<add-homework v-model:info="formData.workInfo"> <add-homework v-model:info="formData.workInfo">
<button class="xkbtn" style="margin-bottom: 0; margin-top: 0"> <button class="xkbtn" style="margin-bottom: 0; margin-top: 0">
配置作业 配置作业
@@ -297,7 +298,7 @@
</div> </div>
<div class="cstm_items main_item" style="margin-bottom: 0"> <div class="cstm_items main_item" style="margin-bottom: 0">
<div class="signbox"></div> <div class="signbox"></div>
<div class="btnbox"> <div class="btnbox" style="display: flex;">
<add-test v-model:info="formData.examInfo"> <add-test v-model:info="formData.examInfo">
<button class="xkbtn" style="margin-bottom: 0; margin-top: 0"> <button class="xkbtn" style="margin-bottom: 0; margin-top: 0">
配置考试 配置考试
@@ -576,6 +577,10 @@ defineExpose({ openDrawer });
background-color: #fafafa !important; background-color: #fafafa !important;
} }
.fitems {
width: 88%;
}
.sameModal { .sameModal {
.ant-modal { .ant-modal {
width: 424px !important; width: 424px !important;

View File

@@ -33,9 +33,15 @@ const timers = setInterval(() => {
if(pathArr.length!==0){ if(pathArr.length!==0){
// 刷新界面是否重新执行 // 刷新界面是否重新执行
if(pathArr.indexOf(currentPath)==-1){ if(pathArr.indexOf(currentPath)==-1){
if(localStorage.getItem("refreshPage") == "jumpverify"){
clearInterval(timers)
return
}
clearInterval(timers) clearInterval(timers)
router.push({path: pathArr[0]}) router.push({path: pathArr[0]})
localStorage.setItem("refreshPage", "jumpverify")
}else{ }else{
localStorage.setItem("refreshPage", "jumpverify")
clearInterval(timers) clearInterval(timers)
} }
} }

View File

@@ -3368,7 +3368,6 @@ export default defineComponent({
beginTime: beginTime, beginTime: beginTime,
endTime: endTime, endTime: endTime,
offcourseId: state.offcourseId, offcourseId: state.offcourseId,
type:3
}; };
console.log("获取开obj", obj, state.selectTime); console.log("获取开obj", obj, state.selectTime);
let res = await planList(obj); let res = await planList(obj);

View File

@@ -100,7 +100,7 @@
> >
<template #bodyCell="{ record, column }"> <template #bodyCell="{ record, column }">
<template v-if="column.key === 'operation'"> <template v-if="column.key === 'operation'">
<a-space> <a-space :key="record.id">
<a-button <a-button
v-if="record.state === '草稿' && checkPer(record.permissions)" v-if="record.state === '草稿' && checkPer(record.permissions)"
@click="showPub(record)" @click="showPub(record)"

View File

@@ -1320,7 +1320,7 @@
:permissions="permissions" :permissions="permissions"
:createId="createId" :createId="createId"
:type="2" :type="2"
v-model:visible="faceTeachModelVisibleTitle" v-model:visible="faceTeachModelVisible"
:datasource="faceData" :datasource="faceData"
/> />
<!-- 面授管理抽屉 结束--> <!-- 面授管理抽屉 结束-->
@@ -2686,7 +2686,11 @@ export default {
"/homeworkpage?courseId=" + "/homeworkpage?courseId=" +
item.courseId + item.courseId +
"&type=2&id=" + "&type=2&id=" +
item.id; item.id +
"&chapterOrStageId=" +
item.chapterId +
"&infoId=" +
state.routerId;
} }
// 考试 停用 // 考试 停用
if (item.type == 5) { if (item.type == 5) {
@@ -2698,7 +2702,13 @@ export default {
window.location.protocol + window.location.protocol +
process.env.VUE_APP_H5 + process.env.VUE_APP_H5 +
"/externalexam?type=2&courseId=" + "/externalexam?type=2&courseId=" +
item.courseId; item.courseId +
"&id=" +
item.id +
"&chapterOrStageId=" +
item.chapterId +
"&infoId=" +
state.routerId;
} else { } else {
codeUrl = codeUrl =
window.location.protocol + window.location.protocol +
@@ -2717,7 +2727,11 @@ export default {
"/liveboradcast?courseId=" + "/liveboradcast?courseId=" +
item.courseId + item.courseId +
"&type=2&id=" + "&type=2&id=" +
item.id; item.id +
"&chapterOrStageId=" +
item.chapterId +
"&infoId=" +
state.routerId;
} }
// 外链 // 外链
if (item.type == 7) { if (item.type == 7) {
@@ -2741,7 +2755,11 @@ export default {
"/discusspage?courseId=" + "/discusspage?courseId=" +
item.courseId + item.courseId +
"&type=2&id=" + "&type=2&id=" +
item.id; item.id +
"&chapterOrStageId=" +
item.chapterId +
"&infoId=" +
state.routerId;
} }
//活动 //活动
if (item.type == 9) { if (item.type == 9) {
@@ -2754,7 +2772,11 @@ export default {
"/activitiespage?courseId=" + "/activitiespage?courseId=" +
item.courseId + item.courseId +
"&type=2&id=" + "&type=2&id=" +
item.id; item.id +
"&chapterOrStageId=" +
item.chapterId +
"&infoId=" +
state.routerId;
} }
//活动 //活动
if (item.type == 10) { if (item.type == 10) {
@@ -2766,7 +2788,13 @@ export default {
"&evaType=" + "&evaType=" +
item.evaType + item.evaType +
"&type=2&targetId=" + "&type=2&targetId=" +
item.targetId; item.targetId +
"&id=" +
item.id +
"&chapterOrStageId=" +
item.chapterId +
"&infoId=" +
state.routerId;
} }
// 评估 停用 // 评估 停用
@@ -2806,7 +2834,13 @@ export default {
window.location.protocol + window.location.protocol +
process.env.VUE_APP_H5 + process.env.VUE_APP_H5 +
"/projectdetails?type=2&projectId=" + "/projectdetails?type=2&projectId=" +
item.courseId; item.courseId +
"&id=" +
item.id +
"&chapterOrStageId=" +
item.chapterId +
"&type=2&infoId=" +
state.routerId;
} }
state.codevisible = true; state.codevisible = true;
let obj = { let obj = {

View File

@@ -4633,7 +4633,11 @@ export default {
"/homeworkpage?courseId=" + "/homeworkpage?courseId=" +
item.courseId + item.courseId +
"&type=1&id=" + "&type=1&id=" +
item.id; item.id +
"&chapterOrStageId=" +
item.stageId +
"&infoId=" +
state.projectId;
} }
// 考试 停用 // 考试 停用
if (item.type == 5) { if (item.type == 5) {
@@ -4645,7 +4649,13 @@ export default {
window.location.protocol + window.location.protocol +
process.env.VUE_APP_H5 + process.env.VUE_APP_H5 +
"/externalexam?type=1&courseId=" + "/externalexam?type=1&courseId=" +
item.courseId; item.courseId +
"&id=" +
item.id +
"&chapterOrStageId=" +
item.stageId +
"&infoId=" +
state.projectId;
} else { } else {
codeUrl = codeUrl =
window.location.protocol + window.location.protocol +
@@ -4664,7 +4674,11 @@ export default {
"/liveboradcast?courseId=" + "/liveboradcast?courseId=" +
item.courseId + item.courseId +
"&type=1&id=" + "&type=1&id=" +
item.id; item.id +
"&chapterOrStageId=" +
item.stageId +
"&infoId=" +
state.projectId;
} }
// 外链 // 外链
if (item.type == 7) { if (item.type == 7) {
@@ -4688,7 +4702,11 @@ export default {
"/discusspage?courseId=" + "/discusspage?courseId=" +
item.courseId + item.courseId +
"&type=1&id=" + "&type=1&id=" +
item.id; item.id +
"&chapterOrStageId=" +
item.stageId +
"&infoId=" +
state.projectId;
} }
//活动 //活动
if (item.type == 9) { if (item.type == 9) {
@@ -4702,7 +4720,11 @@ export default {
"/activitiespage?courseId=" + "/activitiespage?courseId=" +
item.courseId + item.courseId +
"&type=1&id=" + "&type=1&id=" +
item.id; item.id +
"&chapterOrStageId=" +
item.stageId +
"&infoId=" +
state.projectId;
} }
//活动 //活动
if (item.type == 10) { if (item.type == 10) {
@@ -4714,7 +4736,13 @@ export default {
"&type=1&evaType=" + "&type=1&evaType=" +
item.evaType + item.evaType +
"&targetId=" + "&targetId=" +
item.targetId; item.targetId +
"&id=" +
item.id +
"&chapterOrStageId=" +
item.stageId +
"&infoId=" +
state.projectId;
} }
// 评估 停用 // 评估 停用