mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 02:46:45 +08:00
feat:修改批量标记完成传参
This commit is contained in:
@@ -69,13 +69,12 @@ export default {
|
|||||||
|
|
||||||
//批量标记完成
|
//批量标记完成
|
||||||
const batchFinishTask = () => {
|
const batchFinishTask = () => {
|
||||||
if (props.studentsId.length === 0) {
|
if (props.ids.length === 0) {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.warning("请选择学员");
|
message.warning("请选择学员");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("props.studentsId", props.studentsId);
|
|
||||||
closeModal();
|
|
||||||
let obj = {
|
let obj = {
|
||||||
ids: props.ids,
|
ids: props.ids,
|
||||||
type: props.type,
|
type: props.type,
|
||||||
@@ -84,10 +83,17 @@ export default {
|
|||||||
taskType: props.taskType,
|
taskType: props.taskType,
|
||||||
currentStageId: props.currentStageId,
|
currentStageId: props.currentStageId,
|
||||||
};
|
};
|
||||||
|
// console.log("props.studentsId", props.ids, obj);
|
||||||
api
|
api
|
||||||
.batchFinishTask(obj)
|
.batchFinishTask(obj)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("批量标记结果", res);
|
console.log("批量标记结果", res);
|
||||||
|
|
||||||
|
if (res.data.code === 200) {
|
||||||
|
message.destroy();
|
||||||
|
message.success("标记成功");
|
||||||
|
closeModal();
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log("批量标记失败", err);
|
console.log("批量标记失败", err);
|
||||||
|
|||||||
@@ -138,11 +138,25 @@
|
|||||||
<ASOver
|
<ASOver
|
||||||
v-model:ASOvervisible="ASOvervisible"
|
v-model:ASOvervisible="ASOvervisible"
|
||||||
:ids="selectedRowKeys"
|
:ids="selectedRowKeys"
|
||||||
:taskId="projectTaskInfo.projectTaskId"
|
:taskId="
|
||||||
|
projectTaskInfo && projectTaskInfo.projectTaskId
|
||||||
|
? projectTaskInfo.projectTaskId
|
||||||
|
: null
|
||||||
|
"
|
||||||
:type="2"
|
:type="2"
|
||||||
:pid="projectTaskInfo.projectId"
|
:pid="
|
||||||
:taskType="projectTaskInfo.type"
|
projectTaskInfo && projectTaskInfo.projectId
|
||||||
:currentStageId="projectTaskInfo.stageId"
|
? projectTaskInfo.projectId
|
||||||
|
: null
|
||||||
|
"
|
||||||
|
:taskType="
|
||||||
|
projectTaskInfo && projectTaskInfo.type ? projectTaskInfo.type : null
|
||||||
|
"
|
||||||
|
:currentStageId="
|
||||||
|
projectTaskInfo && projectTaskInfo.stageId
|
||||||
|
? projectTaskInfo.stageId
|
||||||
|
: null
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
<!-- 录入成绩抽屉 -->
|
<!-- 录入成绩抽屉 -->
|
||||||
<entry-scores v-model:Evisible="Evisible" />
|
<entry-scores v-model:Evisible="Evisible" />
|
||||||
|
|||||||
@@ -133,11 +133,15 @@
|
|||||||
<ASOver
|
<ASOver
|
||||||
v-model:ASOvervisible="ASOvervisible"
|
v-model:ASOvervisible="ASOvervisible"
|
||||||
:ids="selectedRowKeys"
|
:ids="selectedRowKeys"
|
||||||
:taskId="datasource.routerTaskId"
|
:taskId="
|
||||||
|
datasource && datasource.routerTaskId ? datasource.routerTaskId : null
|
||||||
|
"
|
||||||
:type="2"
|
:type="2"
|
||||||
:pid="datasource.routerId"
|
:pid="datasource && datasource.routerId ? datasource.routerId : null"
|
||||||
:taskType="datasource.type"
|
:taskType="datasource && datasource.type ? datasource.type : null"
|
||||||
:currentStageId="datasource.chapterId"
|
:currentStageId="
|
||||||
|
datasource && datasource.chapterId ? datasource.chapterId : null
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
<!-- 录入成绩抽屉 -->
|
<!-- 录入成绩抽屉 -->
|
||||||
<entry-scores v-model:Evisible="Evisible" />
|
<entry-scores v-model:Evisible="Evisible" />
|
||||||
|
|||||||
Reference in New Issue
Block a user