mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
提交
This commit is contained in:
@@ -122,13 +122,13 @@
|
||||
<div class="btn btn1" style="margin-right: 20px" @click="hasten()">
|
||||
<div class="wz">催促学习</div>
|
||||
</div>
|
||||
<div
|
||||
<!-- <div
|
||||
class="btn btn1"
|
||||
@click="batchFinish"
|
||||
style="margin-right: 20px"
|
||||
>
|
||||
<div class="wz">批量标注完成</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div
|
||||
class="btn btn1"
|
||||
@@ -270,7 +270,7 @@ const changeStatus = (e) => {
|
||||
delete params.value.status;
|
||||
}
|
||||
};
|
||||
const params = ref({ pid: 0, type: 4 });
|
||||
const params = ref({ pid: 0, type: 3 });
|
||||
const courseSelectRows = ref([]);
|
||||
const planParams = computed(() => ({
|
||||
type: props.type,
|
||||
@@ -406,59 +406,59 @@ const columns = ref([
|
||||
</span>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
dataIndex: "opacation",
|
||||
key: "opacation",
|
||||
width: 100,
|
||||
align: "center",
|
||||
customRender: ({
|
||||
record: {
|
||||
workStatus,
|
||||
answerId,
|
||||
examinationScore,
|
||||
studentId,
|
||||
finishStatus,
|
||||
},
|
||||
}) => (
|
||||
<div style="display:flex;justify-content:center;">
|
||||
{examinationScore ? (
|
||||
<a
|
||||
className="opa"
|
||||
style={{
|
||||
color: examinationScore ? "" : "#666",
|
||||
marginRight: "12px",
|
||||
}}
|
||||
onClick={() => examinationScore && showExamAnswer(answerId)}
|
||||
>
|
||||
查看答卷
|
||||
</a>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
{workStatus ? (
|
||||
<a
|
||||
class="opa"
|
||||
style={{ color: workStatus ? "" : "#666" }}
|
||||
onClick={() => workStatus && showCWvisible(studentId)}
|
||||
>
|
||||
查看作业
|
||||
</a>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
{finishStatus != 1 ? (
|
||||
<a className="opa" onClick={() => finishTask(studentId)}>
|
||||
标记为完成
|
||||
</a>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
// {
|
||||
// title: "操作",
|
||||
// ellipsis: true,
|
||||
// className: "h",
|
||||
// dataIndex: "opacation",
|
||||
// key: "opacation",
|
||||
// width: 100,
|
||||
// align: "center",
|
||||
// customRender: ({
|
||||
// record: {
|
||||
// workStatus,
|
||||
// answerId,
|
||||
// examinationScore,
|
||||
// studentId,
|
||||
// finishStatus,
|
||||
// },
|
||||
// }) => (
|
||||
// <div style="display:flex;justify-content:center;">
|
||||
// {examinationScore ? (
|
||||
// <a
|
||||
// className="opa"
|
||||
// style={{
|
||||
// color: examinationScore ? "" : "#666",
|
||||
// marginRight: "12px",
|
||||
// }}
|
||||
// onClick={() => examinationScore && showExamAnswer(answerId)}
|
||||
// >
|
||||
// 查看答卷
|
||||
// </a>
|
||||
// ) : (
|
||||
// ""
|
||||
// )}
|
||||
// {workStatus ? (
|
||||
// <a
|
||||
// class="opa"
|
||||
// style={{ color: workStatus ? "" : "#666" }}
|
||||
// onClick={() => workStatus && showCWvisible(studentId)}
|
||||
// >
|
||||
// 查看作业
|
||||
// </a>
|
||||
// ) : (
|
||||
// ""
|
||||
// )}
|
||||
// {finishStatus != 1 ? (
|
||||
// <a className="opa" onClick={() => finishTask(studentId)}>
|
||||
// 标记为完成
|
||||
// </a>
|
||||
// ) : (
|
||||
// ""
|
||||
// )}
|
||||
// </div>
|
||||
// ),
|
||||
// },
|
||||
]);
|
||||
watch(
|
||||
() => data.value,
|
||||
@@ -556,17 +556,18 @@ function exportTaskStu() {
|
||||
}
|
||||
|
||||
const hasten = () => {
|
||||
message.success("催促成功");
|
||||
console.log(data.value[coursePlanIndex.value]);
|
||||
if(!tableRef.value.data || !tableRef.value.data.length){
|
||||
message.warning("当前课程没有可催促的学员");
|
||||
return
|
||||
}
|
||||
batchSendMessage({
|
||||
// courseId: props.datasource.courseId,//任务的Id
|
||||
courseId: data.value[coursePlanIndex.value].id, //任务的Id
|
||||
courseName: props.datasource.name, //任务的名称
|
||||
logo: props.type, //项目或径的标识 1-项目 2-路径图 3面授课
|
||||
targetId: infoId.value, //路径图的就是routerId,项目的是projectId;根据这张图来看的话
|
||||
courseName: props.datasource.taskName, //任务的名称
|
||||
logo: 3, //项目或径的标识 1-项目 2-路径图 3面授课
|
||||
taskType: props.datasource.taskType, //催促的任务的类型
|
||||
chapterId: props.datasource.stageId, //阶段或关卡Id
|
||||
});
|
||||
message.success("催促成功");
|
||||
};
|
||||
|
||||
function afterVisibleChange(bool) {
|
||||
|
||||
Reference in New Issue
Block a user