Compare commits

..

No commits in common. "ef77069329b677a87e3f1826731f2e7241b5365b" and "9fa06cfabbd5cd205b24289315f23059a964ca23" have entirely different histories.

10 changed files with 25 additions and 37 deletions

View File

@ -238,7 +238,7 @@ export default async function ({ app, shell, BrowserWindow, ipcMain }) {
//下载文件
ipcMain.on('download-file-default', (e, { url, fileName }) => {
createFolder('selfFile').then(async () => {
const browserWindow = BrowserWindow.getFocusedWindow()
const browserWindow = BrowserWindow.fromId(e.sender.id)
const id = await manager.download({
window: browserWindow,
url: url,

View File

@ -61,11 +61,11 @@ const menus = ref([
name: '备课',
path: '/prepare'
},
/*{
{
icon: 'icon-jiangke1 icon-teach',
name: '授课',
path: '/teach'
}*/
}
])
//

View File

@ -25,6 +25,15 @@
<div class="prepare-uploader-progress" :style="{ width: item.percentage + '%' }"></div>
<div class="prepare-body-main-item-icon">
<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 class="prepare-body-main-item-info">
<div class="prepare-item-info-title">{{ item.raw.name }}</div>

View File

@ -19,7 +19,7 @@ export const constantRoutes = [
path: '/resource',
component: () => import('@/views/resource/index.vue'),
name: 'resource',
meta: {title: '资源'}
meta: {title: '资源',keepAlive:true}
},
{
path: '/prepare',

View File

@ -20,10 +20,6 @@ export const resourceFormat = [
label: 'ppt',
value: 'ppt'
},
{
label: 'pptx',
value: 'pptx'
},
{
label: 'mp3',
value: 'mp3'
@ -66,4 +62,4 @@ export const resourceType = [
label: '教案',
value: '教案'
}
]
]

View File

@ -110,6 +110,7 @@
import {listClassmain, listClassuser, addClassgroup, listClassgroup, delClassgroup,getClassgroup,updateClassgroup} from '@/api/classManage/index'
import {ref, onMounted, reactive, defineProps, watch} from 'vue'
import useUserStore from '@/store/modules/user'
import {useRoute} from 'vue-router'
import {ElMessage} from "element-plus";
const userStore = useUserStore().user

View File

@ -9,10 +9,9 @@
<el-descriptions :column="1">
<el-descriptions-item label="班级名称">{{ classInfo.className }}</el-descriptions-item>
<el-descriptions-item label="教师">
<template v-if="classInfo.teacher.length > 0">
<template>
<el-tag type="primary" v-for="(item, index) in classInfo.teacher" :key="index">{{item.name}}</el-tag>
</template>
<template v-else>暂无</template>
</el-descriptions-item>
<el-descriptions-item label="学生人数">{{ classInfo.student.length }}</el-descriptions-item>
</el-descriptions>

View File

@ -110,7 +110,7 @@
//
const courseList = ref([])
//id
const classId = ref(0)
const classId = ref('')
//
const currentIndex = ref(0)
//
@ -265,6 +265,7 @@
onMounted(() => {
getClassInfo()
nextTick(() => {
console.log(userStore.deptId,'123')
viewportHeight.value = getViewportHeight()
})
window.addEventListener('resize', () => {

View File

@ -19,8 +19,7 @@
src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
/>
</div>
<div><el-text class="mx-1" type="primary">{{ item.name }}</el-text></div>
<div><el-text class="mx-1" type="warning">{{ item.username }}</el-text></div>
<div>{{ item.name }}</div>
</div>
</template>
<template v-else>

View File

@ -14,7 +14,6 @@
</div>
<el-button type="primary" class="to-class-btn" @click="openLesson">
<i class="iconfont icon-lingdang"></i>上课</el-button>
<div class="top-zoom-style"></div>
</div>
<div class="prepare-body-header">
@ -118,15 +117,10 @@ export default {
this.callback(param)
})
this.lastAsyncAllTime = localStorage.getItem('lastAsyncAllTime')
},
mounted() {
},
activated() {
if (this.uploadData.textbookId !== null) {
this.asyncAllFile()
}
},
methods: {
createFile() {
creatPPT(this.currentNode.label + '.pptx', this.uploadData).then((res) => {
@ -258,9 +252,9 @@ export default {
},
//
handleOutLink(key){
// key linkConfig.js
// key linkConfig.js
let configObj = outLink[key]
//
//
ipcRenderer.send('openWindow', {
fullPath: configObj.fullPath,
cookieData: {...(configObj.data)}
@ -327,16 +321,8 @@ export default {
height: 150px;
align-items: center;
justify-content: center;
position: relative;
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%);
}
background: linear-gradient(#97c4ed, #7aa8e5);
padding-right: 20px;
.textbook-img{
height: 120px;
background-color: #ffffff;
@ -344,13 +330,11 @@ export default {
border-radius: 6px;
overflow: hidden;
margin-right: 20px;
z-index: 1;
}
.top-item{
width: 230px;
position: relative;
flex-wrap: wrap;
z-index: 1;
.btn{
width: 102px;
background: none;
@ -374,7 +358,6 @@ export default {
height: 80px;
margin-left: 25px;
font-size: 18px;
z-index: 1;
.icon-lingdang{
margin-right: 5px;
color: #ffffff;