mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
feat:增加签到签退等
This commit is contained in:
@@ -14,6 +14,40 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col v-if="type === 1">
|
||||
<a-form-item title="小组名称:">
|
||||
<a-input
|
||||
class="cus-input"
|
||||
v-model:value="tableParam.groupName"
|
||||
placeholder="请输入小组名称"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col v-if="type === 1">
|
||||
<a-form-item title="部门:">
|
||||
<div class="select in" style="width: 270px">
|
||||
<OrgClass
|
||||
v-model:value="tableParam.studentDepartId"
|
||||
v-model:name="tableParam.studentDepartName"
|
||||
></OrgClass>
|
||||
</div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col v-if="type === 1">
|
||||
<a-form-item title="优秀学员:">
|
||||
<div class="select">
|
||||
<a-select
|
||||
v-model:value="tableParam.topFlag"
|
||||
style="width: 260px; height: 40px"
|
||||
placeholder="是否为优秀学员"
|
||||
:options="topFlagList"
|
||||
@change="selectProjectName"
|
||||
allowClear
|
||||
showSearch
|
||||
></a-select>
|
||||
</div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col>
|
||||
<a-button class="cus-btn" style="width: 100px" @click="getStuList">
|
||||
<template #icon>
|
||||
@@ -120,14 +154,14 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="stmm_btn btn5" @click="handleExportStu">
|
||||
<div class="stmm_btn btn5" @click="exportStu">
|
||||
<div class="export"></div>
|
||||
<div class="btnText">导出</div>
|
||||
</div>
|
||||
<div
|
||||
class="stmm_btn btn5"
|
||||
style="margin-left: 15px"
|
||||
@click="handleExportStu"
|
||||
@click="exportHomeWork"
|
||||
>
|
||||
<div class="btnText">导出作业</div>
|
||||
</div>
|
||||
@@ -313,6 +347,7 @@ import { message } from "ant-design-vue";
|
||||
// import { topStudent } from "../../api/indexProjStu";
|
||||
import SeeStu from "../../components/drawers/SeeStu";
|
||||
import ExportScore from "../drawers/ExportScore.vue";
|
||||
import OrgClass from "@/components/project/OrgClass";
|
||||
const props = defineProps({
|
||||
type: Number,
|
||||
id: String,
|
||||
@@ -329,6 +364,18 @@ const props = defineProps({
|
||||
default: false,
|
||||
},
|
||||
});
|
||||
const topFlagList = ref([
|
||||
{
|
||||
id: 0,
|
||||
value: 0,
|
||||
label: "普通学员",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
value: 1,
|
||||
label: "优秀学员",
|
||||
},
|
||||
]);
|
||||
const tablecolumns = ref([
|
||||
{
|
||||
title: "姓名",
|
||||
@@ -397,7 +444,11 @@ const tablecolumns = ref([
|
||||
},
|
||||
]);
|
||||
const tableParam = ref({
|
||||
studentName: "",
|
||||
studentName: "", //学员名称
|
||||
groupName: "", //学员小组
|
||||
studentDepartId: null, //部门
|
||||
studentDepartName: null, //部门名称
|
||||
topFlag: null, //是否是优秀学员
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
type: props.type,
|
||||
@@ -450,6 +501,7 @@ function changePagination(page) {
|
||||
|
||||
function getStuList() {
|
||||
tableData.value.loading = true;
|
||||
console.log("tableParam.value", tableParam.value);
|
||||
getStuPage(tableParam.value).then((res) => {
|
||||
console.log("学员管理-获取学员", res.data);
|
||||
tableData.value.total = res.data.data.total;
|
||||
@@ -460,6 +512,10 @@ function getStuList() {
|
||||
|
||||
function reset() {
|
||||
tableParam.value.studentName = "";
|
||||
tableParam.value.groupName = ""; //学员小组
|
||||
tableParam.value.studentDepartId = null; //部门
|
||||
tableParam.value.studentDepartName = null; //部门
|
||||
tableParam.value.topFlag = null; //是否是优秀学员
|
||||
getStuList();
|
||||
}
|
||||
|
||||
@@ -568,6 +624,23 @@ const eScorevisible = ref(false);
|
||||
const showEScoreModal = () => {
|
||||
eScorevisible.value = true;
|
||||
};
|
||||
|
||||
//导出作业
|
||||
const exportHomeWork = () => {
|
||||
window.open(
|
||||
`${
|
||||
process.env.VUE_APP_PROXY_URL
|
||||
}admin/student/exportHomeWork?type=${3}&pid=${props.id}`
|
||||
);
|
||||
};
|
||||
//导出
|
||||
const exportStu = () => {
|
||||
window.open(
|
||||
`${
|
||||
process.env.VUE_APP_PROXY_URL
|
||||
}admin/student/exportTaskStudent?type=${3}&pid=${props.id}`
|
||||
);
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.TableStudent {
|
||||
|
||||
Reference in New Issue
Block a user