mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
feat:增加批量标注完成等
This commit is contained in:
@@ -142,13 +142,13 @@
|
||||
<div class="btn4_tit" @click="showEScoreModal">
|
||||
<span>批量录入成绩</span>
|
||||
</div>
|
||||
<div class="btn4_op1" @click="handleAllover">
|
||||
<div class="btn4_op1" @click="updateStatus(1)">
|
||||
<span>批量结业</span>
|
||||
</div>
|
||||
<div class="btn4_op2" @click="handleAllSuc">
|
||||
<div class="btn4_op2" @click="updateStatus(0)">
|
||||
<span>批量通过</span>
|
||||
</div>
|
||||
<div class="btn4_op3" @click="handleAllReject">
|
||||
<div class="btn4_op3" @click="updateStatus(2)">
|
||||
<span>批量拒绝</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -220,6 +220,7 @@
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
"
|
||||
@click="updateStatus(0, record.id)"
|
||||
>
|
||||
通过
|
||||
</div>
|
||||
@@ -233,6 +234,7 @@
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
"
|
||||
@click="updateStatus(2, record.id)"
|
||||
>
|
||||
拒绝
|
||||
</div>
|
||||
@@ -340,7 +342,7 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import { computed, defineProps, onMounted, ref, watch } from "vue";
|
||||
import { delStudentList, getStuPage } from "@/api/index1";
|
||||
import { delStudentList, getStuPage, batchUpdateStatus } from "@/api/index1";
|
||||
import CommonStudent from "@/components/student/CommonStudent";
|
||||
import ChangeLevelModal from "./ChangeLevelModal.vue";
|
||||
import { message } from "ant-design-vue";
|
||||
@@ -641,6 +643,32 @@ const exportStu = () => {
|
||||
}admin/student/exportTaskStudent?type=${3}&pid=${props.id}`
|
||||
);
|
||||
};
|
||||
|
||||
//批量操作 结业、通过、拒绝等
|
||||
const updateStatus = (status, id) => {
|
||||
if (!id && stuSelectKeys.value.length === 0) {
|
||||
message.warning("请选择学员");
|
||||
}
|
||||
let obj = {
|
||||
ids: id ? [id] : stuSelectKeys.value,
|
||||
};
|
||||
if (status === 1) {
|
||||
obj.completionStatus = 1;
|
||||
} else {
|
||||
obj.status = status;
|
||||
}
|
||||
batchUpdateStatus(obj)
|
||||
.then((res) => {
|
||||
console.log("批量更新学员状态", res);
|
||||
if (res.data.code === 200) {
|
||||
getStuList();
|
||||
stuSelectKeys.value = [];
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("批量更新学员状态失败", err);
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.TableStudent {
|
||||
|
||||
Reference in New Issue
Block a user