+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
@@ -149,6 +175,7 @@ import useUserStore from '@/store/modules/user'
import { useToolState } from '@/store/modules/tool'
import MoveFile from '@/components/move-file/index.vue'
import FileListItem from '@/views/prepare/container/file-list-item.vue'
+import KjListItem from '@/views/prepare/container/kj-list-item.vue'
import { getSmarttalkPage, moveSmarttalk, creatAPT } from '@/api/file'
import { toTimeText } from '@/utils/date'
import { ElMessage } from 'element-plus'
@@ -159,10 +186,10 @@ import outLink from '@/utils/linkConfig'
import { createWindow, sessionStore } from '@/utils/tool'
import { cloneDeep } from 'lodash'
import { delClasswork, listEntpcourse } from '@/api/teaching/classwork'
-import { getSelfReserv } from '@/api/classManage'
+import { getClassInfo, getSelfReserv } from '@/api/classManage'
import { useGetHomework } from '@/hooks/useGetHomework'
import { addEntpcoursefileReturnId } from '@/api/education/entpcoursefile'
-
+import ClassReserv from '@/views/classManage/classReserv.vue'
const toolStore = useToolState()
const fs = require('fs')
@@ -175,9 +202,11 @@ export default {
Refresh,
uploadDialog,
FileListItem,
+ KjListItem,
FileOperBatch,
MoveFile,
- SetHomework
+ SetHomework,
+ ClassReserv
},
data() {
return {
@@ -196,6 +225,8 @@ export default {
curClassReserv: {},
downloadNum: 0,
lastAsyncAllTime: '',
+ activeTab: "素材",
+ activeAptTab: "教学课件",
uploadData: {
textbookId: null,
levelFirstId: 39103,
@@ -219,6 +250,12 @@ export default {
return (
this.checkFileList.length > 0 && this.checkFileList.length === this.currentFileList.length
)
+ },
+ currentKJFileList() {
+ return this.currentFileList.filter((item) => item.fileFlag === 'apt' || item.fileFlag === '课件')
+ },
+ currentSCFileList() {
+ return this.currentFileList.filter((item) => item.fileFlag !== 'apt' && item.fileFlag !== '课件')
}
},
@@ -230,13 +267,13 @@ export default {
this.callback(param)
})
this.lastAsyncAllTime = localStorage.getItem('lastAsyncAllTime')
- this.initReserv()
+ // this.initReserv()
},
mounted() {
this.$watch(
() => toolStore.isToolWin,
(newD, oldD) => {
- setTimeout(this.initReserv, 500)
+ // setTimeout(this.initReserv, 500)
}
)
// electron 当前窗口
@@ -256,16 +293,19 @@ export default {
// }
// },
methods: {
- initReserv() {
- getSelfReserv().then((res) => {
- let list = res.data.filter((item) => {
- return item.status !== '已结束'
- })
- if (list.length > 0) {
- this.curClassReserv = list[list.length - 1]
- } else {
- this.curClassReserv = {}
- }
+ startClass(item) {
+ console.log(item)
+ if(item.fileFlag === '课件') {
+ this.openReserv()
+ }
+ if(item.fileFlag === 'apt') {
+ //TODO 打开apt
+ }
+ },
+ initReserv(id) {
+ getClassInfo(id).then((res) => {
+ this.curClassReserv = res.data
+ this.openLesson(res.data.id);
})
},
getBookPathFromServer() {
@@ -312,7 +352,7 @@ export default {
},
createAptFile() {
listEntpcourse({
- evalid: this.uploadData.levelSecondId,
+ evalid: this.currentNode.id,
edituserid: this.userStore.userId,
pageSize: 500
}).then((response) => {
@@ -596,7 +636,7 @@ export default {
})
},
// 上课-工具类悬浮
- async openLesson() {
+ async openLesson(id) {
// await startClass(this.curClassReserv.id)
createWindow('tool-sphere', {
url:
@@ -605,7 +645,7 @@ export default {
'&label=' +
this.currentNode.label +
'&reservId=' +
- this.curClassReserv.id
+ id
})
}
}
@@ -643,20 +683,78 @@ export default {
user-select: none;
padding-top: 10px;
height: 100%;
-
+ :deep(.el-tabs__nav) {
+ .el-tabs__item{
+ font-weight: bold;
+ font-size: 18px;
+ }
+ }
+ .page-center-wrap{
+ flex: 1;
+ height: 100%;
+ padding: 0 10px;
+ .prepare-center-jxkj{
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ .prepare-center-header{
+ display: flex;
+ cursor: pointer;
+ .center-create-btn{
+ cursor: pointer;
+ margin: 5px;
+ flex: 1;
+ height: 60px;
+ border-radius: 5px;
+ .create-btn-title{
+ font-weight: 900;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 15px;
+ color: #ffffff;
+ height: 15px;
+ margin-top: 15px;
+ label{
+ cursor: pointer;
+ }
+ }
+ .create-btn-info{
+ cursor: pointer;
+ font-size: 12px;
+ color: #ffffff;
+ margin-top: 5px;
+ }
+ }
+ }
+ .prepare-center-body{
+ flex: 1;
+ overflow: auto;
+ }
+ }
+ .prepare-center-jxsl{
+ height: 100%;
+ }
+ }
.page-right {
overflow: hidden;
position: relative;
- min-width: 0;
- flex: 1;
- margin-left: 20px;
+ min-width: 375px;
+ width: 375px;
height: 100%;
background: #ffffff;
border-radius: 10px;
box-shadow: 0px 0px 20px 0px rgba(99, 99, 99, 0.06);
display: flex;
flex-direction: column;
-
+ .prepare-tabs{
+ height: 100%;
+ :deep(.el-tab-pane) {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ }
+ }
.header-top {
height: 150px;
align-items: center;
@@ -742,20 +840,24 @@ export default {
}
.prepare-body-header {
- height: 60px;
+ //height: 60px;
width: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: space-between;
- padding: 0 20px;
+ //padding: 0 20px;
+ }
+ .prepare-work-wrap{
+ width: 100%;
+ flex: 1;
+ overflow: auto;
}
-
.prepare-body-main {
flex: 1;
width: 100%;
overflow: auto;
- padding: 0 30px;
+ //padding: 0 30px;
line-height: normal;
}
}
--
2.44.0.windows.1
From 3a20f453c68992fee61e7226dac637f7d8c155dc Mon Sep 17 00:00:00 2001
From: zhuhao <979263092@qq.com>
Date: Sat, 14 Sep 2024 16:00:45 +0800
Subject: [PATCH 3/3] =?UTF-8?q?APT=E4=B8=8A=E8=AF=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/index.js b/src/main/index.js
index da943a1..a7a18bf 100644
--- a/src/main/index.js
+++ b/src/main/index.js
@@ -68,7 +68,7 @@ function createLoginWindow() {
function createMainWindow() {
mainWindow = new BrowserWindow({
width: 1200,
- minWidth: 1200,
+ minWidth: 1350,
height: 700,
show: false,
frame: false, // 无边框
--
2.44.0.windows.1