教师端1期问题修复

This commit is contained in:
赵依梦
2025-12-12 18:17:39 +08:00
parent a953c02028
commit 915d90f368
2 changed files with 85 additions and 83 deletions

View File

@@ -20,23 +20,20 @@
</el-col>
<el-col :span="4">
<div class="grid-content bg-purple">
<el-select v-model="signup.signType" placeholder="报名方式" clearable>
<el-select style="width: 100%;" v-model="signup.signType" placeholder="报名方式" clearable>
<el-option label="自主报名" :value="1"></el-option>
<el-option label="手动加入" :value="2"></el-option>
</el-select>
</div>
</el-col>
<el-col :span="2">
<el-col :span="6">
<div class="grid-content bg-purple">
<el-button type="primary" @click="getSignupList()"> </el-button>
</div>
</el-col>
<el-col :span="2">
<div class="grid-content bg-purple">
<el-button @click="resetSignupList()"> </el-button>
</div>
</el-col>
<el-col :span="6" :offset="6">
<el-col :span="6" :offset="4">
<div class="grid-content bg-purple" style="text-align: right;">
<el-button type="primary" icon="el-icon-upload2" @click="handleExportSignup">导出报名记录</el-button>
</div>
@@ -73,18 +70,18 @@
</div>
</el-tab-pane>
<el-tab-pane label="学习记录" name="third">
<el-row style="margin-bottom: 20px;" :gutter="5">
<el-row style="margin-bottom: 20px;" :gutter="20">
<el-col :span="4">
<div class="grid-content bg-purple"><el-input clearable v-model="learningRecords.name" maxlength="50"
placeholder="姓名"></el-input></div>
</el-col>
<el-col :span="4">
<div class="grid-content bg-purple">
<el-select v-model="learningRecords.status" clearable placeholder="全部学习状态">
<el-option label="未开始学习" :value="1"></el-option>
<el-option label="学习中" :value="2"></el-option>
<el-option label="已终止" :value="8"></el-option>
<el-option label="学习完成" :value="9"></el-option>
<el-select style="width: 100%;" v-model="learningRecords.status" clearable placeholder="全部学习状态">
<el-option label="未开始" :value="1"></el-option>
<el-option label="进行中" :value="2"></el-option>
<el-option label="完成" :value="9"></el-option>
</el-select>
</div>
</el-col>
@@ -97,17 +94,13 @@
</div>
</el-col>
<el-col :span="2">
<el-col :span="5">
<div class="grid-content bg-purple">
<el-button type="primary" @click="getStudyRecords()"> </el-button>
</div>
</el-col>
<el-col :span="2">
<div class="grid-content bg-purple">
<el-button @click="resetStudyRecords()"> </el-button>
</div>
</el-col>
<el-col :span="4" :offset="2">
<el-col :span="4" :offset="1">
<div class="grid-content bg-purple" style="text-align: right;">
<el-button type="primary" icon="el-icon-upload2" @click="handleExportStudyDetail">导出学习课程记录</el-button>
</div>
@@ -126,14 +119,14 @@
</template>
</el-table-column>
<el-table-column prop="addTime" label="学习时间"></el-table-column>
<el-table-column prop="totalDuration" label="学习时长(分)">
<el-table-column prop="totalDuration" label="学习时长">
<template slot-scope="scope">
{{ scope.row.totalDuration == 0? '0': (scope.row.totalDuration/60).toFixed(2)}}
{{ scope.row.totalDuration }}
</template>
</el-table-column>
<el-table-column label="学习状态">
<template slot-scope="scope">
{{ studyStatusEnum[scope.row.status] }}
{{ recourseStudyStatusEnum[scope.row.status] }}
</template>
</el-table-column>
<el-table-column prop="progress" label="学习进度">
@@ -159,22 +152,18 @@
</div>
</el-tab-pane>
<el-tab-pane label="资源学习情况" name="first">
<el-row style="margin-bottom: 20px;">
<el-row style="margin-bottom: 20px;" :gutter="20">
<el-col :span="4">
<div class="grid-content bg-purple"><el-input clearable v-model="recourseListQuery.contentName"
placeholder="资源名称"></el-input></div>
</el-col>
<el-col :span="2">
<el-col :span="5">
<div class="grid-content bg-purple">
<el-button style="margin-left: 20px;" type="primary" @click="getResourseList">搜索</el-button>
<el-button type="primary" @click="getResourseList">搜索</el-button>
<el-button @click="resetResourseList">重置</el-button>
</div>
</el-col>
<el-col :span="2">
<div class="grid-content bg-purple">
<el-button style="margin-left: 20px;" @click="resetResourseList">重置</el-button>
</div>
</el-col>
<el-col :span="6" :offset="10">
<el-col :span="6" :offset="9">
<div class="grid-content bg-purple" style="text-align: right;">
<el-button type="primary" icon="el-icon-upload2" @click="handleExportStudyResource">导出资源学习记录</el-button>
</div>
@@ -226,7 +215,12 @@
</el-table-column>
<el-table-column prop="status" label="学习状态">
<template slot-scope="scope">
<span>{{ studyStatusEnum[scope.row.status] }}</span>
<span>{{ recourseStudyStatusEnum[scope.row.status] }}</span>
</template>
</el-table-column>
<el-table-column prop="status" label="学习时长">
<template slot-scope="scope">
<span>{{ scope.row.studyDuration }}</span>
</template>
</el-table-column>
<el-table-column prop="duration" label="学习进度">
@@ -258,20 +252,16 @@
</el-col>
<el-col :span="6">
<div class="grid-content bg-purple">
<el-select v-model="commonResourceStudyPeopleQuery.status" placeholder="完成状态" clearable>
<el-select style="width: 100%;" v-model="commonResourceStudyPeopleQuery.status" placeholder="完成状态" clearable>
<el-option label="未开始" :value="1"></el-option>
<el-option label="已完成" :value="2"></el-option>
<el-option label="进行中" :value="3"></el-option>
</el-select>
</div>
</el-col>
<el-col :span="4">
<el-col :span="8">
<div class="grid-content bg-purple">
<el-button type="primary" @click="queryResourceStudyPeopleList"> </el-button>
</div>
</el-col>
<el-col :span="4">
<div class="grid-content bg-purple">
<el-button @click="resetCommonResourceQuery"> </el-button>
</div>
</el-col>
@@ -324,21 +314,17 @@
</el-col>
<el-col :span="6">
<div class="grid-content bg-purple">
<el-select v-model="examResourceStudyPeopleQuery.status" placeholder="完成状态" clearable>
<el-select style="width: 100%;" v-model="examResourceStudyPeopleQuery.status" placeholder="完成状态" clearable>
<el-option label="未开始" :value="1"></el-option>
<el-option label="已完成" :value="2"></el-option>
<el-option label="进行中" :value="3"></el-option>
</el-select>
</div>
</el-col>
<el-col :span="4">
<el-col :span="8">
<div class="grid-content bg-purple">
<el-button type="primary" @click="queryExamStudyPeopleList"> </el-button>
</div>
</el-col>
<el-col :span="4">
<div class="grid-content bg-purple">
<el-button @click="resetExamCommonResourceQuery"> </el-button>
<el-button @click="resetExamCommonResourceQuery"> </el-button>
</div>
</el-col>
</el-row>
@@ -411,30 +397,11 @@ export default {
return {
pickerOptions: {
shortcuts: [
{
text: "最近一周",
{
text: "今年以来",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
const start = new Date(end.getFullYear(), 0, 1);
picker.$emit("pick", [start, end]);
},
},
@@ -447,6 +414,36 @@ export default {
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
],
},
studyDateTime: [],
@@ -595,7 +592,15 @@ export default {
},
handleShowResourdeDetailList(row) {
this.resetCommonResourceQuery();
console.log(row);
console.log(7777);
this.commonResourceStudyPeopleQuery = {
pageIndex: 1, //第几页
pageSize: 10, // 每页多少条
count: 0,
name: "",
status: "",
};
this.rousourceRow = row;
if (row.contentType == "61") {
// 考试
@@ -663,6 +668,8 @@ export default {
},
queryResourceStudyPeopleList() {
console.log(this.rousourceRow);
console.log(888)
apicourseStudy
.studyContentRecords({
courseId: this.courseDetail.id,
@@ -1065,7 +1072,7 @@ export default {
}
.resetDatePicker {
.el-date-editor {
width: 250px;
width: 255px;
}
}
.course-info {