mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
教师
This commit is contained in:
@@ -588,13 +588,13 @@
|
||||
{{ item.type==2 ? item.createTime !== null ? item.createTime : "-" : item.startTime !== null ? item.startTime : "-" }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="progress">
|
||||
<div class="progresstext">
|
||||
<div class="progress" v-if="item.averageScore" style="display: flex;flex-grow: 0;margin: 0;">
|
||||
<!-- <div class="progresstext">
|
||||
{{ item.finishStuCnt || 0 }}/{{
|
||||
item.totalStuCnt || 0
|
||||
}}人
|
||||
</div>
|
||||
<div style="display: flex">
|
||||
</div> -->
|
||||
<!-- <div style="display: flex">
|
||||
<a-progress
|
||||
:showInfo="false"
|
||||
:percent="
|
||||
@@ -612,7 +612,11 @@
|
||||
) || 0
|
||||
}}%</span
|
||||
>
|
||||
</div> -->
|
||||
<div>
|
||||
{{ item.averageScore}}分
|
||||
</div>
|
||||
<div class="img_daoc" @click="exportScore(item)"></div>
|
||||
</div>
|
||||
<div class="operations">
|
||||
<div class="operations_dropdown">
|
||||
@@ -2435,6 +2439,9 @@ export default {
|
||||
AddOpenCourse
|
||||
},
|
||||
setup() {
|
||||
const exportScore = (item) => {
|
||||
window.open(`${process.env.VUE_APP_BASE_API}/admin/assessment/manage/export?assessmentIds=${item.assessmentIds}&pid=${item.id}`)
|
||||
};
|
||||
const coursePlanRef = ref();
|
||||
const openCourse = async (item) => {
|
||||
await apitl.getDraftTask({projectId: item.projectId}).then((item)=>{
|
||||
@@ -2461,7 +2468,7 @@ export default {
|
||||
if(qrCodeItems.value.length==1){
|
||||
qrCode({
|
||||
title: "【签到】二维码",
|
||||
courseName: qrCodeItems.value[0].courseName,
|
||||
courseName: state.name+'项目',
|
||||
name: qrCodeItems.value[0].name+'课程签到',
|
||||
createName:qrCodeItems.value[0].offteachers.map(teacher => teacher.teacherName).join(', ')||qrCodeItems.value[0].teacher,
|
||||
url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${qrCodeItems.value[0].id}&taskType=${2}&type=${3}`,
|
||||
@@ -2473,14 +2480,13 @@ export default {
|
||||
})
|
||||
}
|
||||
function handleMenuClick({key}) {
|
||||
const courseName = qrCodeItems.value[key].courseName;
|
||||
const name = qrCodeItems.value[key].name;
|
||||
const teacher = qrCodeItems.value[key].teacher;
|
||||
const id = qrCodeItems.value[key].id;
|
||||
const offteachers = qrCodeItems.value[key].offteachers.map(teacher => teacher.teacherName).join(', ');
|
||||
qrCode({
|
||||
title: "【签到】二维码",
|
||||
courseName: courseName,
|
||||
courseName: state.name+'项目',
|
||||
name: name+'课程签到',
|
||||
createName:offteachers||teacher,
|
||||
url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${id}&taskType=${2}&type=${3}`,
|
||||
@@ -2489,7 +2495,6 @@ export default {
|
||||
const qrCodeItemspg = ref([]);
|
||||
const visibleEwmpg = ref({});
|
||||
const qrcodeAssement = async (item)=>{
|
||||
console.log(item,'item')
|
||||
if(qrCodeItemspg.value.length!=0){
|
||||
qrCodeItemspg.value = []
|
||||
}
|
||||
@@ -2505,11 +2510,10 @@ export default {
|
||||
courseName: item.name,
|
||||
}));
|
||||
qrCodeItemspg.value = qrCodeItemspgItem.filter(item => item.assessmentId !== null);
|
||||
console.log(qrCodeItemspg.value,'长度')
|
||||
if(qrCodeItemspg.value.length==1){
|
||||
qrCode({
|
||||
title: "【评估】二维码",
|
||||
courseName: qrCodeItemspg.value[0].courseName,
|
||||
courseName: state.name+'项目',
|
||||
name: qrCodeItemspg.value[0].name+'课程评估',
|
||||
createName:qrCodeItemspg.value[0].offteachers.map(teacher => teacher.teacherName).join(', ')||qrCodeItemspg.value[0].teacher,
|
||||
url: `${location.protocol}//${location.host}/student-h5/investigatpage?id=${qrCodeItemspg.value[0].id}&type=3&infoId=${qrCodeItemspg.value[0].id}&courseId=${qrCodeItemspg.value[0].assessmentId}&chapterOrStageId=0`,
|
||||
@@ -2518,7 +2522,6 @@ export default {
|
||||
})
|
||||
}
|
||||
function handleMenuClickpg({key}) {
|
||||
const courseName = qrCodeItemspg.value[key].courseName;
|
||||
const name = qrCodeItemspg.value[key].name;
|
||||
const offteachers = qrCodeItemspg.value[key].offteachers.map(teacher => teacher.teacherName).join(', ');
|
||||
const teacher = qrCodeItemspg.value[key].teacher;
|
||||
@@ -2526,7 +2529,7 @@ export default {
|
||||
const assessmentId = qrCodeItemspg.value[key].assessmentId;
|
||||
qrCode({
|
||||
title: "【评估】二维码",
|
||||
courseName: courseName,
|
||||
courseName: state.name+'项目',
|
||||
name: name+'课程评估',
|
||||
createName:offteachers||teacher,
|
||||
url: `${location.protocol}//${location.host}/student-h5/investigatpage?id=${id}&type=3&infoId=${id}&courseId=${assessmentId}&chapterOrStageId=0`,
|
||||
@@ -5222,7 +5225,8 @@ export default {
|
||||
visibleEwmpg,
|
||||
handleMenuClickpg,
|
||||
coursePlanRef,
|
||||
openCourse
|
||||
openCourse,
|
||||
exportScore
|
||||
|
||||
|
||||
|
||||
@@ -6734,7 +6738,15 @@ export default {
|
||||
margin-left: 10px;
|
||||
margin-right: 50px;
|
||||
flex-grow: 1;
|
||||
|
||||
.img_daoc {
|
||||
cursor: pointer;
|
||||
width: 16px;
|
||||
height: 18px;
|
||||
background-image: url(@/assets/images/coursewareManage/export1.png);
|
||||
background-size: 100% 100%;
|
||||
background-color: #4ea6ff;
|
||||
margin-left: 7px;
|
||||
}
|
||||
.progresstext {
|
||||
color: #ffc067;
|
||||
font-size: 14px;
|
||||
@@ -6744,9 +6756,14 @@ export default {
|
||||
.operations {
|
||||
display: flex;
|
||||
width: 340px;
|
||||
//flex-grow: 1;
|
||||
flex-grow: 1;
|
||||
.operations_dropdown{
|
||||
padding: 10px;text-align: center;position: relative;margin-left: auto;margin-right: 10px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
margin-left: auto;
|
||||
margin-right: 10px;
|
||||
min-width: 90px;
|
||||
}
|
||||
.operation {
|
||||
color: #4ea6ff;
|
||||
|
||||
Reference in New Issue
Block a user