zhuhao_dev #342

Merged
zhuhao merged 7 commits from zhuhao_dev into main 2024-10-19 17:34:05 +08:00
10 changed files with 85 additions and 170 deletions
Showing only changes of commit 45485c04fc - Show all commits

View File

@ -15,3 +15,5 @@ VITE_APP_UPLOAD_API = 'https://file.ysaix.com:7868/prod-api'
VITE_APP_RES_FILE_PATH = 'https://file.ysaix.com:7868/src/assets/textbook/booktxt/' VITE_APP_RES_FILE_PATH = 'https://file.ysaix.com:7868/src/assets/textbook/booktxt/'
VITE_APP_BUILD_BASE_PATH = 'https://file.ysaix.com:7868/' VITE_APP_BUILD_BASE_PATH = 'https://file.ysaix.com:7868/'
VITE_SHOW_DEV_TOOLS = true

View File

@ -17,3 +17,5 @@ VITE_BUILD_COMPRESS = gzip
VITE_APP_RES_FILE_PATH = 'https://prev.ysaix.com:7868/src/assets/textbook/booktxt/' VITE_APP_RES_FILE_PATH = 'https://prev.ysaix.com:7868/src/assets/textbook/booktxt/'
VITE_APP_BUILD_BASE_PATH = 'https://prev.ysaix.com:7868/' VITE_APP_BUILD_BASE_PATH = 'https://prev.ysaix.com:7868/'
VITE_SHOW_DEV_TOOLS = false

View File

@ -74,7 +74,7 @@ function createLoginWindow() {
updateInit(loginWindow) updateInit(loginWindow)
} }
loginWindow.webContents.openDevTools() if (import.meta.env.VITE_SHOW_DEV_TOOLS === true) loginWindow.webContents.openDevTools()
loginWindow.once('ready-to-show', () => { loginWindow.once('ready-to-show', () => {
loginWindow.show() loginWindow.show()
}) })
@ -128,7 +128,7 @@ function createMainWindow() {
shell.openExternal(details.url) shell.openExternal(details.url)
return { action: 'deny' } return { action: 'deny' }
}) })
mainWindow.webContents.openDevTools() if (import.meta.env.VITE_SHOW_DEV_TOOLS === true) mainWindow.webContents.openDevTools()
if (is.dev && process.env['ELECTRON_RENDERER_URL']) { if (is.dev && process.env['ELECTRON_RENDERER_URL']) {
mainWindow.loadURL(process.env['ELECTRON_RENDERER_URL']) mainWindow.loadURL(process.env['ELECTRON_RENDERER_URL'])

View File

@ -138,7 +138,7 @@ export const createWindow = async (type, data) => {
wins_tool.setIgnoreMouseEvents(true, {forward: true}) // 忽略鼠标事件但是事件继续传递给窗口 wins_tool.setIgnoreMouseEvents(true, {forward: true}) // 忽略鼠标事件但是事件继续传递给窗口
wins_tool.setAlwaysOnTop(true,'screen-saver') // 将窗口设置为顶层窗口 wins_tool.setAlwaysOnTop(true,'screen-saver') // 将窗口设置为顶层窗口
wins_tool.setVisibleOnAllWorkspaces(true) // 如果窗口在所有工作区都可见 wins_tool.setVisibleOnAllWorkspaces(true) // 如果窗口在所有工作区都可见
wins_tool.webContents.openDevTools() // 打开调试工具 if (import.meta.env.VITE_SHOW_DEV_TOOLS === true) wins_tool.webContents.openDevTools() // 打开调试工具
eventHandles(type, wins_tool) // 事件监听处理 eventHandles(type, wins_tool) // 事件监听处理
return wins_tool return wins_tool
} }
@ -165,7 +165,7 @@ export const createWindow = async (type, data) => {
win.type = type // 唯一标识 win.type = type // 唯一标识
win.show() win.show()
win.setFullScreen(true) // 设置窗口为全屏 win.setFullScreen(true) // 设置窗口为全屏
win.webContents.openDevTools() // 打开调试工具 if (import.meta.env.VITE_SHOW_DEV_TOOLS === true) win.webContents.openDevTools() // 打开调试工具
eventHandles(type, win) // 事件监听处理 eventHandles(type, win) // 事件监听处理
winPdf=win winPdf=win
break break

View File

@ -6,7 +6,7 @@
:collapse="isCollapse" :collapse="isCollapse"
> >
<!--左侧 教材 目录--> <!--左侧 教材 目录-->
<div v-if="!isCollapse" style="height: 100%;overflow: hidden;"> <div v-if="!isCollapse" style="height: 100%;overflow: hidden;">
<ChooseTextbook @change-book="getData" @node-click="getData" /> <ChooseTextbook @change-book="getData" @node-click="getData" />
</div> </div>
</el-menu> </el-menu>
@ -33,7 +33,7 @@
</el-col> </el-col>
</el-row> </el-row>
<!-- 作业类型:内容 --> <!-- 作业类型:内容 -->
<div style="flex: 1;overflow: hidden;"> <div style="flex: 1;overflow: hidden;">
<el-table <el-table
ref="taskTable" ref="taskTable"
v-loading="loading" v-loading="loading"
@ -139,7 +139,7 @@
<div style="color: silver; display: flex;align-items: center;"> <div style="color: silver; display: flex;align-items: center;">
<div style="flex: 1;">{{ _item.worktype }}</div> <div style="flex: 1;">{{ _item.worktype }}</div>
<div style="flex: 1;">分值{{ _item.score }}</div> <div style="flex: 1;">分值{{ _item.score }}</div>
<div style="display: flex;align-items: center;flex: 1;justify-content: flex-end;"> <div style="display: flex;align-items: center;flex: 1;justify-content: flex-end;">
<el-button @click="prevRead(_item)">预览</el-button> <el-button @click="prevRead(_item)">预览</el-button>
</div> </div>
</div> </div>
@ -187,7 +187,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-else> <div v-else>
<div v-if="workConfObj.teachFileList.length > 0"> <div v-if="workConfObj.teachFileList.length > 0">
<div style="margin: 10px 0;text-align: left; margin: auto 0; cursor: pointer;"> <div style="margin: 10px 0;text-align: left; margin: auto 0; cursor: pointer;">
<span style="color: #409eff" @click="openFile">预览其他类型附件</span> <span style="color: #409eff" @click="openFile">预览其他类型附件</span>
@ -219,7 +219,7 @@
<!-- 已推送历史 --> <!-- 已推送历史 -->
<el-dialog v-model="pushRecordsOpen" title="推送历史记录" width="80%" append-to-body> <el-dialog v-model="pushRecordsOpen" title="推送历史记录" width="80%" append-to-body>
<div style="flex: 1;overflow: hidden; min-height: 400px;"> <div style="flex: 1;overflow: hidden; min-height: 400px;">
<el-table <el-table
ref="pushRecordsRef" ref="pushRecordsRef"
:data="pushRecordsList" :data="pushRecordsList"
@ -286,7 +286,7 @@
<prevReadMsgDialog ref="prevReadMsgDialogRef" :bookobj="courseObj"/> <prevReadMsgDialog ref="prevReadMsgDialogRef" :bookobj="courseObj"/>
<!-- 其他附件预览框 acceptParams--> <!-- 其他附件预览框 acceptParams-->
<prevReadImgFileDialog ref="prevReadImgFileDialogRef"/> <prevReadImgFileDialog ref="prevReadImgFileDialogRef"/>
</div> </div>
</div> </div>
</template> </template>
@ -308,7 +308,7 @@ import SetHomework from '@/components/set-homework/index.vue'
import {sessionStore} from '@/utils/store' import {sessionStore} from '@/utils/store'
import {createWindow} from '@/utils/tool' import {createWindow} from '@/utils/tool'
import { useToolState } from '@/store/modules/tool' import { useToolState } from '@/store/modules/tool'
import {throttle,debounce } from '@/utils/comm' import {throttle,debounce } from '@/utils/comm'
const toolState = useToolState(); const toolState = useToolState();
@ -342,7 +342,7 @@ const courseObj = reactive({
}) })
const taskList = ref([]); // const taskList = ref([]); //
const loading = ref(false); const loading = ref(false);
const pushRecordsList = ref([]); // const pushRecordsList = ref([]); //
const pushRecordsOpen = ref(false); // const pushRecordsOpen = ref(false); //
const pushRecordsLoading = ref(false); // loading const pushRecordsLoading = ref(false); // loading
@ -414,7 +414,7 @@ const initHomeWork = async()=> {
} }
/** /**
* 查看推送历史 * 查看推送历史
* *
*/ */
const queryPushRecords = (row) => { const queryPushRecords = (row) => {
// //
@ -437,7 +437,7 @@ const queryPushRecords = (row) => {
// if (res.rows[i].worktype == '') { // if (res.rows[i].worktype == '') {
// res.rows[i].workclass = 'success'; // res.rows[i].workclass = 'success';
// res.rows[i].workcodesList = JSON.parse(res.rows[i].workcodes); // res.rows[i].workcodesList = JSON.parse(res.rows[i].workcodes);
// } else // } else
// TODO // TODO
if (res.rows[i].worktype == '课堂展示') { if (res.rows[i].worktype == '课堂展示') {
res.rows[i].workclass = 'primary'; res.rows[i].workclass = 'primary';
@ -476,11 +476,11 @@ const debounceOpenWin = debounce(() => {
// //
const onClickItem = (item) => { const onClickItem = (item) => {
console.log('防抖开启弹窗') console.log('防抖开启弹窗')
sessionStore.set('teachClassWorkItem', item); // item sessionStore.set('teachClassWorkItem', item); // item
debounceOpenWin(); debounceOpenWin();
} }
/** /**
* 删除按钮操作 TODO 待完善 * 删除按钮操作 TODO 待完善
* */ * */
const handleDelete =() => { const handleDelete =() => {
@ -618,8 +618,8 @@ const handleWorkTitleEdit = (row, index, type) => {
}; };
/** /**
* 作业内容-查看详情 * 作业内容-查看详情
* */ * */
const handleWorkEdit = (row, index) =>{ const handleWorkEdit = (row, index) =>{
console.log(row, index) console.log(row, index)
workEdit.value = true workEdit.value = true
@ -637,7 +637,7 @@ const handleWorkTitleEdit = (row, index, type) => {
if ( res.data==null || res.data==undefined ) { if ( res.data==null || res.data==undefined ) {
return; return;
} }
res.data.worktype = '框架梳理'; res.data.worktype = '框架梳理';
res.data.score = listCourseWork[0].score; res.data.score = listCourseWork[0].score;
@ -706,7 +706,7 @@ const handleWorkTitleEdit = (row, index, type) => {
}; };
/** /**
* 作业内容-前往作业设计 编辑页面 * 作业内容-前往作业设计 编辑页面
* @param row * @param row
*/ */
const handleWorkEditItem = (row) => { const handleWorkEditItem = (row) => {
editListItem(row, courseObj).then((obj) => { editListItem(row, courseObj).then((obj) => {
@ -778,11 +778,11 @@ const handleTaskAssignToAllClass = () => {
*/ */
const handleNewClassWorkDialog = () => { const handleNewClassWorkDialog = () => {
// //
router.push({ router.push({
path: '/newClassTask', path: '/newClassTask',
query: { query: {
isBack: true, isBack: true,
} }
}); });
} }
@ -878,18 +878,20 @@ watch(() => courseObj.node, (newVal,oldVal) => {
</script> </script>
<!--
<style> <style>
.el-table .hidden-row { .el-table .hidden-row {
display: none !important; display: none !important;
/* color: #ccc !important; */ /* color: #ccc !important; */
} }
.el-table .father-row { .el-table .father-row {
--el-table-tr-bg-color: #fff; &#45;&#45;el-table-tr-bg-color: #fff;
} }
.el-table .son-row { .el-table .son-row {
--el-table-tr-bg-color: #f0f0f08a; &#45;&#45;el-table-tr-bg-color: #f0f0f08a;
} }
</style> </style>
-->
<style lang="scss" scoped> <style lang="scss" scoped>
.page-classTaskAssign { .page-classTaskAssign {
@ -934,4 +936,4 @@ watch(() => courseObj.node, (newVal,oldVal) => {
} }
} }
</style> </style>
<style src="@/assets/styles/JYStyle.css"></style> <style src="@/assets/styles/JYStyle.css"></style>

View File

@ -656,8 +656,6 @@ defineExpose({
}) })
</script> </script>
<style src="@/assets/styles/JYStyle.css"></style>
<style scoped lang="scss"> <style scoped lang="scss">
/*:deep(.reserv-date-pick) { /*:deep(.reserv-date-pick) {
width: 140px; width: 140px;
@ -765,3 +763,4 @@ defineExpose({
overflow-y: auto; overflow-y: auto;
} }
</style> </style>
<style src="@/assets/styles/JYStyle.css"></style>

View File

@ -29,7 +29,7 @@
<whiteboard ref="boardref" :height="mainHeight - 150" :isShowSave="false" :data="classWorkForm.whiteboardObj"/> <whiteboard ref="boardref" :height="mainHeight - 150" :isShowSave="false" :data="classWorkForm.whiteboardObj"/>
</div> </div>
</div> </div>
<div v-else class="el-form-work-list"> <div v-else class="el-form-work-list">
<el-form-item label="作业资源:" class="el-form-work-list"> <el-form-item label="作业资源:" class="el-form-work-list">
<!-- 左侧作业资源 --> <!-- 左侧作业资源 -->
<el-col :span="15" class="work-left"> <el-col :span="15" class="work-left">
@ -54,7 +54,7 @@
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="知识点" label-width="70"> <el-form-item label="知识点" label-width="70">
<el-cascader <el-cascader
v-model="entpCourseWorkQueryParams.point" v-model="entpCourseWorkQueryParams.point"
clearable clearable
style="width: 100%" style="width: 100%"
@ -80,8 +80,8 @@
<el-col :span="15"> <el-col :span="15">
<el-form-item label="关键词" label-width="70"> <el-form-item label="关键词" label-width="70">
<el-input <el-input
v-model="entpCourseWorkQueryParams.keyWord" v-model="entpCourseWorkQueryParams.keyWord"
style="width: 70%" type="text" style="width: 70%" type="text"
placeholder="请输入关键词" placeholder="请输入关键词"
/> />
<el-button @click="handleQueryParamFromEntpCourseWork(1)"><el-icon><Search /></el-icon> </el-button> <el-button @click="handleQueryParamFromEntpCourseWork(1)"><el-icon><Search /></el-icon> </el-button>
@ -89,7 +89,7 @@
</el-col> </el-col>
</el-row> </el-row>
<!-- 习题表格 --> <!-- 习题表格 -->
<div class="middle" > <div class="middle" >
<el-table :data="workResource.entpCourseWorkList" style="width: 100%; height: 100%;"> <el-table :data="workResource.entpCourseWorkList" style="width: 100%; height: 100%;">
<el-table-column type="index" width="60" /> <el-table-column type="index" width="60" />
<el-table-column align="left" > <el-table-column align="left" >
@ -119,10 +119,10 @@
<!-- 分页 这里不用--> <!-- 分页 这里不用-->
<!-- <div style="height: 55px;"> <!-- <div style="height: 55px;">
<pagination <pagination
v-show="entpCourseWorkTotal > 0" v-show="entpCourseWorkTotal > 0"
v-model:page="paginationParams.pageNum" v-model:page="paginationParams.pageNum"
v-model:limit="paginationParams.pageSize" v-model:limit="paginationParams.pageSize"
:total="entpCourseWorkTotal" :total="entpCourseWorkTotal"
:style="{ position: 'relative', 'margin-top': '5px' }" :style="{ position: 'relative', 'margin-top': '5px' }"
@pagination="getPaginationList" /> @pagination="getPaginationList" />
</div> --> </div> -->
@ -189,7 +189,7 @@
<el-form-item label="分值"> <el-form-item label="分值">
<el-input-number v-model="item.score" :min="1" :max="100" size="small"></el-input-number > <el-input-number v-model="item.score" :min="1" :max="100" size="small"></el-input-number >
</el-form-item> </el-form-item>
<div style="display: flex;align-items: center;flex: 1;justify-content: flex-end;"> <div style="display: flex;align-items: center;flex: 1;justify-content: flex-end;">
<el-button @click="prevRead(item)">预览</el-button> <el-button @click="prevRead(item)">预览</el-button>
<el-button type="danger" @click="deleteClassWorkAddOfResource(item)">删除</el-button> <el-button type="danger" @click="deleteClassWorkAddOfResource(item)">删除</el-button>
</div> </div>
@ -362,7 +362,7 @@ const fileLoading = ref(false); // 常规作业loading
* 作业类型切换 * 作业类型切换
*/ */
const changeFormType = (val) => { const changeFormType = (val) => {
classWorkForm.worktype = val; classWorkForm.worktype = val;
} }
/** /**
@ -371,7 +371,7 @@ const changeFormType = (val) => {
* @param {*} queryType * @param {*} queryType
* 1 - 按条件查询 * 1 - 按条件查询
* 2 - 按关键词查询 * 2 - 按关键词查询
*/ */
const handleQueryParamFromEntpCourseWork = (queryType) => { const handleQueryParamFromEntpCourseWork = (queryType) => {
// //
// this.paginationParams = {pageNum: 1,pageSize: 10}; // this.paginationParams = {pageNum: 1,pageSize: 10};
@ -410,7 +410,7 @@ const handleQueryFromEntpCourseWork= (queryType) => {
keyword: entpCourseWorkQueryParams.keyWord && entpCourseWorkQueryParams.keyWord !== '' ? entpCourseWorkQueryParams.keyWord:'', keyword: entpCourseWorkQueryParams.keyWord && entpCourseWorkQueryParams.keyWord !== '' ? entpCourseWorkQueryParams.keyWord:'',
} }
// //
// pageNum: paginationParams.pageNum, // pageNum: paginationParams.pageNum,
// pageSize: paginationParams.pageSize, // pageSize: paginationParams.pageSize,
@ -420,7 +420,7 @@ const handleQueryFromEntpCourseWork= (queryType) => {
// // [+][+] // // [+][+]
// queryForm.edusubject = ''; // queryForm.edusubject = '';
// } // }
listEntpcourseworkNew(queryForm).then(entpcourseworkres => { listEntpcourseworkNew(queryForm).then(entpcourseworkres => {
// if (queryType == 1 && this.entpCourseWorkQueryParams.worktype == '') { // if (queryType == 1 && this.entpCourseWorkQueryParams.worktype == '') {
// // , // // ,
@ -431,7 +431,7 @@ const handleQueryFromEntpCourseWork= (queryType) => {
// } else { // } else {
// workResource.entpCourseWorkList = entpcourseworkres.rows; // workResource.entpCourseWorkList = entpcourseworkres.rows;
// } // }
if(entpcourseworkres.data&&entpcourseworkres.data.length>0){ if(entpcourseworkres.data&&entpcourseworkres.data.length>0){
workResource.entpCourseWorkList = entpcourseworkres.data; workResource.entpCourseWorkList = entpcourseworkres.data;
workResource.entpCourseWorkTotal = entpcourseworkres.data.length; workResource.entpCourseWorkTotal = entpcourseworkres.data.length;
@ -509,7 +509,7 @@ const getEntpCourseWorkPointList = () => {
/** /**
* 添加资源 * 添加资源
* @param fromsrc - 试题来源 * @param fromsrc - 试题来源
* @param entpcourseworkid * @param entpcourseworkid
*/ */
const handleClassWorkQuizAdd = (fromsrc, entpcourseworkid) => { const handleClassWorkQuizAdd = (fromsrc, entpcourseworkid) => {
var exist = false; var exist = false;
@ -608,11 +608,11 @@ const handleClassWorkSave = async () => {
uniquekey: classWorkForm.uniquekey,// uniquekey: classWorkForm.uniquekey,//
classid: 0, classid: 0,
classcourseid: 0, classcourseid: 0,
entpcourseid: chapterId, // entpcourseid: chapterId, //
slideid: 0, slideid: 0,
title: classWorkForm.title, // title: classWorkForm.title, //
workcodes: JSON.stringify(classWorkForm.workcodes), // workcodes: JSON.stringify(classWorkForm.workcodes), //
edusubject: userStore.edusubject, // edusubject: userStore.edusubject, //
evalid: props.bookobj.levelSecondId, //userStore.evalid, // // ID evalid: props.bookobj.levelSecondId, //userStore.evalid, // // ID
edustage: userStore.edustage, // ,, edustage: userStore.edustage, // ,,
status: '10', //2024-09-11 status: '10', //2024-09-11
@ -628,16 +628,16 @@ const handleClassWorkSave = async () => {
return; return;
} }
if (classWorkForm.worktype === "课堂展示") { if (classWorkForm.worktype === "课堂展示") {
boardLoading.value = true boardLoading.value = true
let canvasJson = proxy.$refs.boardref.getCanvasJson() let canvasJson = proxy.$refs.boardref.getCanvasJson()
let canvasBase64 = await proxy.$refs.boardref.getCanvasBase64() let canvasBase64 = await proxy.$refs.boardref.getCanvasBase64()
// //
cform.title = classWorkForm.title; cform.title = classWorkForm.title;
cform.workcodes = JSON.stringify({json: canvasJson, base64: canvasBase64}); cform.workcodes = JSON.stringify({json: canvasJson, base64: canvasBase64});
cform.entpcourseworklist = JSON.stringify([{'id':-1, 'score': '10'}]); cform.entpcourseworklist = JSON.stringify([{'id':-1, 'score': '10'}]);
try { try {
@ -667,7 +667,7 @@ const handleClassWorkSave = async () => {
} finally { } finally {
boardLoading.value = false boardLoading.value = false
} }
} }
else if(classWorkForm.worktype === "常规作业"){ else if(classWorkForm.worktype === "常规作业"){
fileLoading.value = true fileLoading.value = true
cform.workcodes = JSON.stringify(classWorkForm.fileHomeworkList); cform.workcodes = JSON.stringify(classWorkForm.fileHomeworkList);
@ -725,7 +725,7 @@ const handleClassWorkSave = async () => {
} }
console.log(cform,'提交的数据'); console.log(cform,'提交的数据');
if(cform.entpcourseworklist == '') return ElMessage({ type: 'warning', message: '请先添加作业资源!'}); if(cform.entpcourseworklist == '') return ElMessage({ type: 'warning', message: '请先添加作业资源!'});
addClassworkReturnId(cform).then(workres => { addClassworkReturnId(cform).then(workres => {
ElMessage({ type: 'success', message: '作业设计成功!'}); ElMessage({ type: 'success', message: '作业设计成功!'});
// //
@ -743,7 +743,7 @@ const handleClassWorkSave = async () => {
}) })
} }
if(props.isback){ if(props.isback){
// //
router.back(); router.back();
@ -782,20 +782,20 @@ const editWork = async (cform) =>{
// //
if (classWorkForm.worktype=='习题训练'){ if (classWorkForm.worktype=='习题训练'){
// 1. // 1.
let needUplEval = false; let needUplEval = false;
if (classWorkForm.quizlist.length != props.propsformobj.quizlist.length) { if (classWorkForm.quizlist.length != props.propsformobj.quizlist.length) {
needUplEval = true; needUplEval = true;
}else { }else {
// //
needUplEval = classWorkForm.quizlist.some(cur => needUplEval = classWorkForm.quizlist.some(cur =>
!props.propsformobj.quizlist.some(last => !props.propsformobj.quizlist.some(last =>
last.id === cur.id && last.score === cur.score last.id === cur.id && last.score === cur.score
) )
); );
} }
// 2.eval // 2.eval
if (needUplEval) { if (needUplEval) {
// : , , // : , ,
@ -806,7 +806,7 @@ const editWork = async (cform) =>{
arrEvalids.push(element.id); arrEvalids.push(element.id);
}); });
const ids = arrEvalids.join(','); const ids = arrEvalids.join(',');
// 2.2. // 2.2.
const delRes = await delClassworkeval(ids); const delRes = await delClassworkeval(ids);
@ -837,8 +837,8 @@ const editWork = async (cform) =>{
needUplEval = true; needUplEval = true;
}else { }else {
// //
needUplEval = classWorkForm.chooseWorkLists.some(cur => needUplEval = classWorkForm.chooseWorkLists.some(cur =>
!props.propsformobj.chooseWorkLists.some(last => !props.propsformobj.chooseWorkLists.some(last =>
last.id === cur.id && last.score === cur.score last.id === cur.id && last.score === cur.score
) )
); );
@ -902,15 +902,15 @@ watch(() => props.bookobj.levelSecondId, (newVal) => {
.container { .container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
} }
.top, .bottom { .top, .bottom {
flex: 0 0 auto; flex: 0 0 auto;
} }
.middle { .middle {
flex: 1; flex: 1;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
} }
@ -937,8 +937,8 @@ watch(() => props.bookobj.levelSecondId, (newVal) => {
.work-right { .work-right {
height: 100%; height: 100%;
padding: 0 0 0 5px; padding: 0 0 0 5px;
overflow: auto; overflow: auto;
line-height: 26px; line-height: 26px;
overflow: hidden; overflow: hidden;
} }
@ -949,19 +949,19 @@ watch(() => props.bookobj.levelSecondId, (newVal) => {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin-bottom: 5px; margin-bottom: 5px;
.choose-work-title{ .choose-work-title{
font-size: 1.2em; font-size: 1.2em;
font-weight: bold; font-weight: bold;
margin-right: 5px margin-right: 5px
} }
.choose-work-content{ .choose-work-content{
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
flex-direction: column; flex-direction: column;
flex: 1; flex: 1;
:deep(.el-form-item__label){ :deep(.el-form-item__label){
width: 50px !important; width: 50px !important;

View File

@ -6,7 +6,7 @@
:collapse="isCollapse" :collapse="isCollapse"
> >
<!--左侧 教材 目录--> <!--左侧 教材 目录-->
<div v-if="!isCollapse" style="height: 100%;overflow: hidden;"> <div v-if="!isCollapse" style="height: 100%;overflow: hidden;">
<ChooseTextbook @change-book="getData" @node-click="getData" /> <ChooseTextbook @change-book="getData" @node-click="getData" />
</div> </div>
</el-menu> </el-menu>

View File

@ -633,7 +633,7 @@ const closeDialog = () => {
} }
onMounted(() => { onMounted(() => {
// const data = JSON.parse(localStorage.getItem('teachClassWorkItem')); // const data = JSON.parse(localStorage.getItem('teachClassWorkItem'));
const data = sessionStore.get('teachClassWorkItem'); const data = sessionStore.get('teachClassWorkItem');
console.log(data,'????????????????????' ) console.log(data,'????????????????????' )
@ -657,8 +657,6 @@ onUnmounted(() => {
// }) // })
</script> </script>
<style src="@/assets/styles/JYStyle.css"></style>
<style scoped lang="scss"> <style scoped lang="scss">
.teachClassTask{ .teachClassTask{
height: 100%; height: 100%;
@ -704,94 +702,6 @@ onUnmounted(() => {
} }
} }
} }
// .clwk_dialog {
// }
// .clwk_dialog {
// display: flex;
// justify-content: center;
// overflow: hidden;
// }
// .clwk_dialog .el-dialog {
// margin: 0 auto !important;
// height: 85%!important;
// overflow: hidden;
// }
// .clwk_dialog .el-dialog__header {
// /* position: absolute;
// top: 0;
// left: 0; */
// width: 100%!important;
// }
// .clwk_dialog .el-dialog__body {
// position: absolute;
// left: 0;
// top: 15px;
// bottom: 1px;
// right:0;
// padding:5px;
// z-index:1;
// display: flex;
// flex-direction: column;
// overflow: hidden;
// /* overflow:hidden;
// overflow-y: auto; */
// }
// .clwk_dialog .el-dialog__footer{
// position: absolute;
// bottom: 10px;
// right: 10px;
// }
// .clwk_dialog .classwork-score{
// overflow-y: auto;
// }
</style> </style>
<style scoped> <style src="@/assets/styles/JYStyle.css"></style>
/* .clwk_dialog {
display: flex;
justify-content: center;
overflow: hidden;
}
.clwk_dialog .el-dialog {
margin: 0 auto !important;
height: 85%!important;
overflow: hidden;
}
.clwk_dialog .el-dialog__header {
/* position: absolute;
top: 0;
left: 0;
width: 100%!important;
}
.clwk_dialog .el-dialog__body {
position: absolute;
left: 0;
top: 15px;
bottom: 1px;
right:0;
padding:5px;
z-index:1;
display: flex;
flex-direction: column;
overflow: hidden;
/* overflow:hidden;
overflow-y: auto;
}
.clwk_dialog .el-dialog__footer{
position: absolute;
bottom: 10px;
right: 10px;
}
.clwk_dialog .classwork-score{
overflow-y: auto;
} */
</style>

View File

@ -14,7 +14,7 @@
</template> </template>
</el-popover> </el-popover>
<div style="margin-top: 7px">&nbsp;&nbsp;<el-icon><ArrowRight /></el-icon>&nbsp;&nbsp;</div> <div style="margin-top: 7px">&nbsp;&nbsp;<el-icon><ArrowRight /></el-icon>&nbsp;&nbsp;</div>
<el-popover disabled placement="top-start" title="考点分析" trigger="hover" content="勾画、圈点,添加标记等,整理出本课的重点与难点,用于老师讲解和学生自主预习"> <el-popover disabled placement="top-start" title="考点分析" trigger="hover" content="勾画、圈点,添加标记等,整理出本课的重点与难点,用于老师讲解和学生自主预习">
<template #reference> <template #reference>
<el-button-group> <el-button-group>
@ -24,7 +24,7 @@
</template> </template>
</el-popover> </el-popover>
<div style="margin-top: 7px">&nbsp;&nbsp;<el-icon><ArrowRight /></el-icon>&nbsp;&nbsp;</div> <div style="margin-top: 7px">&nbsp;&nbsp;<el-icon><ArrowRight /></el-icon>&nbsp;&nbsp;</div>
<el-popover disabled placement="top-start" title="模拟命题" trigger="hover" content="勾画、圈点,添加标记等,整理出本课的重点与难点,用于老师讲解和学生自主预习"> <el-popover disabled placement="top-start" title="模拟命题" trigger="hover" content="勾画、圈点,添加标记等,整理出本课的重点与难点,用于老师讲解和学生自主预习">
<template #reference> <template #reference>
<el-button-group> <el-button-group>
@ -51,15 +51,15 @@
<examReview <examReview
:loading="loading" :loading="loading"
:listExamQuestion="listExamQuestion" :listExamQuestion="listExamQuestion"
v-if="curTask.viewkey=='真题回顾' " v-if="curTask.viewkey=='真题回顾' "
/> />
<pointAnalysis <pointAnalysis
v-else-if="curTask.viewkey=='考点分析' " v-else-if="curTask.viewkey=='考点分析' "
/> />
<examMocks <examMocks
v-else v-else
/> />
</div> </div>
</div> </div>
@ -88,9 +88,9 @@ const sourceStore = useResoureStore();
const viewportHeight = ref(0); const viewportHeight = ref(0);
const viewportWidth = ref(0); const viewportWidth = ref(0);
// //
const curNode = ref({}); const curNode = ref({});
// //
const listExamQuestion = ref([]); const listExamQuestion = ref([]);
const loading = ref(false); const loading = ref(false);
const curTask = reactive({ const curTask = reactive({
viewkey: '真题回顾', viewkey: '真题回顾',
@ -299,4 +299,4 @@ onMounted(() => {
} }
</style> </style>
<style src="@/assets/styles/JYStyle.css"></style> <style src="@/assets/styles/JYStyle.css"></style>