mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
feat:增加评估管理学员列表
This commit is contained in:
@@ -16,3 +16,6 @@ export const QueryOnlineManagementDetail = (obj) => http.post('/admin/online/man
|
||||
|
||||
// 获取 课程库-面授管理-管理-学习记录 信息
|
||||
export const GetCourseStudent = (obj) => http.get('/admin/student/getCourseStudent', {params: obj})
|
||||
|
||||
// 查询评估管理-管理学员的学习信息
|
||||
export const QueryAssessmentManageMessage = (obj) => http.post('/admin/assessment/manage/queryAssessmentManageMessage', obj)
|
||||
@@ -62,8 +62,8 @@
|
||||
<a-table
|
||||
style="border: 1px solid #f2f6fe"
|
||||
:columns="columns"
|
||||
:data-source="dataSource"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
:data-source="evalStuListData"
|
||||
:loading="evalStuListLoading"
|
||||
expandRowByClick="true"
|
||||
:scroll="{ x: 1500 }"
|
||||
@expand="expandTable"
|
||||
@@ -71,6 +71,19 @@
|
||||
/>
|
||||
</div>
|
||||
<!-- 表格 -->
|
||||
<!-- 分页 -->
|
||||
<a-pagination
|
||||
v-if="evalStuListDataTotal > 10"
|
||||
:showSizeChanger="false"
|
||||
showQuickJumper="true"
|
||||
hideOnSinglePage="true"
|
||||
:pageSize="pageSize"
|
||||
:current="evalCurrentPage"
|
||||
:total="evalStuListDataTotal"
|
||||
class="pagination"
|
||||
@change="changePaginationStu"
|
||||
/>
|
||||
<!-- 分页 -->
|
||||
</div>
|
||||
</div>
|
||||
<view-assess v-model:Assessvisible="Assessvisible" :datasource="evalDataSource" :evalName="basicInfo.assessmentName"/>
|
||||
@@ -81,6 +94,7 @@ import ViewAssess from "../../components/drawers/ViewAssess";
|
||||
import { reactive, toRefs } from "vue";
|
||||
import { queryAssessmentDetailList } from "@/api/indexResearch";
|
||||
import { useRouter } from "vue-router";
|
||||
import * as api from "@/api/indexTaskManage";
|
||||
|
||||
export default {
|
||||
name: "ManagePage",
|
||||
@@ -95,7 +109,11 @@ export default {
|
||||
tableDataTotalLoading: true,
|
||||
tabledata: [],
|
||||
tableDataTotal: 0,
|
||||
evalDataSource: ""
|
||||
evalDataSource: "",
|
||||
evalStuListData: [],
|
||||
evalStuListLoading:true,
|
||||
evalStuListDataTotal:0,
|
||||
evalCurrentPage:1
|
||||
});
|
||||
|
||||
const getInfoDate = async () => {
|
||||
@@ -112,18 +130,35 @@ export default {
|
||||
});
|
||||
|
||||
// 获取学员信息
|
||||
console.log('传递的请求学员信息的参数',{
|
||||
pageNo: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
type: 3,
|
||||
taskId: router.currentRoute.value.params.id,
|
||||
pid: router.currentRoute.value.params.id
|
||||
state.evalStuListLoading = true;
|
||||
api.QueryAssessmentManageMessage({
|
||||
"assessmentId": router.currentRoute.value.params.id,
|
||||
"pageNo": state.currentPage,
|
||||
"pageSize": state.pageSize
|
||||
}).then(res=>{
|
||||
console.log('获取学员信息',res)
|
||||
// evalStuListDataTotal evalCurrentPage
|
||||
state.evalStuListLoading = false;
|
||||
if(res.data.code==200){
|
||||
state.evalStuListDataTotal = res.data.data.total;
|
||||
state.evalStuListData = res.data.data.rows;
|
||||
state.evalStuListLoading = false;
|
||||
}
|
||||
}).catch(err=>{
|
||||
console.log(err)
|
||||
state.evalStuListLoading = false;
|
||||
})
|
||||
// createName
|
||||
};
|
||||
|
||||
getInfoDate();
|
||||
|
||||
//分页
|
||||
const changePaginationStu = (page) => {
|
||||
state.evalStuListLoading = true;
|
||||
state.evalCurrentPage = page;
|
||||
getInfoDate();
|
||||
};
|
||||
|
||||
const showassess = (data) => {
|
||||
state.evalDataSource = data;
|
||||
state.Assessvisible = true;
|
||||
@@ -181,32 +216,32 @@ export default {
|
||||
{
|
||||
title: "工号",
|
||||
width: 40,
|
||||
dataIndex: "userNo",
|
||||
key: "userNo",
|
||||
dataIndex: "studentCode",
|
||||
key: "studentCode",
|
||||
},
|
||||
{
|
||||
title: "姓名",
|
||||
width: 40,
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
dataIndex: "studentName",
|
||||
key: "studentName",
|
||||
},
|
||||
{
|
||||
title: "部门",
|
||||
width: 50,
|
||||
dataIndex: "department",
|
||||
key: "department",
|
||||
dataIndex: "studentDepartName",
|
||||
key: "studentDepartName",
|
||||
},
|
||||
{
|
||||
width: 50,
|
||||
title: "岗位",
|
||||
dataIndex: "post",
|
||||
key: "post",
|
||||
dataIndex: "studentJobName",
|
||||
key: "studentJobName",
|
||||
},
|
||||
{
|
||||
title: "数据来源",
|
||||
width: 50,
|
||||
dataIndex: "dataSource",
|
||||
key: "dataSource",
|
||||
dataIndex: "source",
|
||||
key: "source",
|
||||
},
|
||||
// {
|
||||
// title: "项目",
|
||||
@@ -223,8 +258,8 @@ export default {
|
||||
{
|
||||
title: "提交时间",
|
||||
width: 50,
|
||||
dataIndex: "submit",
|
||||
key: "submit",
|
||||
dataIndex: "submitTime",
|
||||
key: "submitTime",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
@@ -250,6 +285,7 @@ export default {
|
||||
},
|
||||
],
|
||||
showassess,
|
||||
changePaginationStu
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user