-- 学员审核

This commit is contained in:
yuping
2022-12-26 23:12:00 +08:00
parent f00b3e945f
commit d090544399
2 changed files with 6279 additions and 6244 deletions

View File

@@ -209,7 +209,7 @@ const tablecolumns = ref([
width: 100, width: 100,
align: "center", align: "center",
customRender: ({record: {source}}) => customRender: ({record: {source}}) =>
({1: "快速添加", 2: "组织", 3: "受众"}[source]), ({1: "快速添加", 2: "组织", 3: "受众", 4: '报名'}[source]),
}, },
...props.columns, ...props.columns,
{ {

View File

@@ -10,7 +10,8 @@
placeholder="请输入创建人"/> placeholder="请输入创建人"/>
</div> </div>
<div class="pathnameInp"> <div class="pathnameInp">
<a-input v-model:value="name" style="width: 200px; height: 40px; border-radius: 8px" placeholder="请输入名称" /> <a-input v-model:value="name" style="width: 200px; height: 40px; border-radius: 8px"
placeholder="请输入名称"/>
</div> </div>
<div class="pathnameInp"> <div class="pathnameInp">
<a-input v-model:value="projectName" style="width: 200px; height: 40px; border-radius: 8px" <a-input v-model:value="projectName" style="width: 200px; height: 40px; border-radius: 8px"
@@ -36,7 +37,8 @@
return triggerNode.parentNode || document.body; return triggerNode.parentNode || document.body;
} }
" v-model:value="categoryId" show-search style="width: 200px" " v-model:value="categoryId" show-search style="width: 200px"
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="请选择内容分类" allow-clear :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="请选择内容分类"
allow-clear
tree-default-expand-all :tree-data="options2222"> tree-default-expand-all :tree-data="options2222">
<template #title="{ value: val, title }"> <template #title="{ value: val, title }">
<b v-if="val === '11111'" style="color: #08c">sss</b> <b v-if="val === '11111'" style="color: #08c">sss</b>
@@ -97,7 +99,8 @@
<span style="margin-right: 3px">课程名称</span> <span style="margin-right: 3px">课程名称</span>
</div> </div>
<div class="in b_input"> <div class="in b_input">
<NameInput placeholder="请输入课程名称" v-model:value="xzinputV1" v-model:validate="validate" :maxlength="20" <NameInput placeholder="请输入课程名称" v-model:value="xzinputV1" v-model:validate="validate"
:maxlength="20"
show-count :type="2"></NameInput> show-count :type="2"></NameInput>
<!-- <a-input--> <!-- <a-input-->
<!-- v-model:value="xzinputV1"--> <!-- v-model:value="xzinputV1"-->
@@ -1079,7 +1082,8 @@
<div class="tableBox" style="margin-top: 50px"> <div class="tableBox" style="margin-top: 50px">
<div class="pa"> <div class="pa">
<a-pagination :showSizeChanger="false" showQuickJumper="true" hideOnSinglePage="true" <a-pagination :showSizeChanger="false" showQuickJumper="true" hideOnSinglePage="true"
:pageSize="pageSize2" :current="currentPage2" :total="tableDataTotal2" class="pagination" :pageSize="pageSize2" :current="currentPage2" :total="tableDataTotal2"
class="pagination"
@change="handelChangePage2"/> @change="handelChangePage2"/>
</div> </div>
</div> </div>
@@ -1141,7 +1145,8 @@
<div class="select fitems"> <div class="select fitems">
<a-range-picker style="width: 440px; height: 40px; border-radius: 8px" :show-time="{ format: 'HH:mm' }" <a-range-picker style="width: 440px; height: 40px; border-radius: 8px" :show-time="{ format: 'HH:mm' }"
:disabled-date="disabledDate" :disabled-time="disabledRangeTime" format="YYYY-MM-DD HH:mm" :disabled-date="disabledDate" :disabled-time="disabledRangeTime" format="YYYY-MM-DD HH:mm"
v-model:value="xjkkinputV3" separator="至" :placeholder="[' 开始时间', ' 结束时间']" /> v-model:value="xjkkinputV3" separator="至"
:placeholder="[' 开始时间', ' 结束时间']"/>
</div> </div>
</div> </div>
<div class="cstm_items"> <div class="cstm_items">
@@ -1329,11 +1334,40 @@
</div> </div>
<div class="stmm_i5"> <div class="stmm_i5">
<TableStudent :type="3" :id="offcoursePlanId" :columns="stuColumns" :visable="sm_hs"> <TableStudent :type="3" :id="offcoursePlanId" :columns="stuColumns" :visable="sm_hs">
<!-- <template #extension = "data">--> <template #extension="{data:{record}}">
<!-- <div style="display: flex">--> <div style="display:flex">
<!-- <button @click="handlJoinStu(data)">成绩录入</button>--> <div
<!-- </div>--> v-if="record.source===4 && record.status ===1"
<!-- </template>--> @click="()=>{
record.status = 0
auditStudent(record)
}"
style="color: #4ea6ff; font-size: 14px; text-align: center;margin-left: 20px;cursor: pointer;"
>
审核通过
</div>
<div
v-if="record.source===4 && record.status ===1"
@click="()=>{
record.status = 2
auditStudent(record)
}"
style="color: #4ea6ff; font-size: 14px; text-align: center;margin-left: 20px;cursor: pointer;"
>
拒绝
</div>
<div
v-if="record.source===4 && (record.status ===0 || record.status ===2)"
@click="()=>{
record.status = 1
auditStudent(record)
}"
style="color: #4ea6ff; font-size: 14px; text-align: center;margin-left: 20px;cursor: pointer;"
>
撤回
</div>
</div>
</template>
</TableStudent> </TableStudent>
</div> </div>
<div class="tableBox" style="margin-top: 20px"> <div class="tableBox" style="margin-top: 20px">
@@ -1820,6 +1854,7 @@ import AddHomework from "../../components/drawers/AddHomework.vue";
import AddTest from "../../components/drawers/AddTest.vue"; import AddTest from "../../components/drawers/AddTest.vue";
import TableStudent from "@/components/student/TableStudent"; import TableStudent from "@/components/student/TableStudent";
import FJUpload from "@/components/common/FJUpload"; import FJUpload from "@/components/common/FJUpload";
import {updateStudent} from "@/api/indexProjStu";
//列表表格 //列表表格
const columns1 = [ const columns1 = [
// { // {
@@ -4741,11 +4776,14 @@ export default defineComponent({
disabledSeconds: () => [55, 56], disabledSeconds: () => [55, 56],
}; };
}; };
function auditStudent(record){
updateStudent(record)
}
return { return {
...toRefs(state), ...toRefs(state),
CourseModalRef, CourseModalRef,
auditStudent,
getdateToDateFn, getdateToDateFn,
moment, moment,
disabledDate, disabledDate,
@@ -7110,8 +7148,6 @@ export default defineComponent({
justify-content: space-between; justify-content: space-between;
} }
.stmm_i6 { .stmm_i6 {
@@ -7449,7 +7485,6 @@ export default defineComponent({
} }
// .tableSelect { // .tableSelect {
// position: relative; // position: relative;
// .hoverList { // .hoverList {