mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +08:00
在线课权限参数名称修改
This commit is contained in:
@@ -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" :couresIds="props.taskList" :isSystemAdmin="props.courseSyncFlag">
|
<CreateOnline ref="onlineRef" :id="props.courseSyncFlag?'':props.id" :type="props.courseSyncFlag?'':props.infoType" :courseIds="props.taskList" :isSystemAdmin="props.courseSyncFlag">
|
||||||
<a-button type="primary" style="border-radius: 4px">{{
|
<a-button type="primary" style="border-radius: 4px">{{
|
||||||
taskIndex === -1 ? "选择/新建课程" : "重新选择"
|
taskIndex === -1 ? "选择/新建课程" : "重新选择"
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -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}&couresIds=${couresIdArray}&isSystemAdmin=${props.isSystemAdmin}`"
|
:src="`${iframeUrl}/course/manages?f=choose&refId=${props.id}&refType=${props.type}&courseIds=${couresIdArray}&isSystemAdmin=${props.isSystemAdmin}`"
|
||||||
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"
|
||||||
@@ -30,15 +30,15 @@ const couresIdArray = ref();
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
type: Number,
|
type: Number,
|
||||||
id: Number,
|
id: Number,
|
||||||
couresIds: Array,
|
courseIds: Array,
|
||||||
isSystemAdmin: Boolean
|
isSystemAdmin: Boolean
|
||||||
});
|
});
|
||||||
// 把任务列表里类型为在线课的课程ID放到数组里
|
// 把任务列表里类型为在线课的课程ID放到数组里
|
||||||
if(props.couresIds && props.couresIds.length){
|
if(props.courseIds && props.courseIds.length){
|
||||||
var arr = []
|
var arr = []
|
||||||
for(var i = 0;i<props.couresIds.length;i++){
|
for(var i = 0;i<props.courseIds.length;i++){
|
||||||
if(props.couresIds[i].type === 1){
|
if(props.courseIds[i].type === 1){
|
||||||
arr.push(props.couresIds[i].courseId)
|
arr.push(props.courseIds[i].courseId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
couresIdArray.value = arr
|
couresIdArray.value = arr
|
||||||
|
|||||||
Reference in New Issue
Block a user