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