Merge branch 'compulsory_professional_skills' into compulsory_professional_skills_copy

This commit is contained in:
gengxin
2025-02-27 14:49:23 +08:00
2 changed files with 31 additions and 17 deletions

View File

@@ -558,16 +558,23 @@ function exportTaskStu() {
const hasten = () => { const hasten = () => {
if (!tableRef.value.data || !tableRef.value.data.length) { if (!tableRef.value.data || !tableRef.value.data.length) {
message.warning("当前课程没有可催促的学员"); message.warning("当前课程没有可催促的学员");
return return;
} }
dialog({
content: "是否催促全部未完成学习任务的学员进行学习?",
ok: async () => {
batchSendMessage({ batchSendMessage({
// courseId: props.datasource.courseId,//任务的Id // courseId: props.datasource.courseId,//任务的Id
courseId: data.value[coursePlanIndex.value].id, //任务的Id courseId: data.value[coursePlanIndex.value].id, //任务的Id
courseName: props.datasource.taskName, //任务的名称 courseName: props.datasource.taskName, //任务的名称
logo: 3, //项目或径的标识 1-项目 2-路径图 3面授课 logo: 3, //项目或径的标识 1-项目 2-路径图 3面授课
taskType: props.datasource.taskType, //催促的任务的类型 taskType: props.datasource.taskType, //催促的任务的类型
}); }).then((res) => {
console.log(res);
message.success("催促成功"); message.success("催促成功");
});
},
});
}; };
function afterVisibleChange(bool) { function afterVisibleChange(bool) {

View File

@@ -158,6 +158,7 @@ import {
} from "@/api/growthpath"; } from "@/api/growthpath";
import * as api from "@/api/index1"; import * as api from "@/api/index1";
import dialog from "@/utils/dialog";
import { TASK_TYPE } from "@/utils/constGrown"; import { TASK_TYPE } from "@/utils/constGrown";
import PostSelectNew from "@/components/growthpath/PostSelect"; import PostSelectNew from "@/components/growthpath/PostSelect";
import OfficeSelect from "@/components/growthpath/OfficeSelect"; import OfficeSelect from "@/components/growthpath/OfficeSelect";
@@ -480,6 +481,7 @@ export default {
message.warning("当前学习任务没有可催促的学员"); message.warning("当前学习任务没有可催促的学员");
return; return;
} }
var obj = { var obj = {
courseId: props.datasource.taskId courseId: props.datasource.taskId
? props.datasource.taskId ? props.datasource.taskId
@@ -489,6 +491,9 @@ export default {
taskType: props.datasource.taskType, //催促的任务的类型 taskType: props.datasource.taskType, //催促的任务的类型
growthId: props.datasource.growthId, growthId: props.datasource.growthId,
}; };
dialog({
content: "是否催促全部未完成学习任务的学员进行学习?",
ok: async () => {
batchSendMessage(obj) batchSendMessage(obj)
.then((res) => { .then((res) => {
console.log(res); console.log(res);
@@ -497,6 +502,8 @@ export default {
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
}); });
},
});
}; };
const onChange = (pageNumber) => { const onChange = (pageNumber) => {
console.log("Page: ", pageNumber); console.log("Page: ", pageNumber);