|
@@ -15,7 +15,7 @@
|
|
|
<img src="@/img/curriculum/jxmb.png" />
|
|
|
<div>教学目标</div>
|
|
|
</div>
|
|
|
- <div v-if="['ING', 'UNDERWAY'].includes(statusVal)" class="rightBtn" @click="handleSetUpCourseware(props.modalData.id)">
|
|
|
+ <div v-if="coursewareShow" class="rightBtn" @click="handleSetUpCourseware(props.modalData.id)">
|
|
|
<div>{{ curriculumDetailData.id ? "更换课件" : "配置课件" }}</div>
|
|
|
<img src="@/img/curriculum/jt1.png" />
|
|
|
</div>
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
getLessonCourseDetail_gym
|
|
|
} from "@/api/curriculum.api"
|
|
|
import { httpAjaxErrMsg } from "@/plugin/httpAjax"
|
|
|
-import { ref, shallowRef } from "vue"
|
|
|
+import { ref, shallowRef, computed } from "vue"
|
|
|
import { handleStartClass_gyt, handleStartClass_gym, isONLINE_gym } from "./hooks/useStartClass"
|
|
|
import userStore from "@/store/modules/user"
|
|
|
import router from "@/router"
|
|
@@ -92,6 +92,14 @@ function close() {
|
|
|
const loading = ref(false)
|
|
|
const statusVal = ref("") //课程状态 ING 和 UNDERWAY 代表可以上课
|
|
|
const teachModeVal = ref("") //课程类型 ONLINE课的时候提示去app
|
|
|
+const coursewareFlagVal = ref(false) // 管乐团能否配置课件 coursewareFlag字段为true就能配置
|
|
|
+const coursewareShow = computed(() => {
|
|
|
+ if (userStoreHook.roles === "GYM") {
|
|
|
+ return statusVal.value === "UNDERWAY"
|
|
|
+ } else {
|
|
|
+ return coursewareFlagVal.value
|
|
|
+ }
|
|
|
+})
|
|
|
const curriculumDetailData = shallowRef<{
|
|
|
pointList: any[]
|
|
|
targetDesc: string
|
|
@@ -139,8 +147,9 @@ function getCurriculumDetailData_gyt() {
|
|
|
loading.value = true
|
|
|
httpAjaxErrMsg(getCourseScheduleDetail_gyt, props.modalData.id).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- const { lessonCoursewareDetailId, status } = res.data || {}
|
|
|
+ const { lessonCoursewareDetailId, status, coursewareFlag } = res.data || {}
|
|
|
statusVal.value = status
|
|
|
+ coursewareFlagVal.value = coursewareFlag
|
|
|
if (lessonCoursewareDetailId) {
|
|
|
httpAjaxErrMsg(getLessonCoursewareDetail_gyt, lessonCoursewareDetailId).then(resData => {
|
|
|
loading.value = false
|
|
@@ -210,6 +219,7 @@ function handleCourseClick(item: any) {
|
|
|
cursor: pointer;
|
|
|
background: url("@/img/useDialogConfirm/close.png") no-repeat;
|
|
|
background-size: cover;
|
|
|
+ z-index: 1;
|
|
|
&:hover {
|
|
|
background: url("@/img/useDialogConfirm/closeHover.png") no-repeat;
|
|
|
background-size: cover;
|
|
@@ -251,6 +261,7 @@ function handleCourseClick(item: any) {
|
|
|
.content {
|
|
|
position: relative;
|
|
|
padding-top: 18px;
|
|
|
+ padding-left: 18px;
|
|
|
height: calc(100% - 57px);
|
|
|
& > :deep(.elScrollbar) {
|
|
|
.el-scrollbar__view {
|
|
@@ -260,8 +271,8 @@ function handleCourseClick(item: any) {
|
|
|
overflow-x: hidden;
|
|
|
}
|
|
|
.el-scrollbar__bar.is-vertical {
|
|
|
- width: 4px;
|
|
|
- right: 0;
|
|
|
+ width: 5px;
|
|
|
+ right: 1px;
|
|
|
}
|
|
|
}
|
|
|
&:deep(.empty) {
|
|
@@ -276,7 +287,7 @@ function handleCourseClick(item: any) {
|
|
|
}
|
|
|
}
|
|
|
.teachingObjectives {
|
|
|
- padding: 16px 33px 20px;
|
|
|
+ padding: 16px 16px 20px;
|
|
|
.head {
|
|
|
width: 100%;
|
|
|
height: 57px;
|
|
@@ -328,7 +339,7 @@ function handleCourseClick(item: any) {
|
|
|
}
|
|
|
}
|
|
|
.knowledgePoints {
|
|
|
- padding: 16px 0 20px 33px;
|
|
|
+ padding: 16px 0 20px 16px;
|
|
|
.head {
|
|
|
margin-right: 33px;
|
|
|
height: 57px;
|