feat:学习路径图任务数据获取初始化

This commit is contained in:
wyx
2023-01-03 17:41:05 +08:00
parent 84c53c6bc0
commit 5d534cfcfd
5 changed files with 157 additions and 79 deletions

View File

@@ -1,11 +1,12 @@
<template>
<a-drawer
v-if="CommonModelVisible"
:visible="CommonModelVisible"
class="drawerStyle ProjectOnlineManage"
placement="right"
width="60%"
@after-visible-change="afterVisibleChange"
>
>
<div class="drawerMain">
<div class="header">
<div class="headerTitle">
@@ -34,7 +35,8 @@
/>
</div>
<div class="main">
<div class="endtime">起止时间2022-07-21 14:00 2022-7-30 14:00</div>
<div v-if="datasource.type !==6 || datasource.type !==9 " class="endtime">起止时间</div>
<div v-else class="endtime">起止时间{{datasource.startTime}} {{datasource.endTime}}</div>
<div class="search">
<div class="sealeft">
<div class="namecon" style="margin-right: 30px">
@@ -183,81 +185,72 @@ export default {
userName: "li",
deptName: "开发",
jobName: "前端开发",
level:"关卡一",
time: "2022-07-22 14:00:30",
status: "已完成",
},
],
});
const tableDataFunc = () => {
if (
props.itemsType == 1 ||
props.itemsType == 3 ||
props.itemsType == 6 ||
props.itemsType == 7 ||
props.itemsType == 8 ||
props.itemsType == 9 ||
props.itemsType == 11
) {
const columns = [
{
title: "工号",
dataIndex: "workNum",
key: "workNum",
width: 50,
align: "center",
className: "h head",
},
{
title: "姓名",
dataIndex: "userName",
key: "userName",
width: 50,
align: "center",
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: "level",
key: "level",
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",
},
];
return columns;
}
const columns = [
{
title: "工号",
dataIndex: "workNum",
key: "workNum",
width: 50,
align: "center",
className: "h head",
},
{
title: "姓名",
dataIndex: "userName",
key: "userName",
width: 50,
align: "center",
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: "level",
key: "level",
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",
},
];
return columns;
};
const closeDrawer = () => {
@@ -269,7 +262,7 @@ export default {
};
const afterVisibleChange = (bol) => {
if (bol == true) {
// getManageList();
getData();
}
};
const selectProjectName = (value) => {
@@ -284,6 +277,20 @@ export default {
console.log("Page: ", pageNumber);
};
function getData() {
state.tabledata = [
{
workNum: "123",
userName: "li",
deptName: "开发",
jobName: "前端开发",
level:"关卡一",
time: "2022-07-22 14:00:30",
status: "已完成",
},
]
}
return {
...toRefs(state),
selectProjectName,