feat:增加签到签退等

This commit is contained in:
lixg
2023-01-06 17:07:57 +08:00
parent e80ee2f4f7
commit 8cb9c6649e
11 changed files with 297 additions and 143 deletions

View File

@@ -993,11 +993,13 @@
<div class="b_title">课程:{{ newCourseName }}</div>
<div class="b_sub">
<div class="bs_type">类型:</div>
<div class="bs_right">{{faceType}}</div>
<div class="bs_right">{{ faceType }}</div>
<div class="bs_left">内容分类:</div>
<div class="bs_right">{{faceClassification}}</div>
<div class="bs_right">{{ faceClassification }}</div>
<div class="bs_left">状态:</div>
<div class="bs_right">{{faceStatus==1?"已启用":"已停用"}}</div>
<div class="bs_right">
{{ faceStatus == 1 ? "已启用" : "已停用" }}
</div>
</div>
<a-tabs
class="b_menu"
@@ -1120,7 +1122,7 @@
showQuickJumper="true"
hideOnSinglePage="true"
:pageSize="pageSize222"
:current="currentPage222"
:current="currentPage222"
:total="tableDataTotal222"
class="pagination"
@change="handelChangePage222"
@@ -1306,15 +1308,7 @@
<div class="operation">
<div class="fb">
<!--新加 签到 -->
<div
class="jc"
@click="
() => {
QR_hs = true;
ftsQR_hs = true;
}
"
>
<div class="jc" @click="qrcodeVisible(record, 2)">
签到
</div>
@@ -1361,14 +1355,7 @@
删除
</a-menu-item>
<!--新加 二维码 -->
<a-menu-item
@click="
() => {
QR_hs = true;
vipftQR_hs = true;
}
"
>
<a-menu-item @click="qrcodeVisible(record, 1)">
二维码
</a-menu-item>
</a-menu>
@@ -2285,7 +2272,7 @@
v-model:codevisible="codevisible"
:codeInfo="codeInfo"
:index="codeIndex"
:type="codeType === 1 ? '课程二维码' : '签到二维码'"
:type="codeType == 1 ? '课程二维码' : codeType == 2 ? '签到二维码' : ''"
/>
<!-- 二维码弹窗 -->
</template>
@@ -3252,7 +3239,7 @@ export default defineComponent({
gl_inputV1: "",
gl_inputV2: "",
manageStuLoading: true,
currentFaceId:"",
currentFaceId: "",
//开课
kk_eidt: false,
kkinputV1: "",
@@ -3461,7 +3448,9 @@ export default defineComponent({
// 点击开课管理 -- 显示得信息
faceType: "面授课", // 面授课类型
faceClassification: "", // 课程内容分类
faceStatus: "" // 课程状态
faceStatus: "", // 课程状态
codeType: null, //二维码类型
});
const showStuAdd = (record) => {
@@ -4092,53 +4081,53 @@ export default defineComponent({
getCourseStudentList();
};
// const getTableDate33 = async () => {
// let datas = state.tableData2;
// let res = await listReview({
// pageNo: state.currentPage22,
// pageSize: state.pageSize22,
// auditStatus: state.gl_selectV1,
// name: state.gl_inputv1,
// });
// const { rows, total } = res.data.data;
// state.tableDataTotal22 = total;
// const datas = traverseArr(
// rows,
// {
// key: "offcourseId",
// projectName: "projectName",
// numb: "assessmentName",
// applytime: "createTime",
// signtime: "publishTime",
// status: "auditStatus",
// },
// true
// );
// state.tableData2 = datas;
// let datas = state.tableData2;
// let res = await listReview({
// pageNo: state.currentPage22,
// pageSize: state.pageSize22,
// auditStatus: state.gl_selectV1,
// name: state.gl_inputv1,
// });
// const { rows, total } = res.data.data;
// state.tableDataTotal22 = total;
// const datas = traverseArr(
// rows,
// {
// key: "offcourseId",
// projectName: "projectName",
// numb: "assessmentName",
// applytime: "createTime",
// signtime: "publishTime",
// status: "auditStatus",
// },
// true
// );
// state.tableData2 = datas;
// };
// 渲染开课操作
// const getTableDate333 = async () => {
// let datas = state.tableData2;
// let res = await studyRecordList({
// pageNo: state.currentPage222,
// pageSize: state.pageSize222,
// name: state.gl_selectV1,
// status: state.gl_inputv1,
// });
// const { rows, total } = res.data.data;
// state.tableDataTotal222 = total;
// const datas = traverseArr(
// rows,
// {
// key: "offcourseId",
// projectName: "projectName",
// numb: "assessmentName",
// applytime: "createTime",
// signtime: "publishTime",
// status: "auditStatus",
// },
// true
// );
// state.tableData2 = datas;
// let datas = state.tableData2;
// let res = await studyRecordList({
// pageNo: state.currentPage222,
// pageSize: state.pageSize222,
// name: state.gl_selectV1,
// status: state.gl_inputv1,
// });
// const { rows, total } = res.data.data;
// state.tableDataTotal222 = total;
// const datas = traverseArr(
// rows,
// {
// key: "offcourseId",
// projectName: "projectName",
// numb: "assessmentName",
// applytime: "createTime",
// signtime: "publishTime",
// status: "auditStatus",
// },
// true
// );
// state.tableData2 = datas;
// };
// 渲染开课操作
const getTableDate3 = async () => {
@@ -5211,31 +5200,33 @@ export default defineComponent({
// 获取开课管理里的学员
function getCourseStudentList() {
console.log('开课管理学员搜索参数',{
console.log("开课管理学员搜索参数", {
pageNo: state.currentPage222,
pageSize: 10,
status: state.gl_selectV2?state.gl_selectV2:"",
status: state.gl_selectV2 ? state.gl_selectV2 : "",
studentName: state.gl_inputV2,
id:state.currentFaceId
})
apis.GetCourseStudent({
pageNo: state.currentPage222,
pageSize: 10,
status: state.gl_selectV2?state.gl_selectV2:"",
studentName: state.gl_inputV2,
id:state.currentFaceId
}).then(res=>{
console.log('获取开课管理学员信息', res)
// tableData3 tableDataTotal222 currentPage222 handelChangePage222
state.tableData3 = res.data.data.records;
state.tableDataTotal222 = res.data.data.total;
state.manageStuLoading = false;
}).catch(err=>{
console.log(err)
state.manageStuLoading = false;
})
id: state.currentFaceId,
});
apis
.GetCourseStudent({
pageNo: state.currentPage222,
pageSize: 10,
status: state.gl_selectV2 ? state.gl_selectV2 : "",
studentName: state.gl_inputV2,
id: state.currentFaceId,
})
.then((res) => {
console.log("获取开课管理学员信息", res);
// tableData3 tableDataTotal222 currentPage222 handelChangePage222
state.tableData3 = res.data.data.records;
state.tableDataTotal222 = res.data.data.total;
state.manageStuLoading = false;
})
.catch((err) => {
console.log(err);
state.manageStuLoading = false;
});
}
const handlePostSure = (obj) => {
console.log("处理后参数,直接解构使用");
@@ -5422,6 +5413,23 @@ export default defineComponent({
updateStudent(record);
}
//二维码
const qrcodeVisible = (record, type) => {
console.log(
"record",
record,
process.env.VUE_APP_IFRAME_STUDENT_URL,
process.env.COURSE_STUDY
);
state.codevisible = true;
state.codeInfo = {
title: type == 1 ? "【课程】二维码" : "【签到】二维码",
name: record.name ? record.name : "",
url: process.env.COURSE_STUDY + record.offcourseId,
};
state.codeIndex = type;
state.codeType = type;
};
return {
...toRefs(state),
CourseModalRef,
@@ -5553,6 +5561,8 @@ export default defineComponent({
handleLook,
logW,
logT,
qrcodeVisible,
};
},
});