forked from liweijie/education
1、学员信息管理成绩查看,只显示课程编号改为显示课程名称和课程编号;
2、机关教学日志日期显示格式修改
This commit is contained in:
+2
-1
@@ -520,9 +520,10 @@ public class StudentRecordsController {
|
|||||||
@RequestParam(required = false) String kcbh,
|
@RequestParam(required = false) String kcbh,
|
||||||
@RequestParam(required = false) String xydbh,
|
@RequestParam(required = false) String xydbh,
|
||||||
@RequestParam(required = false) String xh,
|
@RequestParam(required = false) String xh,
|
||||||
|
@RequestParam(required = false) String xybh,
|
||||||
@RequestParam(required = false) Integer nd) {
|
@RequestParam(required = false) Integer nd) {
|
||||||
return Result.success(studentRecordsService.pageCourseGrades(
|
return Result.success(studentRecordsService.pageCourseGrades(
|
||||||
new PageQuery(pageNum, pageSize), kcbh, xydbh, xh, nd));
|
new PageQuery(pageNum, pageSize), kcbh, xydbh, xh, xybh, nd));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+2
-2
@@ -56,8 +56,8 @@ public interface StudentRecordsService {
|
|||||||
|
|
||||||
// ========== 学员课程成绩查询 ==========
|
// ========== 学员课程成绩查询 ==========
|
||||||
|
|
||||||
/** 分页查询学员的课程成绩列表(按课程编号、学员队编号、学号、年度筛选) */
|
/** 分页查询学员的课程成绩列表(按课程编号、学员队编号、学号、学员编号、年度筛选) */
|
||||||
PageResult<XYKCCJ> pageCourseGrades(PageQuery query, String kcbh, String xydbh, String xh, Integer nd);
|
PageResult<XYKCCJ> pageCourseGrades(PageQuery query, String kcbh, String xydbh, String xh, String xybh, Integer nd);
|
||||||
|
|
||||||
/** 分页查询学员的课程过程成绩列表(按学员编号、年度筛选,年度为空默认最新年度) */
|
/** 分页查询学员的课程过程成绩列表(按学员编号、年度筛选,年度为空默认最新年度) */
|
||||||
PageResult<XYKCGCCJ> pageCourseProcessGrades(PageQuery query, String xybh, Integer nd);
|
PageResult<XYKCGCCJ> pageCourseProcessGrades(PageQuery query, String xybh, Integer nd);
|
||||||
|
|||||||
+2
-2
@@ -379,8 +379,8 @@ public class StudentRecordsServiceImpl implements StudentRecordsService {
|
|||||||
// ========== 学员课程成绩查询 ==========
|
// ========== 学员课程成绩查询 ==========
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageResult<XYKCCJ> pageCourseGrades(PageQuery query, String kcbh, String xydbh, String xh, Integer nd) {
|
public PageResult<XYKCCJ> pageCourseGrades(PageQuery query, String kcbh, String xydbh, String xh, String xybh, Integer nd) {
|
||||||
String selfStudentId = null;
|
String selfStudentId = trimToNull(xybh);
|
||||||
if (jwglRoleHelper.isStudent()) {
|
if (jwglRoleHelper.isStudent()) {
|
||||||
selfStudentId = jwglRoleHelper.requireStudentId();
|
selfStudentId = jwglRoleHelper.requireStudentId();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -284,7 +284,9 @@
|
|||||||
<el-table v-loading="gradesLoading" :data="filteredGradesData" stripe border max-height="420">
|
<el-table v-loading="gradesLoading" :data="filteredGradesData" stripe border max-height="420">
|
||||||
<el-table-column type="index" label="序号" width="55" align="center" />
|
<el-table-column type="index" label="序号" width="55" align="center" />
|
||||||
<el-table-column prop="nd" label="年度" width="85" align="center" />
|
<el-table-column prop="nd" label="年度" width="85" align="center" />
|
||||||
<el-table-column prop="kmbh" label="科目编号" min-width="120" align="center" show-overflow-tooltip />
|
<el-table-column label="科目" min-width="160" align="center" show-overflow-tooltip>
|
||||||
|
<template slot-scope="{ row }">{{ subjectLabel(row.kmbh) }}</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="klx" label="课类型" width="90" align="center" />
|
<el-table-column prop="klx" label="课类型" width="90" align="center" />
|
||||||
<el-table-column prop="kscj" label="考试成绩" width="90" align="center" />
|
<el-table-column prop="kscj" label="考试成绩" width="90" align="center" />
|
||||||
<el-table-column prop="pscj" label="平时成绩" width="90" align="center" />
|
<el-table-column prop="pscj" label="平时成绩" width="90" align="center" />
|
||||||
@@ -302,7 +304,9 @@
|
|||||||
<el-table v-loading="gradesLoading" :data="filteredProcessGradesData" stripe border max-height="420">
|
<el-table v-loading="gradesLoading" :data="filteredProcessGradesData" stripe border max-height="420">
|
||||||
<el-table-column type="index" label="序号" width="55" align="center" />
|
<el-table-column type="index" label="序号" width="55" align="center" />
|
||||||
<el-table-column prop="nd" label="年度" width="85" align="center" />
|
<el-table-column prop="nd" label="年度" width="85" align="center" />
|
||||||
<el-table-column prop="kmbh" label="科目编号" min-width="120" align="center" show-overflow-tooltip />
|
<el-table-column label="科目" min-width="160" align="center" show-overflow-tooltip>
|
||||||
|
<template slot-scope="{ row }">{{ subjectLabel(row.kmbh) }}</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="klx" label="课类型" width="90" align="center" />
|
<el-table-column prop="klx" label="课类型" width="90" align="center" />
|
||||||
<el-table-column prop="yscj" label="原始成绩" width="100" align="center" />
|
<el-table-column prop="yscj" label="原始成绩" width="100" align="center" />
|
||||||
<el-table-column prop="zzcj" label="最终成绩" width="90" align="center" />
|
<el-table-column prop="zzcj" label="最终成绩" width="90" align="center" />
|
||||||
@@ -327,6 +331,7 @@
|
|||||||
import {
|
import {
|
||||||
listStudentRecord,
|
listStudentRecord,
|
||||||
listPeriodOptions,
|
listPeriodOptions,
|
||||||
|
listKbOptions,
|
||||||
getStudentRecord,
|
getStudentRecord,
|
||||||
addStudentRecord,
|
addStudentRecord,
|
||||||
updateStudentRecord,
|
updateStudentRecord,
|
||||||
@@ -427,6 +432,8 @@ export default {
|
|||||||
submitting: false,
|
submitting: false,
|
||||||
periodOptions: [],
|
periodOptions: [],
|
||||||
periodOptionsLoaded: false,
|
periodOptionsLoaded: false,
|
||||||
|
kbOptions: [],
|
||||||
|
kbOptionsLoaded: false,
|
||||||
teamOptions: [],
|
teamOptions: [],
|
||||||
teamOptionsLoaded: false,
|
teamOptionsLoaded: false,
|
||||||
formData: this.createEmptyForm(),
|
formData: this.createEmptyForm(),
|
||||||
@@ -575,7 +582,7 @@ export default {
|
|||||||
createEmptyForm() {
|
createEmptyForm() {
|
||||||
return {
|
return {
|
||||||
bh: '', xh: '', xm: '', xydqbh: '', zjhm: '', zzmm: '', xb: '', csrq: '', mz: '', jg: '',
|
bh: '', xh: '', xm: '', xydqbh: '', zjhm: '', zzmm: '', xb: '', csrq: '', mz: '', jg: '',
|
||||||
whcd: '', xylb: '', ssjq: '', gfs: '', txzt: '', ljzt: '', fbzt: '', yxckcj: '', dqbzbh: '', yzc: '',
|
whcd: '', xylb: '', ssjq: '', gfs: '', txzt: '', ljzt: '', fbzt: '', yxckcj: '1', dqbzbh: '', yzc: '',
|
||||||
jrzjlx: '', sfzh: '', lxdh: '', txdz: '', bz: '', dtsj: ''
|
jrzjlx: '', sfzh: '', lxdh: '', txdz: '', bz: '', dtsj: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -646,6 +653,20 @@ export default {
|
|||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
loadKbOptions() {
|
||||||
|
if (this.kbOptionsLoaded) return
|
||||||
|
listKbOptions().then(res => {
|
||||||
|
this.kbOptions = (res && res.data) || []
|
||||||
|
this.kbOptionsLoaded = true
|
||||||
|
}).catch(() => {})
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 科目列:显示「名称(编号)」,查不到名称时只显示编号 */
|
||||||
|
subjectLabel(kmbh) {
|
||||||
|
const hit = this.kbOptions.find(item => String(item.kbh) === String(kmbh))
|
||||||
|
return hit ? `${hit.kmc}(${kmbh})` : (kmbh || '')
|
||||||
|
},
|
||||||
|
|
||||||
loadTeamOptions() {
|
loadTeamOptions() {
|
||||||
if (this.teamOptionsLoaded) return
|
if (this.teamOptionsLoaded) return
|
||||||
listTeam({ pageNum: 1, pageSize: 1000 }).then(res => {
|
listTeam({ pageNum: 1, pageSize: 1000 }).then(res => {
|
||||||
@@ -739,6 +760,7 @@ export default {
|
|||||||
this.gradesTab = 'grades'
|
this.gradesTab = 'grades'
|
||||||
this.gradesVisible = true
|
this.gradesVisible = true
|
||||||
this.gradesLoading = true
|
this.gradesLoading = true
|
||||||
|
this.loadKbOptions()
|
||||||
|
|
||||||
const emptyResponse = { data: { records: [] } }
|
const emptyResponse = { data: { records: [] } }
|
||||||
const query = { pageNum: 1, pageSize: 1000, xybh: this.currentBh }
|
const query = { pageNum: 1, pageSize: 1000, xybh: this.currentBh }
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ export default {
|
|||||||
|
|
||||||
/** 组件方法:包一层全局 formatDate,供模板调用 */
|
/** 组件方法:包一层全局 formatDate,供模板调用 */
|
||||||
formatDate(val) {
|
formatDate(val) {
|
||||||
return formatDate(val)
|
return (formatDate(val) || '').split(' ')[0]
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 根据已填写的查询值构建实际查询参数 */
|
/** 根据已填写的查询值构建实际查询参数 */
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatDate(val) {
|
formatDate(val) {
|
||||||
return formatDate(val)
|
return (formatDate(val) || '').split(' ')[0]
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSelectionChange(rows) {
|
handleSelectionChange(rows) {
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ export default {
|
|||||||
|
|
||||||
/** 组件方法:包一层全局 formatDate,供模板调用 */
|
/** 组件方法:包一层全局 formatDate,供模板调用 */
|
||||||
formatDate(val) {
|
formatDate(val) {
|
||||||
return formatDate(val)
|
return (formatDate(val) || '').split(' ')[0]
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 根据已填写的查询值构建实际查询参数 */
|
/** 根据已填写的查询值构建实际查询参数 */
|
||||||
|
|||||||
Reference in New Issue
Block a user