课程在线权限逻辑数据修改

This commit is contained in:
joshen
2024-06-21 16:18:40 +08:00
parent d5440edc59
commit 37a16bc7c6
2 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@
</div> </div>
<div> <div>
<div class="contentMain" style="padding:20px"> <div class="contentMain" style="padding:20px">
<CreateOnline ref="onlineRef" :id="props.courseSyncFlag?'':props.id" :type="props.courseSyncFlag?'':props.infoType" :courseIds="props.taskList" :isSystemAdmin="props.courseSyncFlag"> <CreateOnline ref="onlineRef" :id="props.courseSyncFlag?'':props.id" :type="props.courseSyncFlag?'':props.infoType" :courseIds="props.taskList" :projectId="props.id">
<a-button type="primary" style="border-radius: 4px">{{ <a-button type="primary" style="border-radius: 4px">{{
taskIndex === -1 ? "选择/新建课程" : "重新选择" taskIndex === -1 ? "选择/新建课程" : "重新选择"
}} }}
@@ -53,6 +53,7 @@ const props = defineProps({
taskList: [], taskList: [],
chapterList: [] chapterList: []
}); });
const visible = ref(false); const visible = ref(false);
const onlineRef = ref(false); const onlineRef = ref(false);
const taskIndex = ref(-1); const taskIndex = ref(-1);
@@ -137,7 +138,6 @@ function confirm() {
} }
function selectCourse(row) { function selectCourse(row) {
console.log(row);
if (!props.courseSyncFlag && row.refId != props.id) { if (!props.courseSyncFlag && row.refId != props.id) {
message.warning("请新建本项目在线课!"); message.warning("请新建本项目在线课!");
return; return;

View File

@@ -14,7 +14,7 @@
<iframe <iframe
id="iframe" id="iframe"
style="width: 100%; height: 600px" style="width: 100%; height: 600px"
:src="`${iframeUrl}/course/manages?f=choose&refId=${props.id}&refType=${props.type}&courseIds=${couresIdArray}&isSystemAdmin=${props.isSystemAdmin}`" :src="`${iframeUrl}/course/manages?f=choose&refId=${props.id}&refType=${props.type}&courseIds=${couresIdArray}&projectId=${props.projectId}`"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
@@ -31,7 +31,7 @@ const props = defineProps({
type: Number, type: Number,
id: Number, id: Number,
courseIds: Array, courseIds: Array,
isSystemAdmin: Boolean projectId: String
}); });
// 把任务列表里类型为在线课的课程ID放到数组里 // 把任务列表里类型为在线课的课程ID放到数组里
if(props.courseIds && props.courseIds.length){ if(props.courseIds && props.courseIds.length){