Compare commits
No commits in common. "add2a3e6213a41737ae5ffd0dffa9182039d9a97" and "ae433b75208dcddecc609ea1abcd393ac49b2dbe" have entirely different histories.
add2a3e621
...
ae433b7520
|
@ -62,8 +62,8 @@ const props = defineProps({
|
||||||
entpcourseid: {
|
entpcourseid: {
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
rows: {
|
row: {
|
||||||
default: []
|
default: ''
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
|
@ -225,34 +225,32 @@ const onSubmit = (formEl) => {
|
||||||
let ary = []
|
let ary = []
|
||||||
for (const value in gradeObj) {
|
for (const value in gradeObj) {
|
||||||
//这些参数 参照AIx web端 作业推送
|
//这些参数 参照AIx web端 作业推送
|
||||||
for (var i = 0; i < props.rows.length; i++) {
|
let obj = {
|
||||||
let obj = {
|
id: 0,
|
||||||
id: 0,
|
parentid: props.row.id,
|
||||||
parentid: props.rows[i].id,
|
classid: value,
|
||||||
classid: value,
|
classcourseid: 0, // 课堂id-ppt为字符串不能使用
|
||||||
classcourseid: 0, // 课堂id-ppt为字符串不能使用
|
classReservId: classRoomId, // 课堂id
|
||||||
classReservId: classRoomId, // 课堂id
|
entpcourseid: props.entpcourseid,
|
||||||
entpcourseid: props.entpcourseid,
|
studentlist: JSON.stringify(gradeObj[value]),
|
||||||
studentlist: JSON.stringify(gradeObj[value]),
|
feedback: form.feedback,
|
||||||
feedback: form.feedback,
|
workkey: '',
|
||||||
workkey: '',
|
timelength: form.timelength,
|
||||||
timelength: form.timelength,
|
weights: 1,
|
||||||
weights: 1,
|
deaddate: form.deaddate,
|
||||||
deaddate: form.deaddate,
|
workdate: getCurrentTime('YYYY-MM-DD'),
|
||||||
workdate: getCurrentTime('YYYY-MM-DD'),
|
uniquekey: props.row.uniquekey,
|
||||||
uniquekey: props.rows[i].uniquekey,
|
entpcourseworklist: '[' + props.row.entpcourseworklist + ']',
|
||||||
entpcourseworklist: '[' + props.rows[i].entpcourseworklist + ']',
|
needMsgNotifine: 'false',
|
||||||
needMsgNotifine: 'false',
|
msgkey: 'newclasswork',
|
||||||
msgkey: 'newclasswork',
|
title: '作业任务',
|
||||||
title: '作业任务',
|
msgcontent: '',
|
||||||
msgcontent: '',
|
teachername: userInfo.nickName,
|
||||||
teachername: userInfo.nickName,
|
unixstamp: new Date().getTime(),
|
||||||
unixstamp: new Date().getTime(),
|
worktype: props.row.worktype,
|
||||||
worktype: props.rows[i].worktype,
|
status: '1'
|
||||||
status: '1'
|
|
||||||
}
|
|
||||||
ary.push(obj)
|
|
||||||
}
|
}
|
||||||
|
ary.push(obj)
|
||||||
}
|
}
|
||||||
setLoading.value = true
|
setLoading.value = true
|
||||||
saveByClassWorkArray({
|
saveByClassWorkArray({
|
||||||
|
@ -286,9 +284,8 @@ const cloneDialog = (formEl) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// 默认当前 改为 延后3小时后截止
|
// 默认当前
|
||||||
// form.deaddate = getCurrentTime('YYYY-MM-DD HH:mm')
|
form.deaddate = getCurrentTime('YYYY-MM-DD HH:mm')
|
||||||
form.deaddate = `${getCurrentTime('YYYY-MM-DD')} ${getCurrentTime('HH+3')}:${getCurrentTime('mm')}`;
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,117 +0,0 @@
|
||||||
import { listEntpcoursework,getEvaluationclue } from '@/api/classTask';
|
|
||||||
import { processList } from '@/hooks/useProcessList';
|
|
||||||
|
|
||||||
const isJson = (str) => {
|
|
||||||
if (typeof str == 'string') {
|
|
||||||
try {
|
|
||||||
let obj = JSON.parse(str)
|
|
||||||
if (typeof obj == 'object' && obj) {
|
|
||||||
return true
|
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @description 编辑作业配置
|
|
||||||
* @param {*} row
|
|
||||||
*/
|
|
||||||
export const editListItem = (row, courseObj) => {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
// 作业内容编辑-跳转到设计界面-传参
|
|
||||||
let classtaskObj = {
|
|
||||||
id: '', //
|
|
||||||
bookName: '', // 课程名称
|
|
||||||
uniquekey: '', // 设计中的标题
|
|
||||||
title: '', // 设计中的说明
|
|
||||||
worktype: '', // 设计中的作业类型
|
|
||||||
quizlist: [], // 设计中的试题列表
|
|
||||||
chooseWorkLists: [],// 设计中的框架梳理list
|
|
||||||
fileHomeworkList: [],// 设计中的常规作业list
|
|
||||||
whiteboardObj: '',// 设计中的课堂展示对象
|
|
||||||
};
|
|
||||||
console.log('编辑的行', row);
|
|
||||||
|
|
||||||
//重新更新[新任务]中右侧列表数据
|
|
||||||
var listCourseWork = [];
|
|
||||||
for (var i=0; i < row.entpcourseworklistarray.length; i++) {
|
|
||||||
listCourseWork.push(row.entpcourseworklistarray[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (listCourseWork.length > 0) {
|
|
||||||
classtaskObj.id= row.id; //
|
|
||||||
classtaskObj.bookObj = courseObj; // 教材对象
|
|
||||||
classtaskObj.bookName = row.evaltitle? row.evalparenttitle? row.evalparenttitle+'/'+row.evaltitle : row.evaltitle: row.evalparenttitle// 课程名称:单元/章节: 单元
|
|
||||||
classtaskObj.uniquekey= row.uniquekey; // 设计中的标题
|
|
||||||
classtaskObj.title= row.title; // 设计中的说明
|
|
||||||
classtaskObj.worktype= row.worktype; // 设计中的作业类型
|
|
||||||
classtaskObj.quizlist= []; // 设计中的试题列表
|
|
||||||
classtaskObj.chooseWorkLists = []; //设计中的 框架梳理list
|
|
||||||
classtaskObj.fileHomeworkList = []; //设计中的 常规作业list
|
|
||||||
classtaskObj.whiteboardObj = ''; //设计中的 课堂展示对象
|
|
||||||
|
|
||||||
|
|
||||||
if (row.worktype == '框架梳理') {
|
|
||||||
// 框架梳理对应只有一个内容
|
|
||||||
getEvaluationclue(listCourseWork[0].id).then(res => {
|
|
||||||
if ( res.data==null || res.data==undefined ) {
|
|
||||||
return ;
|
|
||||||
}
|
|
||||||
res.data.worktype = '框架梳理';
|
|
||||||
res.data.score = listCourseWork[0].score;
|
|
||||||
classtaskObj.chooseWorkLists.push(res.data);
|
|
||||||
//
|
|
||||||
// console.log('框架梳理', classtaskObj);
|
|
||||||
return resolve(classtaskObj);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (row.worktype == '习题训练') {
|
|
||||||
const ids = listCourseWork.map(item => item.id).join(",");
|
|
||||||
listEntpcoursework({ids: ids, pageSize: 50}).then(idres => {
|
|
||||||
// for (var i=0; i<idres.rows.length; i++) {
|
|
||||||
// idres.rows[i].titletext = idres.rows[i].title.replace(/<[^>]+>/g, '');
|
|
||||||
// }
|
|
||||||
// 格式化试题
|
|
||||||
if(idres.rows&&idres.rows.length > 0){
|
|
||||||
processList(idres.rows);
|
|
||||||
//重新将task中的分值更新
|
|
||||||
row.entpcourseworklistarray.forEach(item => {
|
|
||||||
const quizItem = idres.rows.find(quiz => quiz.id === item.id);
|
|
||||||
if (quizItem) {
|
|
||||||
quizItem.score = item.score;
|
|
||||||
quizItem.scoreOrigin = item.score;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
classtaskObj.quizlist = idres.rows;
|
|
||||||
//
|
|
||||||
// console.log('习题训练', classtaskObj);
|
|
||||||
return resolve(classtaskObj);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
else if (row.worktype == '课堂展示') {
|
|
||||||
console.log('row.课堂展示', row.workcodes);
|
|
||||||
const workcodes = JSON.parse(row.workcodes);
|
|
||||||
classtaskObj.whiteboardObj = JSON.stringify(workcodes.json);
|
|
||||||
//
|
|
||||||
// console.log('课堂展示', classtaskObj);
|
|
||||||
return resolve(classtaskObj);
|
|
||||||
}
|
|
||||||
else if (row.worktype == '常规作业') {
|
|
||||||
if(isJson(row.workcodes)){
|
|
||||||
classtaskObj.fileHomeworkList = JSON.parse(row.workcodes);
|
|
||||||
//
|
|
||||||
// console.log('常规作业', classtaskObj);
|
|
||||||
return resolve(classtaskObj);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
|
@ -71,7 +71,6 @@ const getHomeWorkList = async () => {
|
||||||
return await homeworklist({
|
return await homeworklist({
|
||||||
entpcourseid: chapterId,
|
entpcourseid: chapterId,
|
||||||
edituserid: userStore.user.userId,
|
edituserid: userStore.user.userId,
|
||||||
orderby: "timestamp DESC",
|
|
||||||
pageSize: 100,
|
pageSize: 100,
|
||||||
status: '10'
|
status: '10'
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
@ -80,25 +79,7 @@ const getHomeWorkList = async () => {
|
||||||
for (var i = 0; i < res.rows.length; i++) {
|
for (var i = 0; i < res.rows.length; i++) {
|
||||||
res.rows[i].taskconfig = []
|
res.rows[i].taskconfig = []
|
||||||
|
|
||||||
// 处理任务类型的UI
|
// 找child
|
||||||
// if (res.rows[i].worktype == '学习目标定位') {
|
|
||||||
// res.rows[i].workclass = 'success';
|
|
||||||
// res.rows[i].workcodesList = JSON.parse(res.rows[i].workcodes);
|
|
||||||
// } else
|
|
||||||
// 课标研读 目标设定 教材研读 框架梳理 学科定位 TODO 后续接入在添加
|
|
||||||
if (res.rows[i].worktype == '课堂展示') {
|
|
||||||
res.rows[i].workclass = 'primary';
|
|
||||||
} else if (res.rows[i].worktype == '框架梳理') {
|
|
||||||
res.rows[i].workclass = 'warning';
|
|
||||||
} else if (res.rows[i].worktype == '常规作业') {
|
|
||||||
res.rows[i].workclass = 'info';
|
|
||||||
} else if (res.rows[i].worktype == '习题训练') {
|
|
||||||
res.rows[i].workclass = 'danger';
|
|
||||||
} else {
|
|
||||||
res.rows[i].workclass = 'primary';
|
|
||||||
}
|
|
||||||
|
|
||||||
// 找child
|
|
||||||
for (var j = 0; j < res.rows.length; j++) {
|
for (var j = 0; j < res.rows.length; j++) {
|
||||||
if (res.rows[j].parentid == res.rows[i].id) {
|
if (res.rows[j].parentid == res.rows[i].id) {
|
||||||
var ss = []
|
var ss = []
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -125,7 +125,7 @@ onMounted(() => {
|
||||||
|
|
||||||
|
|
||||||
watch(() => props.bookobj.levelSecondId, (newVal) => {
|
watch(() => props.bookobj.levelSecondId, (newVal) => {
|
||||||
// console.log(props.bookobj,'课程选择')
|
console.log(props.bookobj,'课程选择')
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -113,17 +113,17 @@ const menuList = [{
|
||||||
{
|
{
|
||||||
name: '作业设计',
|
name: '作业设计',
|
||||||
icon: '#icon-zuoyesheji',
|
icon: '#icon-zuoyesheji',
|
||||||
// isOuter: true,
|
isOuter: true,
|
||||||
// path: '/teaching/classtaskassign?titleName=作业布置&openDialog=newClassTask',
|
path: '/teaching/classtaskassign?titleName=作业布置&openDialog=newClassTask',
|
||||||
path: '/newClassTask',
|
// path: '/newClassTask',
|
||||||
id: '2-1'
|
id: '2-1'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '作业布置',
|
name: '作业布置',
|
||||||
icon: '#icon-zuoyebuzhi',
|
icon: '#icon-zuoyebuzhi',
|
||||||
// isOuter: true,
|
isOuter: true,
|
||||||
// path: '/teaching/classtaskassign?titleName=作业布置',
|
path: '/teaching/classtaskassign?titleName=作业布置',
|
||||||
path: '/classTaskAssign',
|
// path: '/classTaskAssign',
|
||||||
id: '2-2'
|
id: '2-2'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,7 @@
|
||||||
<div class="prepare-item-info-message">
|
<div class="prepare-item-info-message">
|
||||||
<div style="width: 60px">
|
<div style="width: 60px">
|
||||||
<template v-if="item.uniquekey">
|
<template v-if="item.uniquekey">
|
||||||
<!-- {{ item.worktype }} -->
|
{{ item.worktype }}
|
||||||
<el-tag :type="item.workclass" size="large">{{ item.worktype }}</el-tag>
|
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<el-icon
|
<el-icon
|
||||||
|
|
|
@ -95,8 +95,7 @@
|
||||||
<div class="prepare-body-header">
|
<div class="prepare-body-header">
|
||||||
<div>
|
<div>
|
||||||
<label style="font-size: 15px">共{{ currentWorkList.length }}个作业</label>
|
<label style="font-size: 15px">共{{ currentWorkList.length }}个作业</label>
|
||||||
<!-- <el-button size="small" @click="handleOutLink('homeWork')">作业设计</el-button> -->
|
<el-button size="small" @click="handleOutLink('homeWork')">作业设计</el-button>
|
||||||
<el-button size="small" @click="goNewClassTask()">作业设计</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="prepare-work-wrap">
|
<div class="prepare-work-wrap">
|
||||||
|
@ -106,7 +105,7 @@
|
||||||
:item="item"
|
:item="item"
|
||||||
:index="index"
|
:index="index"
|
||||||
@on-set="openSet"
|
@on-set="openSet"
|
||||||
@on-reSet="openReSet"
|
@on-reSet="openReSet"
|
||||||
@on-delhomework="delhomework"
|
@on-delhomework="delhomework"
|
||||||
>
|
>
|
||||||
</file-list-item>
|
</file-list-item>
|
||||||
|
@ -127,7 +126,7 @@
|
||||||
</div>
|
</div>
|
||||||
<MoveFile v-model="isMoveDialogOpen" @on-submit="chooseMoveCata" />
|
<MoveFile v-model="isMoveDialogOpen" @on-submit="chooseMoveCata" />
|
||||||
<uploadDialog v-model="isDialogOpen" @submit-file="submitFile" />
|
<uploadDialog v-model="isDialogOpen" @submit-file="submitFile" />
|
||||||
<SetHomework v-model="setDialog" :entpcourseid="entpcourseid" :rows="rows" />
|
<SetHomework v-model="setDialog" :entpcourseid="entpcourseid" :row="row" />
|
||||||
</div>
|
</div>
|
||||||
<reserv
|
<reserv
|
||||||
ref="reservDialog"
|
ref="reservDialog"
|
||||||
|
@ -172,7 +171,6 @@ import { delClasswork, listEntpcourse } from '@/api/teaching/classwork'
|
||||||
import { updateClasscourse } from '@/api/teaching/classcourse'
|
import { updateClasscourse } from '@/api/teaching/classcourse'
|
||||||
import { getClassInfo, getSelfReserv, endClass } from '@/api/classManage'
|
import { getClassInfo, getSelfReserv, endClass } from '@/api/classManage'
|
||||||
import { useGetHomework } from '@/hooks/useGetHomework'
|
import { useGetHomework } from '@/hooks/useGetHomework'
|
||||||
import { editListItem } from '@/hooks/useClassTask'
|
|
||||||
import { addEntpcoursefileReturnId } from '@/api/education/entpcoursefile'
|
import { addEntpcoursefileReturnId } from '@/api/education/entpcoursefile'
|
||||||
import ClassReserv from '@/views/classManage/classReserv.vue'
|
import ClassReserv from '@/views/classManage/classReserv.vue'
|
||||||
import classStart from './container/class-start.vue' // 预备上课
|
import classStart from './container/class-start.vue' // 预备上课
|
||||||
|
@ -231,7 +229,7 @@ export default {
|
||||||
entpcourseid: '',
|
entpcourseid: '',
|
||||||
// 布置作业弹窗
|
// 布置作业弹窗
|
||||||
setDialog: false,
|
setDialog: false,
|
||||||
rows: '',
|
row: '',
|
||||||
isOpenHomework: false,
|
isOpenHomework: false,
|
||||||
// 当前上课课程
|
// 当前上课课程
|
||||||
activeClass: null,
|
activeClass: null,
|
||||||
|
@ -657,39 +655,34 @@ export default {
|
||||||
this.$refs['reservDialog'].openDialog()
|
this.$refs['reservDialog'].openDialog()
|
||||||
},
|
},
|
||||||
|
|
||||||
// 打开外部链接
|
// 打开外部链接
|
||||||
// handleOutLink(key) {
|
handleOutLink(key) {
|
||||||
// if (key == 'homeWork') {
|
if (key == 'homeWork') {
|
||||||
// this.isOpenHomework = true
|
this.isOpenHomework = true
|
||||||
// }
|
}
|
||||||
// // key 对应的 linkConfig.js 外部链接配置
|
// key 对应的 linkConfig.js 外部链接配置
|
||||||
// let configObj = outLink()[key]
|
let configObj = outLink()[key]
|
||||||
// let fullPath = configObj.fullPath
|
let fullPath = configObj.fullPath
|
||||||
// //打开作业 高考 url增加unitId 章节ID
|
//打开作业 高考 url增加unitId 章节ID
|
||||||
// if (key != 'standard' && key != 'aiModel') {
|
if (key != 'standard' && key != 'aiModel') {
|
||||||
// let unitId = this.uploadData.levelSecondId
|
let unitId = this.uploadData.levelSecondId
|
||||||
// ? this.uploadData.levelSecondId
|
? this.uploadData.levelSecondId
|
||||||
// : this.uploadData.levelFirstId
|
: this.uploadData.levelFirstId
|
||||||
// let bookId = this.uploadData.textbookId;
|
let bookId = this.uploadData.textbookId;
|
||||||
// if(fullPath.indexOf('?') == -1){
|
if(fullPath.indexOf('?') == -1){
|
||||||
// fullPath += `?unitId=${unitId}&bookId=${bookId}&openDialog=newClassTask`
|
fullPath += `?unitId=${unitId}&bookId=${bookId}&openDialog=newClassTask`
|
||||||
// }
|
}
|
||||||
// else{
|
else{
|
||||||
// fullPath += `&unitId=${unitId}&bookId=${bookId}&openDialog=newClassTask`
|
fullPath += `&unitId=${unitId}&bookId=${bookId}&openDialog=newClassTask`
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
// // 通知主进程
|
// 通知主进程
|
||||||
// ipcRenderer.send('openWindow', {
|
ipcRenderer.send('openWindow', {
|
||||||
// key,
|
key,
|
||||||
// fullPath: fullPath,
|
fullPath: fullPath,
|
||||||
// cookieData: { ...configObj.data }
|
cookieData: { ...configObj.data }
|
||||||
// })
|
})
|
||||||
// },
|
|
||||||
// 前往作业设计页面
|
|
||||||
goNewClassTask(){
|
|
||||||
// router.push({ path: '/newClassTask' });
|
|
||||||
this.$router.push({ path: '/newClassTask' });
|
|
||||||
},
|
},
|
||||||
getWeekday1(date) {
|
getWeekday1(date) {
|
||||||
const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
|
const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
|
||||||
|
@ -698,51 +691,29 @@ export default {
|
||||||
},
|
},
|
||||||
// 打开布置作业窗口
|
// 打开布置作业窗口
|
||||||
openSet(row) {
|
openSet(row) {
|
||||||
// 布置推送:row 这里是单个,转为list
|
this.row = row
|
||||||
this.rows = [row]
|
|
||||||
this.setDialog = true
|
this.setDialog = true
|
||||||
},
|
},
|
||||||
// 打开作业编辑窗口
|
// 打开作业编辑窗口
|
||||||
openReSet(row) {
|
openReSet(row) {
|
||||||
//跳转 作业设计 编辑页面
|
// 新窗口打开标识
|
||||||
const courseObj = {
|
this.isOpenHomework = true;
|
||||||
textbookId: this.uploadData.textbookId,
|
// key 对应的 linkConfig.js 外部链接配置
|
||||||
levelFirstId: this.uploadData.levelFirstId,
|
let configObj = outLink()['homeWork']
|
||||||
levelSecondId: this.uploadData.levelSecondId,
|
let fullPath = configObj.fullPath
|
||||||
coursetitle: this.currentNode.itemtitle, // (单元/章节) 名称,
|
|
||||||
node: this.currentNode, // 选择的课程节点
|
|
||||||
}
|
|
||||||
console.log('courseObj', courseObj)
|
|
||||||
editListItem(row, courseObj).then((obj) => {
|
|
||||||
if(obj){
|
|
||||||
//前往作业设计
|
|
||||||
this.$router.push({
|
|
||||||
path: '/newClassTask',
|
|
||||||
query: {
|
|
||||||
classtaskObj: JSON.stringify(obj),
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
});
|
|
||||||
//---------------------
|
|
||||||
// 暂时弃用 外链 新窗口打开标识
|
|
||||||
// this.isOpenHomework = true;
|
|
||||||
// // key 对应的 linkConfig.js 外部链接配置
|
|
||||||
// let configObj = outLink()['homeWork']
|
|
||||||
// let fullPath = configObj.fullPath
|
|
||||||
|
|
||||||
// let unitId = this.uploadData.levelSecondId
|
let unitId = this.uploadData.levelSecondId
|
||||||
// ? this.uploadData.levelSecondId
|
? this.uploadData.levelSecondId
|
||||||
// : this.uploadData.levelFirstId
|
: this.uploadData.levelFirstId
|
||||||
// let bookId = this.uploadData.textbookId;
|
let bookId = this.uploadData.textbookId;
|
||||||
// fullPath += `&unitId=${unitId}&bookId=${bookId}&courseWorkId=${row.id}`
|
fullPath += `&unitId=${unitId}&bookId=${bookId}&courseWorkId=${row.id}`
|
||||||
|
|
||||||
// // 通知主进程
|
// 通知主进程
|
||||||
// ipcRenderer.send('openWindow', {
|
ipcRenderer.send('openWindow', {
|
||||||
// key: 'homeWork',
|
key: 'homeWork',
|
||||||
// fullPath: fullPath,
|
fullPath: fullPath,
|
||||||
// cookieData: { ...configObj.data }
|
cookieData: { ...configObj.data }
|
||||||
// })
|
})
|
||||||
},
|
},
|
||||||
// 删除作业
|
// 删除作业
|
||||||
delhomework(item) {
|
delhomework(item) {
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-button color="#349d44" @click="sendHomework(item,'item')">推送</el-button>
|
<el-button color="#349d44" @click="sendHomework(item)">推送</el-button>
|
||||||
</li>
|
</li>
|
||||||
<div class="no-data flex" v-if="!dataList.length && !resourceList.length">
|
<div class="no-data flex" v-if="!dataList.length && !resourceList.length">
|
||||||
<i class="iconfont icon-zanwushuju"></i>
|
<i class="iconfont icon-zanwushuju"></i>
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
<SetHomework v-model="setDialog" :title="'推送作业'" :entpcourseid="entpcourseid" :rows="curRow"
|
<SetHomework v-model="setDialog" :title="'推送作业'" :entpcourseid="entpcourseid" :row="curRow"
|
||||||
@on-close="closeHomework" @on-success="successHomework"/>
|
@on-close="closeHomework" @on-success="successHomework"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="homework flex" v-else>
|
<div class="homework flex" v-else>
|
||||||
|
@ -110,11 +110,8 @@ const curNode = reactive({
|
||||||
data: {}
|
data: {}
|
||||||
})
|
})
|
||||||
|
|
||||||
const sendHomework = (row,type) => {
|
const sendHomework = (row) => {
|
||||||
if(type == 'item'){
|
curRow.value = row
|
||||||
// 布置推送单个作业
|
|
||||||
curRow.value = [row]
|
|
||||||
}
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
ipcMsgSend('tool-sphere:set:ignore', false)
|
ipcMsgSend('tool-sphere:set:ignore', false)
|
||||||
}, 200)
|
}, 200)
|
||||||
|
|
Loading…
Reference in New Issue