mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-21 00:36:46 +08:00
feat:修改批量标记完成传参
This commit is contained in:
@@ -69,13 +69,12 @@ export default {
|
||||
|
||||
//批量标记完成
|
||||
const batchFinishTask = () => {
|
||||
if (props.studentsId.length === 0) {
|
||||
if (props.ids.length === 0) {
|
||||
message.destroy();
|
||||
message.warning("请选择学员");
|
||||
return;
|
||||
}
|
||||
console.log("props.studentsId", props.studentsId);
|
||||
closeModal();
|
||||
|
||||
let obj = {
|
||||
ids: props.ids,
|
||||
type: props.type,
|
||||
@@ -84,10 +83,17 @@ export default {
|
||||
taskType: props.taskType,
|
||||
currentStageId: props.currentStageId,
|
||||
};
|
||||
// console.log("props.studentsId", props.ids, obj);
|
||||
api
|
||||
.batchFinishTask(obj)
|
||||
.then((res) => {
|
||||
console.log("批量标记结果", res);
|
||||
|
||||
if (res.data.code === 200) {
|
||||
message.destroy();
|
||||
message.success("标记成功");
|
||||
closeModal();
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("批量标记失败", err);
|
||||
|
||||
Reference in New Issue
Block a user