Compare commits
13 Commits
e6a08c857a
...
52dfb52161
Author | SHA1 | Date |
---|---|---|
yangws | 52dfb52161 | |
朱浩 | 7d4f9bdbf9 | |
朱浩 | 67bc54765c | |
yangws | 0d53cabbed | |
yangws | 4e6e11ac2c | |
朱浩 | 51c8c79b17 | |
朱浩 | 53e34dc515 | |
朱浩 | 03ce0df516 | |
朱浩 | c25978d30e | |
朱浩 | 9f9a611f89 | |
朱浩 | 1b45ab4579 | |
朱浩 | 0a641fee06 | |
朱浩 | e032d8514e |
|
@ -238,7 +238,7 @@ export default async function ({ app, shell, BrowserWindow, ipcMain }) {
|
||||||
//下载文件
|
//下载文件
|
||||||
ipcMain.on('download-file-default', (e, { url, fileName }) => {
|
ipcMain.on('download-file-default', (e, { url, fileName }) => {
|
||||||
createFolder('selfFile').then(async () => {
|
createFolder('selfFile').then(async () => {
|
||||||
const browserWindow = BrowserWindow.fromId(e.sender.id)
|
const browserWindow = BrowserWindow.getFocusedWindow()
|
||||||
const id = await manager.download({
|
const id = await manager.download({
|
||||||
window: browserWindow,
|
window: browserWindow,
|
||||||
url: url,
|
url: url,
|
||||||
|
|
|
@ -61,11 +61,11 @@ const menus = ref([
|
||||||
name: '备课',
|
name: '备课',
|
||||||
path: '/prepare'
|
path: '/prepare'
|
||||||
},
|
},
|
||||||
{
|
/*{
|
||||||
icon: 'icon-jiangke1 icon-teach',
|
icon: 'icon-jiangke1 icon-teach',
|
||||||
name: '授课',
|
name: '授课',
|
||||||
path: '/teach'
|
path: '/teach'
|
||||||
}
|
}*/
|
||||||
])
|
])
|
||||||
|
|
||||||
// 监听当前路由
|
// 监听当前路由
|
||||||
|
|
|
@ -25,15 +25,6 @@
|
||||||
<div class="prepare-uploader-progress" :style="{ width: item.percentage + '%' }"></div>
|
<div class="prepare-uploader-progress" :style="{ width: item.percentage + '%' }"></div>
|
||||||
<div class="prepare-body-main-item-icon">
|
<div class="prepare-body-main-item-icon">
|
||||||
<FileImage :size="50" :file-name="item.raw.name" />
|
<FileImage :size="50" :file-name="item.raw.name" />
|
||||||
<!-- <svg
|
|
||||||
class="icon"
|
|
||||||
aria-hidden="true"
|
|
||||||
font-size="50px"
|
|
||||||
color="red"
|
|
||||||
style="margin: auto"
|
|
||||||
>
|
|
||||||
<use xlink:href="#icon-ppt"></use>
|
|
||||||
</svg>-->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="prepare-body-main-item-info">
|
<div class="prepare-body-main-item-info">
|
||||||
<div class="prepare-item-info-title">{{ item.raw.name }}</div>
|
<div class="prepare-item-info-title">{{ item.raw.name }}</div>
|
||||||
|
|
|
@ -19,7 +19,7 @@ export const constantRoutes = [
|
||||||
path: '/resource',
|
path: '/resource',
|
||||||
component: () => import('@/views/resource/index.vue'),
|
component: () => import('@/views/resource/index.vue'),
|
||||||
name: 'resource',
|
name: 'resource',
|
||||||
meta: {title: '资源',keepAlive:true}
|
meta: {title: '资源'}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/prepare',
|
path: '/prepare',
|
||||||
|
|
|
@ -20,6 +20,10 @@ export const resourceFormat = [
|
||||||
label: 'ppt',
|
label: 'ppt',
|
||||||
value: 'ppt'
|
value: 'ppt'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'pptx',
|
||||||
|
value: 'pptx'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'mp3',
|
label: 'mp3',
|
||||||
value: 'mp3'
|
value: 'mp3'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<el-card style="width: 100%">
|
<el-card style="width: 100%;height: 100%">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div style="text-align: left">
|
<div style="text-align: left">
|
||||||
<el-button v-if="classInfo.teacher.length > 0" type="danger" @click="deleteClassRoom">删除班级</el-button>
|
<el-button v-if="classInfo.teacher.length > 0" type="danger" @click="deleteClassRoom">删除班级</el-button>
|
||||||
|
|
|
@ -15,12 +15,15 @@
|
||||||
</el-aside>
|
</el-aside>
|
||||||
<el-main :style="{'min-height': (viewportHeight - 160) + 'px'}">
|
<el-main :style="{'min-height': (viewportHeight - 160) + 'px'}">
|
||||||
<!-- <router-view :style="{'height': (viewportHeight - 120) + 'px','overflow-y': 'auto'}" :key="route.path"></router-view>-->
|
<!-- <router-view :style="{'height': (viewportHeight - 120) + 'px','overflow-y': 'auto'}" :key="route.path"></router-view>-->
|
||||||
|
<div :style="{'height': (viewportHeight - 120) + 'px','overflow-y': 'auto'}">
|
||||||
<!-- 班级概况-->
|
<!-- 班级概况-->
|
||||||
<ClassInfo v-if="currentIndex==0" :classId="classId"></ClassInfo>
|
<ClassInfo v-if="currentIndex==0" :classId="classId"></ClassInfo>
|
||||||
<!-- 学生列表-->
|
<!-- 学生列表-->
|
||||||
<StudentList v-else-if="currentIndex==1" :classId="classId"></StudentList>
|
<StudentList v-else-if="currentIndex==1" :classId="classId"></StudentList>
|
||||||
<!-- 分组情况-->
|
<!-- 分组情况-->
|
||||||
<BasicGroup v-else-if="currentIndex==2" :classId="classId"></BasicGroup>
|
<BasicGroup v-else-if="currentIndex==2" :classId="classId"></BasicGroup>
|
||||||
|
</div>
|
||||||
|
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div style="height: 100%">
|
||||||
<el-card style="width: 100%;height: 100%">
|
<el-card style="width: 100%;height: 100%">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div style="text-align: left;display: flex;justify-content: space-between">
|
<div style="text-align: left;display: flex;justify-content: space-between">
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
</div>
|
</div>
|
||||||
<el-button type="primary" class="to-class-btn" @click="openLesson">
|
<el-button type="primary" class="to-class-btn" @click="openLesson">
|
||||||
<i class="iconfont icon-lingdang"></i>上课</el-button>
|
<i class="iconfont icon-lingdang"></i>上课</el-button>
|
||||||
|
<div class="top-zoom-style"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="prepare-body-header">
|
<div class="prepare-body-header">
|
||||||
|
|
||||||
|
@ -121,6 +122,11 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
|
activated() {
|
||||||
|
if (this.uploadData.textbookId !== null) {
|
||||||
|
this.asyncAllFile()
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
createFile() {
|
createFile() {
|
||||||
creatPPT(this.currentNode.label + '.pptx', this.uploadData).then((res) => {
|
creatPPT(this.currentNode.label + '.pptx', this.uploadData).then((res) => {
|
||||||
|
@ -321,8 +327,16 @@ export default {
|
||||||
height: 150px;
|
height: 150px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background: linear-gradient(#97c4ed, #7aa8e5);
|
position: relative;
|
||||||
padding-right: 20px;
|
background: linear-gradient(#b0d1ef, #3e7bcb);
|
||||||
|
.top-zoom-style{
|
||||||
|
position: absolute;
|
||||||
|
width: 90%;
|
||||||
|
height: 30px;
|
||||||
|
background: linear-gradient(#b0d1ef, #5283c4);
|
||||||
|
bottom: 0;
|
||||||
|
clip-path: polygon(3% 0%, 97% 0%, 100% 100%, 0% 100%);
|
||||||
|
}
|
||||||
.textbook-img{
|
.textbook-img{
|
||||||
height: 120px;
|
height: 120px;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
@ -330,11 +344,13 @@ export default {
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
.top-item{
|
.top-item{
|
||||||
width: 230px;
|
width: 230px;
|
||||||
|
position: relative;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
z-index: 1;
|
||||||
.btn{
|
.btn{
|
||||||
width: 102px;
|
width: 102px;
|
||||||
background: none;
|
background: none;
|
||||||
|
@ -358,6 +374,7 @@ export default {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
margin-left: 25px;
|
margin-left: 25px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
z-index: 1;
|
||||||
.icon-lingdang{
|
.icon-lingdang{
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
|
Loading…
Reference in New Issue