Compare commits
No commits in common. "610aac6985e7176ee815bc91c7d9c191187e4e0f" and "01718f573b67035e1d72e63e3abf1316ace2f2ef" have entirely different histories.
610aac6985
...
01718f573b
|
@ -140,7 +140,7 @@ const getClassWorkList = () => {
|
||||||
edustage: userStore.edustage,// 学段
|
edustage: userStore.edustage,// 学段
|
||||||
edusubject: userStore.edusubject,//学科
|
edusubject: userStore.edusubject,//学科
|
||||||
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,// 进行中:明天,已结束:选择的日期
|
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,// 进行中:明天,已结束:选择的日期
|
||||||
orderby: 'concat(deaddate,uniquekey) DESC',
|
orderby: 'uniquekey DESC',
|
||||||
pageSize: 100
|
pageSize: 100
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
for (var i = 0; i < response.rows.length; i++) {
|
for (var i = 0; i < response.rows.length; i++) {
|
||||||
|
@ -213,8 +213,7 @@ const getStudentClassWorkData = () => {
|
||||||
edustage: userStore.edustage,// 学段
|
edustage: userStore.edustage,// 学段
|
||||||
edusubject: userStore.edusubject,//学科
|
edusubject: userStore.edusubject,//学科
|
||||||
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,// 进行中:明天,已结束:选择的日期
|
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,// 进行中:明天,已结束:选择的日期
|
||||||
status: '1', // 作业状态:1-已发布
|
orderby: "uniquekey DESC",
|
||||||
orderby: "uniquekey DESC",// TODO: 这里是否加 deaddate 的排序,后续看
|
|
||||||
pageSize: 1000
|
pageSize: 1000
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
for (var t = 0; t < classWorkList.value.length; t++) {
|
for (var t = 0; t < classWorkList.value.length; t++) {
|
||||||
|
@ -370,8 +369,7 @@ const getStudentVisible = async () => {
|
||||||
edustage: userStore.edustage,// 学段
|
edustage: userStore.edustage,// 学段
|
||||||
edusubject: userStore.edusubject,//学科
|
edusubject: userStore.edusubject,//学科
|
||||||
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,// 进行中:明天,已结束:选择的日期
|
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,// 进行中:明天,已结束:选择的日期
|
||||||
status: '1', // 作业状态:1-已发布
|
orderby: 'uniquekey DESC',
|
||||||
orderby: 'concat(deaddate,uniquekey) DESC',
|
|
||||||
pageSize: 100
|
pageSize: 100
|
||||||
})
|
})
|
||||||
const curWorkList = response.rows
|
const curWorkList = response.rows
|
||||||
|
|
|
@ -150,7 +150,6 @@
|
||||||
:min-scale="0.2"
|
:min-scale="0.2"
|
||||||
:preview-src-list="stuItem.imagefile"
|
:preview-src-list="stuItem.imagefile"
|
||||||
:initial-index="4"
|
:initial-index="4"
|
||||||
fit="contain"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -234,7 +233,6 @@
|
||||||
.map((item) => item.url)
|
.map((item) => item.url)
|
||||||
"
|
"
|
||||||
:initial-index="4"
|
:initial-index="4"
|
||||||
fit="contain"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -278,7 +276,6 @@
|
||||||
.map((item) => item.url)
|
.map((item) => item.url)
|
||||||
"
|
"
|
||||||
:initial-index="4"
|
:initial-index="4"
|
||||||
fit="contain"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -317,102 +314,102 @@
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 批改评价与评语 -->
|
<!-- 批改评价与评语 -->
|
||||||
<div class="tacher_conten_foot">
|
<div class="tacher_conten_foot">
|
||||||
<el-row style="padding: 1% 4%; border: 2px dotted">
|
<el-row style="padding: 1% 4%; border: 2px dotted">
|
||||||
<el-col :span="24" style="display: flex; flex-direction: column">
|
<el-col :span="24" style="display: flex; flex-direction: column">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="14">
|
<el-col :span="14">
|
||||||
<div style="display: flex; margin: 10px auto">
|
<div style="display: flex; margin: 10px auto">
|
||||||
<span style="display: flex; align-items: center">
|
<span style="display: flex; align-items: center">
|
||||||
<span v-if="dialogProps.studentObj.worktype == '习题训练'">
|
<span v-if="dialogProps.studentObj.worktype == '习题训练'">
|
||||||
<span>得分: </span>
|
<span>得分: </span>
|
||||||
<span style="margin: 0; color: red">{{
|
<span style="margin: 0; color: red">{{
|
||||||
classWorkFormScore.teacherRating.reduce((a, b) => a + b.score, 0).toFixed(2)
|
classWorkFormScore.teacherRating.reduce((a, b) => a + b.score, 0).toFixed(2)
|
||||||
}}</span>
|
}}</span>
|
||||||
<span>分</span>
|
<span>分</span>
|
||||||
</span>
|
|
||||||
<span v-else>
|
|
||||||
<span>得分: </span>
|
|
||||||
<span v-if="classWorkFormScore.teacherRating.length > 0">
|
|
||||||
<el-input-number
|
|
||||||
v-model="classWorkFormScore.teacherRating[0].score"
|
|
||||||
:controls="false"
|
|
||||||
type="number"
|
|
||||||
:min="0"
|
|
||||||
:max="classWorkFormScore.teacherRating[0].maxScore"
|
|
||||||
size="small"
|
|
||||||
style="width: 60px"
|
|
||||||
@change="handleChange"
|
|
||||||
></el-input-number>
|
|
||||||
</span>
|
|
||||||
<span>分</span>
|
|
||||||
</span>
|
|
||||||
</span>
|
</span>
|
||||||
<div class="score-container">
|
<span v-else>
|
||||||
<div
|
<span>得分: </span>
|
||||||
v-for="(score, index) in teacherRatingList"
|
<span v-if="classWorkFormScore.teacherRating.length > 0">
|
||||||
:key="index"
|
<el-input-number
|
||||||
:class="[
|
v-model="classWorkFormScore.teacherRating[0].score"
|
||||||
'score-circle',
|
:controls="false"
|
||||||
{ active: classWorkFormScore.rating == score.ratingKey }
|
type="number"
|
||||||
]"
|
:min="0"
|
||||||
@click="selectScore(score)"
|
:max="classWorkFormScore.teacherRating[0].maxScore"
|
||||||
>
|
size="small"
|
||||||
{{ score.ratingValue }}
|
style="width: 60px"
|
||||||
</div>
|
@change="handleChange"
|
||||||
|
></el-input-number>
|
||||||
|
</span>
|
||||||
|
<span>分</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
<div class="score-container">
|
||||||
|
<div
|
||||||
|
v-for="(score, index) in teacherRatingList"
|
||||||
|
:key="index"
|
||||||
|
:class="[
|
||||||
|
'score-circle',
|
||||||
|
{ active: classWorkFormScore.rating == score.ratingKey }
|
||||||
|
]"
|
||||||
|
@click="selectScore(score)"
|
||||||
|
>
|
||||||
|
{{ score.ratingValue }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</div>
|
||||||
<el-col :span="10" style="display: flex; align-items: center">
|
</el-col>
|
||||||
<el-select
|
<el-col :span="10" style="display: flex; align-items: center">
|
||||||
v-model="value"
|
<el-select
|
||||||
placeholder="常用评语"
|
v-model="value"
|
||||||
style="width: 240px"
|
placeholder="常用评语"
|
||||||
@change="onSelectOption"
|
style="width: 240px"
|
||||||
>
|
@change="onSelectOption"
|
||||||
<el-option
|
>
|
||||||
v-for="item in cities"
|
<el-option
|
||||||
:key="item.value"
|
v-for="item in cities"
|
||||||
:label="item.label"
|
:key="item.value"
|
||||||
:value="item.value"
|
:label="item.label"
|
||||||
/>
|
:value="item.value"
|
||||||
<template #footer>
|
|
||||||
<el-button v-if="!isAdding" text bg size="small" @click="onAddOption">
|
|
||||||
新增常用语
|
|
||||||
</el-button>
|
|
||||||
<template v-else>
|
|
||||||
<el-input
|
|
||||||
v-model="optionName"
|
|
||||||
class="option-input"
|
|
||||||
placeholder="输入新的常用语"
|
|
||||||
size="small"
|
|
||||||
/>
|
|
||||||
<el-button type="primary" size="small" @click="onConfirm"> 确定 </el-button>
|
|
||||||
<el-button size="small" @click="clear">取消</el-button>
|
|
||||||
</template>
|
|
||||||
</template>
|
|
||||||
</el-select>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24" style="display: flex; flex-direction: column">
|
|
||||||
<el-form-item label="评语说明">
|
|
||||||
<el-col :span="15" style="padding: 0px">
|
|
||||||
<el-input
|
|
||||||
v-model="classWorkFormScore.teacherremark"
|
|
||||||
type="textarea"
|
|
||||||
rows="1"
|
|
||||||
placeholder="请输入评语说明"
|
|
||||||
/>
|
/>
|
||||||
</el-col>
|
<template #footer>
|
||||||
</el-form-item>
|
<el-button v-if="!isAdding" text bg size="small" @click="onAddOption">
|
||||||
</el-col>
|
新增常用语
|
||||||
</el-row>
|
</el-button>
|
||||||
<div style="margin: 10px">
|
<template v-else>
|
||||||
<el-button type="primary" @click="onClassWorkFormScoreSave">批阅确认</el-button>
|
<el-input
|
||||||
</div>
|
v-model="optionName"
|
||||||
|
class="option-input"
|
||||||
|
placeholder="输入新的常用语"
|
||||||
|
size="small"
|
||||||
|
/>
|
||||||
|
<el-button type="primary" size="small" @click="onConfirm"> 确定 </el-button>
|
||||||
|
<el-button size="small" @click="clear">取消</el-button>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</el-select>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="24" style="display: flex; flex-direction: column">
|
||||||
|
<el-form-item label="评语说明">
|
||||||
|
<el-col :span="15" style="padding: 0px">
|
||||||
|
<el-input
|
||||||
|
v-model="classWorkFormScore.teacherremark"
|
||||||
|
type="textarea"
|
||||||
|
rows="3"
|
||||||
|
placeholder="请输入评语说明"
|
||||||
|
/>
|
||||||
|
</el-col>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<div style="margin: 10px">
|
||||||
|
<el-button type="primary" @click="onClassWorkFormScoreSave">批阅确认</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<el-scrollbar height="500px">
|
<el-scrollbar height="500px">
|
||||||
<ul>
|
<ul>
|
||||||
<!--作业-->
|
<!--作业-->
|
||||||
<li class="flex class-item home-list" v-for="item in homeworkList" :key="item.id" @click="onClickItem(item)">
|
<li class="flex class-item home-list" v-for="item in homeworkList" :key="item.id">
|
||||||
<div class="class-left flex">
|
<div class="class-left flex">
|
||||||
<div class="class-name flex">
|
<div class="class-name flex">
|
||||||
<span class="name">{{ item.uniquekey }}</span>
|
<span class="name">{{ item.uniquekey }}</span>
|
||||||
|
@ -27,7 +27,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
<item-dialog ref="itemDialogRef" @cle-click="closeDialog"></item-dialog>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
|
@ -35,15 +34,13 @@ import { ref, onMounted } from 'vue'
|
||||||
import useUserStore from '@/store/modules/user'
|
import useUserStore from '@/store/modules/user'
|
||||||
import { getSelfReserv } from '@/api/classManage'
|
import { getSelfReserv } from '@/api/classManage'
|
||||||
import { homeworklist } from '@/api/teaching/classwork'
|
import { homeworklist } from '@/api/teaching/classwork'
|
||||||
import { getCurrentTime, getTomorrow } from '@/utils/date'
|
import { getCurrentTime } from '@/utils/date'
|
||||||
import ItemDialog from '@/views/classTask/container/item-dialog.vue'
|
|
||||||
|
|
||||||
const type = ref(-1)
|
const type = ref(-1)
|
||||||
const user = useUserStore().user
|
const user = useUserStore().user
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const classList = ref([])
|
const classList = ref([])
|
||||||
const homeworkList = ref([])
|
const homeworkList = ref([])
|
||||||
const itemDialogRef = ref(null)
|
|
||||||
|
|
||||||
// 获取上课
|
// 获取上课
|
||||||
const getClass = async () => {
|
const getClass = async () => {
|
||||||
|
@ -62,34 +59,15 @@ const getHomework = async () => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
const { edustage, edusubject } = user
|
const { edustage, edusubject } = user
|
||||||
try {
|
try {
|
||||||
const { rows } = await homeworklist({ edituserid: user.userId, edustage, edusubject, deaddate: getTomorrow(), status: '1' ,orderby: 'uniquekey DESC', pageSize: 500 })
|
const { rows } = await homeworklist({ edituserid: user.userId, edustage, edusubject, status: '1' ,orderby: 'uniquekey DESC', pageSize: 500 })
|
||||||
// 只展示进行中的
|
homeworkList.value = rows.filter(item => item.deaddate && item.uniquekey)
|
||||||
homeworkList.value = rows.filter(item => item.deaddate && item.uniquekey&& getCurrentTime('YYYY-MM-DD HH:mm') < item.deaddate )
|
|
||||||
homeworkList.value.forEach((item) => {
|
homeworkList.value.forEach((item) => {
|
||||||
item.workdatacount = JSON.parse('[' + item.classworkdatastudentids + ']').length
|
item.workdatacount = JSON.parse('[' + item.classworkdatastudentids + ']').length
|
||||||
// 如果是习题训练任务,则检查一共有多少道
|
|
||||||
if (item.entpcourseworklist != '') {
|
|
||||||
item.entpcourseworklistarray = JSON.parse(
|
|
||||||
'[' + item.entpcourseworklist + ']'
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
item.entpcourseworklistarray = []
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
} finally {
|
} finally {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 批改作业
|
|
||||||
const onClickItem = (item) => {
|
|
||||||
console.log('开启弹窗')
|
|
||||||
itemDialogRef.value.openDialog(item)
|
|
||||||
}
|
|
||||||
// 批阅关闭
|
|
||||||
const closeDialog = () => {
|
|
||||||
console.log('关闭弹窗,查询一下作业数据,更新界面')
|
|
||||||
getHomework()
|
|
||||||
}
|
|
||||||
|
|
||||||
const tagType = (time) => {
|
const tagType = (time) => {
|
||||||
return getCurrentTime('YYYY-MM-DD HH:mm') > time ? 'info' : 'warning'
|
return getCurrentTime('YYYY-MM-DD HH:mm') > time ? 'info' : 'warning'
|
||||||
|
|
|
@ -104,14 +104,12 @@ const menuList = [{
|
||||||
{
|
{
|
||||||
name: '作业设计',
|
name: '作业设计',
|
||||||
icon: 'icon-jiaoxuefansi',
|
icon: 'icon-jiaoxuefansi',
|
||||||
isOuter: true,
|
disabled: true
|
||||||
path: '/teaching/classtaskassign?titleName=作业布置&&openDialog=newClassTask'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '作业布置',
|
name: '作业布置',
|
||||||
icon: 'icon-xiezuo1',
|
icon: 'icon-xiezuo1',
|
||||||
isOuter: true,
|
disabled: true
|
||||||
path: '/teaching/classtaskassign?titleName=作业布置'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '作业批改',
|
name: '作业批改',
|
||||||
|
|
Loading…
Reference in New Issue