|
|
@@ -1,5 +1,9 @@
|
|
|
<template>
|
|
|
- <h2 class="contentTitle">实践中心</h2>
|
|
|
+ <h2 class="contentTitle">
|
|
|
+ <div class="Levelone">
|
|
|
+ 实践中心
|
|
|
+ </div>
|
|
|
+ </h2>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="6">
|
|
|
<div class="grid-content" @click="openApplication('szdjgCocooroboX')">
|
|
|
@@ -25,18 +29,64 @@
|
|
|
|
|
|
</div>
|
|
|
</el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="grid-content" @click="openApplications('study')">
|
|
|
+ <!-- <router-link to="/iframe/其他课程资源/课程中心"> -->
|
|
|
+ <img :src="Img2" alt="">
|
|
|
+ <span class="course_down" @click="courseDown($event)">课件下载</span>
|
|
|
+ <div>
|
|
|
+ <p class="title" title="拓展课程">拓展课程</p>
|
|
|
+ <p title="教师使用预置或自定义补充资源开展授课。">教师使用预置或自定义补充资源开展授课。</p>
|
|
|
+ </div>
|
|
|
+ <!-- </router-link> -->
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
+ <el-dialog v-model="dialogVisible" :before-close="handleClose" width=1200 >
|
|
|
+ <template #header>
|
|
|
+ <div class="dialog-header img_text_middle">
|
|
|
+ <!-- <img :src="WarningImg" alt=""> -->
|
|
|
+ <span class="warning_text">课程中心</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <CourseSelect :classDown="false"></CourseSelect>
|
|
|
+ <template #footer>
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <!-- <el-button type="primary" @click="updateReduction()">
|
|
|
+ 确认修改
|
|
|
+ </el-button> -->
|
|
|
+ <el-button @click="dialogVisible = false">取消</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
import { ref } from 'vue';
|
|
|
+import CourseSelect from './downloadCourse.vue';
|
|
|
import GraphicsImg from '@/assets/icon/图形化icon-1.png'
|
|
|
import pythonImg from '@/assets/icon/Frame.png'
|
|
|
+import Img2 from '@/assets/icon/课程中心.png'
|
|
|
+import { userInfoStore } from '@/stores/counter'
|
|
|
+
|
|
|
+const dialogVisible = ref(false)
|
|
|
+const InfoStore = userInfoStore()
|
|
|
|
|
|
|
|
|
const openApplication = (type) => {
|
|
|
top.U.MD.D.I.openApplication(type)
|
|
|
}
|
|
|
-
|
|
|
+const openApplications = (type) => {
|
|
|
+ if (type) {
|
|
|
+ console.log(type, InfoStore.user)
|
|
|
+ window.open('https://cloud.cocorobo.cn//#/' + type)
|
|
|
+ }else{
|
|
|
+ window.open("https://knowledge.cocorobo.cn/zh-CN/story-telling/643a21ae-d2ef-11ef-9d05-12e77c4cb76b")
|
|
|
+ }
|
|
|
+}
|
|
|
+const courseDown = e => {
|
|
|
+ dialogVisible.value = true
|
|
|
+ e.stopPropagation();
|
|
|
+}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.el-row {
|
|
|
@@ -116,4 +166,16 @@ const openApplication = (type) => {
|
|
|
.el-row:last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
+.Levelone{
|
|
|
+ width: 120px;
|
|
|
+ background: #E0EAFB;
|
|
|
+ border-radius: 5px;
|
|
|
+ color: #5D8AFB;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ height: 33px;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 500;
|
|
|
+}
|
|
|
</style>
|