mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
feat:增加面授课成绩录入
This commit is contained in:
@@ -93,7 +93,11 @@
|
||||
</div>
|
||||
<div class="btns">
|
||||
<!-- 2022-11-30注释 后面放开 -->
|
||||
<div class="btn btn3" @click="openMessage" style="margin-right:14px;">
|
||||
<div
|
||||
class="btn btn3"
|
||||
@click="openMessage"
|
||||
style="margin-right: 14px"
|
||||
>
|
||||
<div class="search"></div>
|
||||
<div class="btnText">导出</div>
|
||||
</div>
|
||||
@@ -1090,7 +1094,7 @@
|
||||
</div>
|
||||
<div class="bm_input">
|
||||
<a-input
|
||||
v-model:value="gl_inputV2"
|
||||
v-model:value="gl_inputV2"
|
||||
style="width: 200px; height: 40px; border-radius: 8px"
|
||||
placeholder="姓名"
|
||||
/>
|
||||
@@ -1706,6 +1710,7 @@
|
||||
:id="offcoursePlanId"
|
||||
:columns="stuColumns"
|
||||
:visable="sm_hs"
|
||||
:isgetStudent="isgetStudent"
|
||||
>
|
||||
<template #extension="{ data: { record } }">
|
||||
<div style="display: flex">
|
||||
@@ -2545,7 +2550,10 @@ const columns2 = [
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div class="racona">
|
||||
<span> {text.record.studentName?text.record.studentName:"-"}</span>
|
||||
<span>
|
||||
{" "}
|
||||
{text.record.studentName ? text.record.studentName : "-"}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
@@ -2559,7 +2567,10 @@ const columns2 = [
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div class="racona">
|
||||
<span> {text.record.studentUserNo?text.record.studentUserNo:"-"}</span>
|
||||
<span>
|
||||
{" "}
|
||||
{text.record.studentUserNo ? text.record.studentUserNo : "-"}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
@@ -2573,7 +2584,7 @@ const columns2 = [
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div class="racona">
|
||||
<span> {text.record.name?text.record.name:"-"}</span>
|
||||
<span> {text.record.name ? text.record.name : "-"}</span>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
@@ -2587,7 +2598,7 @@ const columns2 = [
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div class="racona">
|
||||
<span> {text.record.address?text.record.address:"-"}</span>
|
||||
<span> {text.record.address ? text.record.address : "-"}</span>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
@@ -2601,7 +2612,10 @@ const columns2 = [
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div class="racona">
|
||||
<span> {text.record.courseSource?text.record.courseSource:"-"}</span>
|
||||
<span>
|
||||
{" "}
|
||||
{text.record.courseSource ? text.record.courseSource : "-"}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
@@ -2615,7 +2629,10 @@ const columns2 = [
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div class="racona">
|
||||
<span> {text.record.lastStudyTime?text.record.lastStudyTime:"-"}</span>
|
||||
<span>
|
||||
{" "}
|
||||
{text.record.lastStudyTime ? text.record.lastStudyTime : "-"}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
@@ -2629,7 +2646,7 @@ const columns2 = [
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div class="racona">
|
||||
<span> {text.record.signTime?text.record.signTime:"-"}</span>
|
||||
<span> {text.record.signTime ? text.record.signTime : "-"}</span>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
@@ -2643,7 +2660,12 @@ const columns2 = [
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div class="racona">
|
||||
<span> {text.record.finishStatus==0 || text.record.finishStatus == null ?"未开始":"已完成"}</span>
|
||||
<span>
|
||||
{" "}
|
||||
{text.record.finishStatus == 0 || text.record.finishStatus == null
|
||||
? "未开始"
|
||||
: "已完成"}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
@@ -2980,7 +3002,7 @@ export default defineComponent({
|
||||
return (
|
||||
<div class="racona">
|
||||
<span>
|
||||
{text.record.studentJobName
|
||||
{text && text.record.studentJobName
|
||||
? text.record.studentJobName
|
||||
: "-"}
|
||||
</span>
|
||||
@@ -2994,13 +3016,11 @@ export default defineComponent({
|
||||
dataIndex: "studentBandDesc",
|
||||
key: "7",
|
||||
align: "center",
|
||||
customRender: (text) => {
|
||||
customRender: (record) => {
|
||||
return (
|
||||
<div class="racona">
|
||||
<span>
|
||||
{text.record.studentBandDesc
|
||||
? text.record.studentBandDesc
|
||||
: "-"}
|
||||
{record.studentBandDesc ? record.studentBandDesc : "-"}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
@@ -3063,9 +3083,11 @@ export default defineComponent({
|
||||
key: "7",
|
||||
align: "center",
|
||||
customRender: ({ record }) => {
|
||||
switch (String(record.status)) {
|
||||
case "0":
|
||||
return (
|
||||
return (
|
||||
<div class="racona">
|
||||
{record.workScore ? (
|
||||
<span>{record.workScore}</span>
|
||||
) : (
|
||||
<span
|
||||
style={{ color: "#4EA6FF", cursor: "pointer" }}
|
||||
onClick={() => {
|
||||
@@ -3074,12 +3096,26 @@ export default defineComponent({
|
||||
>
|
||||
成绩录入
|
||||
</span>
|
||||
);
|
||||
case "1":
|
||||
return "-";
|
||||
case "2":
|
||||
return "-";
|
||||
}
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
// switch (String(record.status)) {
|
||||
// case "0":
|
||||
// return (
|
||||
// <span
|
||||
// style={{ color: "#4EA6FF", cursor: "pointer" }}
|
||||
// onClick={() => {
|
||||
// handlJoinStu(record);
|
||||
// }}
|
||||
// >
|
||||
// 成绩录入
|
||||
// </span>
|
||||
// );
|
||||
// case "1":
|
||||
// return "-";
|
||||
// case "2":
|
||||
// return "-";
|
||||
// }
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -3314,6 +3350,8 @@ export default defineComponent({
|
||||
xygl_inputV1: "",
|
||||
//录入成绩
|
||||
lrcj_inputV1: "",
|
||||
scoreId: null, //录入成绩id
|
||||
isgetStudent: false, //是否重新获取学员
|
||||
//结业
|
||||
jyradioV1: "",
|
||||
|
||||
@@ -3854,6 +3892,7 @@ export default defineComponent({
|
||||
state.studentItem = itm;
|
||||
|
||||
state.rg_hs = true;
|
||||
state.scoreId = itm.id;
|
||||
};
|
||||
const handleOverStu = (itm) => {
|
||||
console.log(itm);
|
||||
@@ -4091,7 +4130,7 @@ export default defineComponent({
|
||||
offcoursePlanId: state.offcoursePlanId,
|
||||
name: state.xygl_inputV1,
|
||||
};
|
||||
// console.log("获取学员信息", obj);
|
||||
console.log("获取学员信息", obj);
|
||||
let res = await studentList(obj);
|
||||
console.log("获取学员列表", res);
|
||||
const { rows, total, pageNo } = res.data.data;
|
||||
@@ -4147,7 +4186,7 @@ export default defineComponent({
|
||||
state.gl_selectV2 = undefined;
|
||||
state.manageStuLoading = true;
|
||||
getCourseStudentList();
|
||||
}
|
||||
};
|
||||
// const getTableDate33 = async () => {
|
||||
// let datas = state.tableData2;
|
||||
// let res = await listReview({
|
||||
@@ -4724,26 +4763,31 @@ export default defineComponent({
|
||||
const handleJoin = async () => {
|
||||
if (state.rg_hs) {
|
||||
if (state.piliang) {
|
||||
handleStudent({
|
||||
offcoursePlanId: state.offcoursePlanId,
|
||||
api1.updateStudent({
|
||||
score: state.lrcj_inputV1,
|
||||
studentIds: state.selectedRowKeys7,
|
||||
type: 1,
|
||||
id: state.scoreId,
|
||||
});
|
||||
getTableDate2();
|
||||
delete_exit1();
|
||||
} else {
|
||||
handleStudent({
|
||||
offcoursePlanId: state.offcoursePlanId,
|
||||
score: state.lrcj_inputV1,
|
||||
studentIds: [state.studentId],
|
||||
type: 1,
|
||||
}).then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
getTableDate2();
|
||||
delete_exit1();
|
||||
}
|
||||
});
|
||||
api1
|
||||
.updateStudent({
|
||||
score: state.lrcj_inputV1,
|
||||
id: state.scoreId,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("成绩录入", res);
|
||||
if (res.data.code === 200) {
|
||||
// getTableDate2();
|
||||
state.isgetStudent = true;
|
||||
delete_exit1();
|
||||
state.lrcj_inputV1 = "";
|
||||
state.scoreId = null;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("录入失败", err);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -4950,10 +4994,21 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
window.open(
|
||||
`${process.env.VUE_APP_PROXY_URL}admin/offcourse/export?pageNo=${state.currentPage1}&pageSize=${state.pageSize1}&auditStatus=${state.auditStatus?state.auditStatus:""}&categoryId=${state.categoryId?state.categoryId:""}&projectName=${state.projectName?state.projectName:""}&name=${state.name?state.name:""}&createName=${state.createName?state.createName:""}&endTime=${endTime?endTime:""}&beginTime=${startTime?startTime:""}`
|
||||
`${process.env.VUE_APP_PROXY_URL}admin/offcourse/export?pageNo=${
|
||||
state.currentPage1
|
||||
}&pageSize=${state.pageSize1}&auditStatus=${
|
||||
state.auditStatus ? state.auditStatus : ""
|
||||
}&categoryId=${state.categoryId ? state.categoryId : ""}&projectName=${
|
||||
state.projectName ? state.projectName : ""
|
||||
}&name=${state.name ? state.name : ""}&createName=${
|
||||
state.createName ? state.createName : ""
|
||||
}&endTime=${endTime ? endTime : ""}&beginTime=${
|
||||
startTime ? startTime : ""
|
||||
}`
|
||||
);
|
||||
|
||||
{/* exportP({
|
||||
{
|
||||
/* exportP({
|
||||
pageNo: state.currentPage1,
|
||||
pageSize: state.pageSize1,
|
||||
auditStatus: state.auditStatus,
|
||||
@@ -4967,7 +5022,8 @@ export default defineComponent({
|
||||
if (res.data.code === 200) {
|
||||
message.success("导出成功");
|
||||
}
|
||||
}); */}
|
||||
}); */
|
||||
}
|
||||
};
|
||||
//获取教师
|
||||
const getTea = async () => {
|
||||
@@ -5497,7 +5553,8 @@ export default defineComponent({
|
||||
url:
|
||||
type == 1
|
||||
? process.env.VUE_APP_COURSE_STUDY + record.offcourseId
|
||||
:process.env.VUE_APP_BOE_API_URL + `/admin/student/studentSign?taskId=${
|
||||
: process.env.VUE_APP_BOE_API_URL +
|
||||
`/admin/student/studentSign?taskId=${
|
||||
record.offcoursePlanId
|
||||
}&type=${3}`,
|
||||
};
|
||||
@@ -6900,7 +6957,7 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
.btn2 {
|
||||
.btn2 {
|
||||
.search {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
|
||||
Reference in New Issue
Block a user