+
预览
删除
@@ -362,7 +362,7 @@ const fileLoading = ref(false); // 常规作业loading
* 作业类型切换
*/
const changeFormType = (val) => {
- classWorkForm.worktype = val;
+ classWorkForm.worktype = val;
}
/**
@@ -371,7 +371,7 @@ const changeFormType = (val) => {
* @param {*} queryType
* 1 - 按条件查询
* 2 - 按关键词查询
- */
+ */
const handleQueryParamFromEntpCourseWork = (queryType) => {
// 确保更改了搜索参数后从第一页开始查询
// this.paginationParams = {pageNum: 1,pageSize: 10}; 分页这里展示弃用了
@@ -410,7 +410,7 @@ const handleQueryFromEntpCourseWork= (queryType) => {
keyword: entpCourseWorkQueryParams.keyWord && entpCourseWorkQueryParams.keyWord !== '' ? entpCourseWorkQueryParams.keyWord:'',
}
-
+
// 分页参数
// pageNum: paginationParams.pageNum,
// pageSize: paginationParams.pageSize,
@@ -420,7 +420,7 @@ const handleQueryFromEntpCourseWork= (queryType) => {
// // [初中+政治]需改为[初中+道德与法治]
// queryForm.edusubject = '道德与法治';
// }
-
+
listEntpcourseworkNew(queryForm).then(entpcourseworkres => {
// if (queryType == 1 && this.entpCourseWorkQueryParams.worktype == '主观题') {
// // 因菁优网题型因学科而不固定, 故非常规题重定义定为【主观题】
@@ -431,7 +431,7 @@ const handleQueryFromEntpCourseWork= (queryType) => {
// } else {
// workResource.entpCourseWorkList = entpcourseworkres.rows;
// }
-
+
if(entpcourseworkres.data&&entpcourseworkres.data.length>0){
workResource.entpCourseWorkList = entpcourseworkres.data;
workResource.entpCourseWorkTotal = entpcourseworkres.data.length;
@@ -509,7 +509,7 @@ const getEntpCourseWorkPointList = () => {
/**
* 添加资源
* @param fromsrc - 试题来源
- * @param entpcourseworkid
+ * @param entpcourseworkid
*/
const handleClassWorkQuizAdd = (fromsrc, entpcourseworkid) => {
var exist = false;
@@ -608,11 +608,11 @@ const handleClassWorkSave = async () => {
uniquekey: classWorkForm.uniquekey,// 作业名称、编码
classid: 0,
classcourseid: 0,
- entpcourseid: chapterId, // 这个字段很特别
+ entpcourseid: chapterId, // 这个字段很特别
slideid: 0,
title: classWorkForm.title, // 作业说明?
workcodes: JSON.stringify(classWorkForm.workcodes), // 作业内容?
- edusubject: userStore.edusubject, // 学科 语文 数学
+ edusubject: userStore.edusubject, // 学科 语文 数学
evalid: props.bookobj.levelSecondId, //userStore.evalid, // // 单元下的课ID
edustage: userStore.edustage, // 学段 年纪 高中,初中,小学
status: '10', //2024-09-11 作业布置分离后的 新模版数据; 之前老版本为空
@@ -628,16 +628,16 @@ const handleClassWorkSave = async () => {
return;
}
-
-
+
+
if (classWorkForm.worktype === "课堂展示") {
boardLoading.value = true
let canvasJson = proxy.$refs.boardref.getCanvasJson()
let canvasBase64 = await proxy.$refs.boardref.getCanvasBase64()
// 课堂展示提交内容
- cform.title = classWorkForm.title;
+ cform.title = classWorkForm.title;
cform.workcodes = JSON.stringify({json: canvasJson, base64: canvasBase64});
cform.entpcourseworklist = JSON.stringify([{'id':-1, 'score': '10'}]);
try {
@@ -667,7 +667,7 @@ const handleClassWorkSave = async () => {
} finally {
boardLoading.value = false
}
- }
+ }
else if(classWorkForm.worktype === "常规作业"){
fileLoading.value = true
cform.workcodes = JSON.stringify(classWorkForm.fileHomeworkList);
@@ -725,7 +725,7 @@ const handleClassWorkSave = async () => {
}
console.log(cform,'提交的数据');
if(cform.entpcourseworklist == '') return ElMessage({ type: 'warning', message: '请先添加作业资源!'});
-
+
addClassworkReturnId(cform).then(workres => {
ElMessage({ type: 'success', message: '作业设计成功!'});
// 重置提交表单
@@ -743,7 +743,7 @@ const handleClassWorkSave = async () => {
})
}
-
+
if(props.isback){
// 其他页面进入的 返回上一页
router.back();
@@ -782,20 +782,20 @@ const editWork = async (cform) =>{
// 根据作业类型分类处理
if (classWorkForm.worktype=='习题训练'){
-
+
// 1.判断当前添加的作业是否与原来不同(跟父组件传来的值对比)
let needUplEval = false;
if (classWorkForm.quizlist.length != props.propsformobj.quizlist.length) {
needUplEval = true;
}else {
// 只要有一个不一致则说明需要更新
- needUplEval = classWorkForm.quizlist.some(cur =>
- !props.propsformobj.quizlist.some(last =>
+ needUplEval = classWorkForm.quizlist.some(cur =>
+ !props.propsformobj.quizlist.some(last =>
last.id === cur.id && last.score === cur.score
)
);
}
-
+
// 2.需要重新更新eval的数据
if (needUplEval) {
// 说明: 因试题分值也需修改, 故无法通过按钮的增长删除来处理, 故将原作业全部删除后再重新添加
@@ -806,7 +806,7 @@ const editWork = async (cform) =>{
arrEvalids.push(element.id);
});
const ids = arrEvalids.join(',');
-
+
// 2.2.删除原作业
const delRes = await delClassworkeval(ids);
@@ -837,8 +837,8 @@ const editWork = async (cform) =>{
needUplEval = true;
}else {
// 只要有一个不一致则说明需要更新
- needUplEval = classWorkForm.chooseWorkLists.some(cur =>
- !props.propsformobj.chooseWorkLists.some(last =>
+ needUplEval = classWorkForm.chooseWorkLists.some(cur =>
+ !props.propsformobj.chooseWorkLists.some(last =>
last.id === cur.id && last.score === cur.score
)
);
@@ -902,15 +902,15 @@ watch(() => props.bookobj.levelSecondId, (newVal) => {
.container {
display: flex;
flex-direction: column;
- height: 100%;
+ height: 100%;
}
.top, .bottom {
- flex: 0 0 auto;
+ flex: 0 0 auto;
}
.middle {
- flex: 1;
+ flex: 1;
height: 100%;
overflow: hidden;
}
@@ -937,8 +937,8 @@ watch(() => props.bookobj.levelSecondId, (newVal) => {
.work-right {
height: 100%;
- padding: 0 0 0 5px;
- overflow: auto;
+ padding: 0 0 0 5px;
+ overflow: auto;
line-height: 26px;
overflow: hidden;
}
@@ -949,19 +949,19 @@ watch(() => props.bookobj.levelSecondId, (newVal) => {
display: flex;
flex-direction: column;
align-items: center;
- margin-bottom: 5px;
+ margin-bottom: 5px;
.choose-work-title{
- font-size: 1.2em;
+ font-size: 1.2em;
font-weight: bold;
margin-right: 5px
}
.choose-work-content{
- width: 100%;
+ width: 100%;
display: flex;
justify-content: space-around;
- flex-direction: column;
+ flex-direction: column;
flex: 1;
:deep(.el-form-item__label){
width: 50px !important;
diff --git a/src/renderer/src/views/classTask/newClassTask.vue b/src/renderer/src/views/classTask/newClassTask.vue
index b1d8236..ee78857 100644
--- a/src/renderer/src/views/classTask/newClassTask.vue
+++ b/src/renderer/src/views/classTask/newClassTask.vue
@@ -6,7 +6,7 @@
:collapse="isCollapse"
>
-
+
diff --git a/src/renderer/src/views/classTask/teachClassTask.vue b/src/renderer/src/views/classTask/teachClassTask.vue
index 9ad1ad0..fa5ba08 100644
--- a/src/renderer/src/views/classTask/teachClassTask.vue
+++ b/src/renderer/src/views/classTask/teachClassTask.vue
@@ -633,7 +633,7 @@ const closeDialog = () => {
}
onMounted(() => {
-
+
// const data = JSON.parse(localStorage.getItem('teachClassWorkItem'));
const data = sessionStore.get('teachClassWorkItem');
console.log(data,'????????????????????' )
@@ -657,8 +657,6 @@ onUnmounted(() => {
// })
-
-
-
+
diff --git a/src/renderer/src/views/examReport/index.vue b/src/renderer/src/views/examReport/index.vue
index 9a4c791..ff4b637 100644
--- a/src/renderer/src/views/examReport/index.vue
+++ b/src/renderer/src/views/examReport/index.vue
@@ -14,7 +14,7 @@
-
+
@@ -24,7 +24,7 @@
-
+
@@ -51,15 +51,15 @@
-
-
@@ -88,9 +88,9 @@ const sourceStore = useResoureStore();
const viewportHeight = ref(0);
const viewportWidth = ref(0);
// 当前选中的章节或单元
-const curNode = ref({});
-// 试题集合
-const listExamQuestion = ref([]);
+const curNode = ref({});
+// 试题集合
+const listExamQuestion = ref([]);
const loading = ref(false);
const curTask = reactive({
viewkey: '真题回顾',
@@ -299,4 +299,4 @@ onMounted(() => {
}
-
\ No newline at end of file
+
From bddcf2d4ff0ae8e6a3e6b2b2659d09979e5bd6ff Mon Sep 17 00:00:00 2001
From: zhuhao <979263092@qq.com>
Date: Sat, 19 Oct 2024 17:01:05 +0800
Subject: [PATCH 2/3] =?UTF-8?q?BUG=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 2 +-
.env.production | 2 +-
src/main/index.js | 5 ++---
src/renderer/src/utils/tool.js | 4 ++--
.../views/prepare/container/kj-list-item.vue | 20 +++++++++++++++----
src/renderer/src/views/prepare/index.vue | 10 +++++-----
6 files changed, 27 insertions(+), 16 deletions(-)
diff --git a/.env.development b/.env.development
index 11bbc06..f3b45f2 100644
--- a/.env.development
+++ b/.env.development
@@ -16,4 +16,4 @@ VITE_APP_RES_FILE_PATH = 'https://file.ysaix.com:7868/src/assets/textbook/booktx
VITE_APP_BUILD_BASE_PATH = 'https://file.ysaix.com:7868/'
-VITE_SHOW_DEV_TOOLS = true
+VITE_SHOW_DEV_TOOLS = 'true'
diff --git a/.env.production b/.env.production
index 2a0bdc9..05e26a6 100644
--- a/.env.production
+++ b/.env.production
@@ -18,4 +18,4 @@ VITE_APP_RES_FILE_PATH = 'https://prev.ysaix.com:7868/src/assets/textbook/booktx
VITE_APP_BUILD_BASE_PATH = 'https://prev.ysaix.com:7868/'
-VITE_SHOW_DEV_TOOLS = false
+VITE_SHOW_DEV_TOOLS = 'true'
diff --git a/src/main/index.js b/src/main/index.js
index 91f5c08..f00b1b0 100644
--- a/src/main/index.js
+++ b/src/main/index.js
@@ -73,8 +73,7 @@ function createLoginWindow() {
loginWindow.loadFile(join(__dirname, '../renderer/index.html'), { hash: 'login' })
updateInit(loginWindow)
}
-
- if (import.meta.env.VITE_SHOW_DEV_TOOLS === true) loginWindow.webContents.openDevTools()
+ if (import.meta.env.VITE_SHOW_DEV_TOOLS === 'true') loginWindow.webContents.openDevTools()
loginWindow.once('ready-to-show', () => {
loginWindow.show()
})
@@ -128,7 +127,7 @@ function createMainWindow() {
shell.openExternal(details.url)
return { action: 'deny' }
})
- if (import.meta.env.VITE_SHOW_DEV_TOOLS === true) mainWindow.webContents.openDevTools()
+ if (import.meta.env.VITE_SHOW_DEV_TOOLS === 'true') mainWindow.webContents.openDevTools()
if (is.dev && process.env['ELECTRON_RENDERER_URL']) {
mainWindow.loadURL(process.env['ELECTRON_RENDERER_URL'])
diff --git a/src/renderer/src/utils/tool.js b/src/renderer/src/utils/tool.js
index ebce77f..445cf22 100644
--- a/src/renderer/src/utils/tool.js
+++ b/src/renderer/src/utils/tool.js
@@ -138,7 +138,7 @@ export const createWindow = async (type, data) => {
wins_tool.setIgnoreMouseEvents(true, {forward: true}) // 忽略鼠标事件但是事件继续传递给窗口
wins_tool.setAlwaysOnTop(true,'screen-saver') // 将窗口设置为顶层窗口
wins_tool.setVisibleOnAllWorkspaces(true) // 如果窗口在所有工作区都可见
- if (import.meta.env.VITE_SHOW_DEV_TOOLS === true) wins_tool.webContents.openDevTools() // 打开调试工具
+ if (import.meta.env.VITE_SHOW_DEV_TOOLS === 'true') wins_tool.webContents.openDevTools() // 打开调试工具
eventHandles(type, wins_tool) // 事件监听处理
return wins_tool
}
@@ -165,7 +165,7 @@ export const createWindow = async (type, data) => {
win.type = type // 唯一标识
win.show()
win.setFullScreen(true) // 设置窗口为全屏
- if (import.meta.env.VITE_SHOW_DEV_TOOLS === true) win.webContents.openDevTools() // 打开调试工具
+ if (import.meta.env.VITE_SHOW_DEV_TOOLS === 'true') win.webContents.openDevTools() // 打开调试工具
eventHandles(type, win) // 事件监听处理
winPdf=win
break
diff --git a/src/renderer/src/views/prepare/container/kj-list-item.vue b/src/renderer/src/views/prepare/container/kj-list-item.vue
index a4b0260..7a9a56a 100644
--- a/src/renderer/src/views/prepare/container/kj-list-item.vue
+++ b/src/renderer/src/views/prepare/container/kj-list-item.vue
@@ -98,7 +98,7 @@ import FileImage from '@/components/file-image/index.vue'
import { asyncLocalFile } from '@/utils/talkFile'
import { toTimeText } from '@/utils/date'
import { ElMessage, ElMessageBox } from 'element-plus'
-import { deleteSmarttalk, updateSmarttalk, getPrepareById } from '@/api/file'
+import { deleteSmarttalk, updateSmarttalk, getPrepareById, getSmarttalkPage } from '@/api/file'
import useUserStore from '@/store/modules/user'
import outLink from '@/utils/linkConfig'
import { sessionStore } from '@/utils/store'
@@ -208,6 +208,7 @@ export default {
}
if (action === 'cancel'){
// 继续上课
+ console.log(obj.bookImg)
if (obj.bookImg) {
//PPT
listEntpcourse({
@@ -241,9 +242,20 @@ export default {
}
})
}else {
- //APT
- this.$emit('on-start-class', item, obj)
- done()
+ console.log(obj)
+ getSmarttalkPage({fileId: obj.entpcoursefileid}).then(res2=>{
+ console.log(res2)
+ //APT
+ if (res2&&res2.rows.length>0) {
+ this.$emit('on-start-class', res2.rows[0], obj)
+ }else {
+ ElMessage({
+ message: '该文件未关联PPT,无法打开!',
+ type: 'warning'
+ })
+ }
+ done()
+ })
}
}
if (action === 'close') {
diff --git a/src/renderer/src/views/prepare/index.vue b/src/renderer/src/views/prepare/index.vue
index 8e74903..49f2615 100644
--- a/src/renderer/src/views/prepare/index.vue
+++ b/src/renderer/src/views/prepare/index.vue
@@ -106,7 +106,7 @@
:item="item"
:index="index"
@on-set="openSet"
- @on-reSet="openReSet"
+ @on-reSet="openReSet"
@on-delhomework="delhomework"
>
@@ -657,7 +657,7 @@ export default {
this.$refs['reservDialog'].openDialog()
},
- // 打开外部链接
+ // 打开外部链接
// handleOutLink(key) {
// if (key == 'homeWork') {
// this.isOpenHomework = true
@@ -689,11 +689,11 @@ export default {
// 前往作业设计页面
goNewClassTask(){
// router.push({ path: '/newClassTask' });
- this.$router.push({
+ this.$router.push({
path: '/newClassTask',
query: {
isBack: true,
- }
+ }
});
},
getWeekday1(date) {
@@ -730,7 +730,7 @@ export default {
}
});
//---------------------
- // 暂时弃用 外链 新窗口打开标识
+ // 暂时弃用 外链 新窗口打开标识
// this.isOpenHomework = true;
// // key 对应的 linkConfig.js 外部链接配置
// let configObj = outLink()['homeWork']
From 770a847e91659b56c421e933d03ad550fc93efd0 Mon Sep 17 00:00:00 2001
From: zhuhao <979263092@qq.com>
Date: Sat, 19 Oct 2024 17:33:11 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=AA=97=E5=8F=A3?=
=?UTF-8?q?=E6=9C=80=E5=A4=A7=E5=8C=96?=
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 4c00a6b..87a0ef1 100644
--- a/src/main/index.js
+++ b/src/main/index.js
@@ -95,7 +95,6 @@ function createMainWindow() {
frame: false, // 无边框
autoHideMenuBar: true,
maximizable: false,
- fullscreen: true,
icon: join(__dirname, '../../resources/logo2.ico'),
...(process.platform === 'linux' ? { icon } : {}),
webPreferences: {
@@ -138,6 +137,7 @@ function createMainWindow() {
// mainWindow.setAlwaysOnTop(true, "screen-saver") // 将窗口设置为顶层窗口
// mainWindow.setVisibleOnAllWorkspaces(true) // 如果窗口在所有工作区都可见
+ mainWindow.maximize();
// 第三步: 开启remote服务
remote.enable(mainWindow.webContents)
}