fix:修改面授作业在线考试投票测评管理直播活动考勤 feat:新增查看作业 签到二维码 导出成绩

This commit is contained in:
Ggysh-7
2022-11-17 18:47:54 +08:00
parent 8d0cb128a1
commit 7ba791b51c
14 changed files with 1636 additions and 566 deletions

View File

@@ -74,7 +74,7 @@
<div class="tab" style="margin-top: 20px; margin-bottom: 100px">
<a-table
style="border: 1px solid #f2f6fe"
:columns="tablecolumns"
:columns="tableDataFunc()"
:data-source="tabledata"
:loading="tableDataTotal === -1 ? true : false"
expandRowByClick="true"
@@ -128,6 +128,10 @@ export default {
type: Number,
default: null,
},
itemsType:{
type: Number,
default:null,
}
},
setup(props, ctx) {
@@ -137,7 +141,7 @@ export default {
pageNo: 1,
pageSize: 10,
currentPage: 1,
tableDataTotal: 100,
tableDataTotal: 0,
projectName: "",
projectNameList: [
{
@@ -156,61 +160,177 @@ export default {
label: "已完成",
},
],
tabledata: [
// {
// key: 1,
// name: "哈哈",
// bum: "产品部",
// gangw: "产品经理",
// comp: "-",
// score: "-",
// time: "-",
// state: "未完成",
// },
],
tablecolumns: [
{
title: "姓名",
dataIndex: "userName",
key: "userName",
width: 50,
align: "left",
className: "h head",
},
{
title: "所在部门",
dataIndex: "deptName",
key: "userName",
width: 60,
align: "center",
className: "h",
},
{
title: "所在岗位",
dataIndex: "jobName",
key: "jobName",
width: 60,
align: "center",
className: "h",
},
{
title: "课程成绩",
dataIndex: "score",
key: "score",
width: 60,
align: "center",
className: "h",
},
{
title: "任务状态",
dataIndex: "status",
key: "status",
width: 60,
align: "center",
className: "h",
},
],
tabledata: [],
});
const tableDataFunc = () => {
if(props.itemsType == 10){
const columns = [
{
title: "工号",
dataIndex: "workNum",
key: "workNum",
width: 50,
align: "center",
className: "h",
},
{
title: "姓名",
dataIndex: "name",
key: "name",
width: 50,
align: "center",
className: "h",
},
{
title: "所在部门",
dataIndex: "deptName",
key: "deptName",
width: 50,
align: "center",
className: "h",
},
{
title: "所在岗位",
dataIndex: "jobName",
key: "jobName",
width: 50,
align: "center",
className: "h",
},
{
title: "提交时间",
dataIndex: "cur",
key: "cur",
width: 110,
align: "center",
className: "h",
},
{
title: "任务状态",
dataIndex: "state",
key: "state",
width: 50,
align: "center",
className: "h",
},
{
title: "PDF状态",
dataIndex: "pdfstate",
key: "pdfstate",
width: 50,
align: "center",
className: "h",
},
];
return columns;
} else if(props.itemsType == 5){
const columns = [
{
title: "工号",
dataIndex: "workNum",
key: "workNum",
width: 50,
align: "center",
className: "h head",
},
{
title: "姓名",
dataIndex: "userName",
key: "userName",
width: 50,
align: "left",
className: "h head",
},
{
title: "所在部门",
dataIndex: "deptName",
key: "deptName",
width: 60,
align: "center",
className: "h",
},
{
title: "所在岗位",
dataIndex: "jobName",
key: "jobName",
width: 60,
align: "center",
className: "h",
},
{
title: "考试次数",
dataIndex: "testNum",
key: "testNum",
width: 60,
align: "center",
className: "h",
},
{
title: "成绩",
dataIndex: "score",
key: "score",
width: 60,
align: "center",
className: "h",
},
{
title: "完成时间",
dataIndex: "time",
key: "time",
width: 100,
align: "center",
className: "h",
},
{
title: "任务状态",
dataIndex: "status",
key: "status",
width: 60,
align: "center",
className: "h",
},
{
title: "操作",
dataIndex: "operation",
key: "operation",
width: 60,
align: "center",
className: "h",
},
]
return columns;
}
};
//考试、测评管理列表操作
const ListOpera = () => {
let arr = state.tabledata;
console.log(arr,'-=-=-=-=-=-=-=-=--=-==----=-=-=-');
arr.map((value) => {
value.operation = (
<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<div
class="operation"
onClick={() => {
console.log(state.tabledata,'++++++++++++');
}}
>
查看
</div>
</div>
);
});
state.tabledata = arr;
console.log(state.tabledata,'-----------');
};
ListOpera();
const selectProjectName = (value, index) => {
console.log("value", value, index);
state.projectName = value;
@@ -291,8 +411,9 @@ export default {
let timer;
onMounted(() => {
setTimeout(() => {
// getManageList();
getManageList();
}, 1000);
timer = setInterval(() => {
state.open = false;
}, 3000);
@@ -304,6 +425,7 @@ export default {
...toRefs(state),
selectProjectName,
closeDrawer,
tableDataFunc,
showopen,
onMounted,
onUnmounted,
@@ -317,26 +439,10 @@ export default {
</script>
<style lang="scss">
// .drawerStyle {
// .ant-drawer-content-wrapper {
// // max-width: 1000px;
// .ant-drawer-header {
// display: none !important;
// }
// .ant-drawer-body {
// padding: 0;
// }
// }
// }
//作业管理弹窗
//作业管理弹窗
.TestManage {
.drawerMain {
min-width: 520px;
margin: 0px 32px 0px 32px;
// overflow-x: auto;
display: flex;
flex-direction: column;
position: relative;
@@ -363,20 +469,17 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
// background-color: red;
margin-bottom: 20px;
.headerTitle {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
// margin-left: 24px;
}
}
.main {
width: 100%;
height: 100%;
// background-color: #bfa;
overflow-y: auto;
padding-right: 10px;
.endtime {
@@ -497,15 +600,10 @@ export default {
}
.tableBox {
.pa {
// left: 0;
margin-top: 15px;
width: 100%;
// height: 20px;
// background-color: red;
display: flex;
justify-content: center;
// position: absolute;
// bottom: 20px;
.ant-pagination-prev,
.ant-pagination-next,
.ant-pagination-item,