feat:增加小组导入导出

This commit is contained in:
lixg
2023-02-12 19:44:22 +08:00
parent fe4711ad68
commit 727fd1578d
7 changed files with 1402 additions and 660 deletions

View File

@@ -81,11 +81,11 @@
onChange: onSelectChange,
}"
/>
<div class="pa">
<a-pagination
v-if="total > 10"
:showSizeChanger="false"
:showSizeChanger="false"
showQuickJumper="true"
hideOnSinglePage="true"
:pageSize="pageSize"
@@ -161,7 +161,11 @@
<script>
import { toRefs, reactive } from "vue";
// import StuAdd from "./StuAdd.vue";
import { getProjStu, removeGroupStudent } from "../../api/indexProjStu";
import {
// getProjStu,
removeGroupStudent,
groupMemberList,
} from "../../api/indexProjStu";
import { toDate } from "../../api/method";
import { message } from "ant-design-vue";
import AddGroupMembers from "./AddGroupMembers.vue";
@@ -232,21 +236,21 @@ export default {
className: "h",
},
// {
// title: "岗位",
// dataIndex: "gangw",
// key: "gangw",
// width: 60,
// align: "center",
// className: "h",
// title: "岗位",
// dataIndex: "gangw",
// key: "gangw",
// width: 60,
// align: "center",
// className: "h",
// },
// {
// title: "进度",
// dataIndex: "progress",
// key: "progress",
// width: 60,
// align: "center",
// className: "h",
// },
// title: "进度",
// dataIndex: "progress",
// key: "progress",
// width: 60,
// align: "center",
// className: "h",
// },
{
title: "操作",
dataIndex: "operations",
@@ -330,8 +334,7 @@ export default {
gangw: value.userInfoBo.jobName, //岗位
completeStageCnt: value.completeStageCnt, //当前完成阶段数
totalStageCnt: value.totalStageCnt, //总阶段数
progress: value.completeStageCnt + "/" + value.totalStageCnt,
progress: value.completeStageCnt + "/" + value.totalStageCnt,
stutime: toDate(value.beginStudyTime / 1000, "Y-M-D"), //开始学习时间
};
@@ -339,20 +342,17 @@ export default {
});
state.tabledata = array;
};
//获取员列表
//获取员列表
const getStu = (obj) => {
let objf = obj || {
deptIds: [], //部门
groupName: "",
name: "",
studentName: "",
pageNo: state.currentPage,
pageSize: 10,
projectId: props.projectId,
topFlag: "",
pid: props.projectId,
groupId: props.chooseGroupId, //暂时写死
};
state.tableDataTotal = -1;
getProjStu(objf).then((res) => {
groupMemberList(objf).then((res) => {
console.log(res.data.data, "获取学员列表");
if (res.data.code === 200) {
state.total = res.data.data.total;