mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
在线课添加权限
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<iframe
|
||||
id="iframe"
|
||||
style="width: 100%; height: 600px"
|
||||
:src="`${iframeUrl}/course/manages?f=choose&refId=${props.id}&refType=${props.type}`"
|
||||
:src="`${iframeUrl}/course/manages?f=choose&refId=${props.id}&refType=${props.type}&couresIds=${couresIdArray}&isSystemAdmin=${props.isSystemAdmin}`"
|
||||
name="myframe"
|
||||
security="restricted"
|
||||
sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
|
||||
@@ -26,12 +26,23 @@ import {defineProps, ref} from "vue";
|
||||
import {iframeUrl} from "@/api/method";
|
||||
|
||||
const visible = ref(false);
|
||||
|
||||
const couresIdArray = ref();
|
||||
const props = defineProps({
|
||||
type: Number,
|
||||
id: Number,
|
||||
couresIds: Array,
|
||||
isSystemAdmin: Boolean
|
||||
});
|
||||
|
||||
// 把任务列表里类型为在线课的课程ID放到数组里
|
||||
if(props.couresIds && props.couresIds.length){
|
||||
var arr = []
|
||||
for(var i = 0;i<props.couresIds.length;i++){
|
||||
if(props.couresIds[i].type === 1){
|
||||
arr.push(props.couresIds[i].courseId)
|
||||
}
|
||||
}
|
||||
couresIdArray.value = arr
|
||||
}
|
||||
function openModal() {
|
||||
visible.value = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user