mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
--fix bug
This commit is contained in:
@@ -184,6 +184,7 @@ export const attendanceLeave = (obj) => http.post('/stu/task/attendance/leave',
|
||||
export const batchFinishTask = (obj) => http.post('/admin/student/batchFinishTask', obj)
|
||||
//批量更新学员状态
|
||||
export const batchUpdateStatus = (obj) => http.post('/admin/student/batchUpdateStatus', obj)
|
||||
export const auditStudentBatch = (obj) => http.post('/admin/student/auditStudentBatch', obj)
|
||||
// //面授课批量导入成绩
|
||||
export const batchImportScore = (obj) =>
|
||||
http.post('/admin/student/importHomeWork', obj, {
|
||||
|
||||
@@ -149,11 +149,13 @@
|
||||
<div
|
||||
class="b_zk"
|
||||
:style="{ display: hideshow ? 'block' : 'none', color: '#fff', lineHeight: '9px', transform: 'rotate(180deg)'}"
|
||||
>^</div>
|
||||
>^
|
||||
</div>
|
||||
<div
|
||||
class="b_sq"
|
||||
:style="{ display: hideshow ? 'none' : 'block', color: '#fff', lineHeight: '12px'}"
|
||||
>^</div>
|
||||
>^
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="btn4_sup"
|
||||
@@ -166,10 +168,10 @@
|
||||
<div class="btn4_op1" @click="updateStatus(1)">
|
||||
<span>批量结业</span>
|
||||
</div>
|
||||
<div class="btn4_op2" @click="updateStatus(0)">
|
||||
<div class="btn4_op2" @click="auditStatus(0)">
|
||||
<span>批量通过</span>
|
||||
</div>
|
||||
<div class="btn4_op3" @click="updateStatus(2)">
|
||||
<div class="btn4_op3" @click="auditStatus(2)">
|
||||
<span>批量拒绝</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -220,14 +222,14 @@
|
||||
|
||||
<a-button
|
||||
v-if="type === 3 && record.status !== 2 && record.status !== 0 && checkPer(permissions)"
|
||||
@click="updateStatus(0, record.id)"
|
||||
@click="auditStatus(0, record.id)"
|
||||
type="link"
|
||||
>通过
|
||||
</a-button
|
||||
>
|
||||
<a-button
|
||||
v-if="type === 3 && record.status !== 2 && record.status !== 0 && checkPer(permissions)"
|
||||
@click="updateStatus(2, record.id)"
|
||||
@click="auditStatus(2, record.id)"
|
||||
type="link"
|
||||
>拒绝
|
||||
</a-button
|
||||
@@ -390,7 +392,7 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import {computed, defineProps, onMounted, ref, watch} from "vue";
|
||||
import {delStudentList, getStuPage, batchUpdateStatus} from "@/api/index1";
|
||||
import {delStudentList, getStuPage, batchUpdateStatus, auditStudentBatch} from "@/api/index1";
|
||||
import ChangeGroupModal from "@/components/student/ChangeGroupModal.vue";
|
||||
import CommonStudent from "@/components/student/CommonStudent";
|
||||
import ChangeLevelModal from "./ChangeLevelModal.vue";
|
||||
@@ -697,6 +699,7 @@ const deleteModalVisible = ref(false);
|
||||
const deleteId = ref(null);
|
||||
const deleteTargetId = ref(null);
|
||||
const deleteType = ref(null);
|
||||
|
||||
function del(id, row) {
|
||||
if (row.isLeader === "1") {
|
||||
return message.warning("" + row.name + "是小组长,请勿删除!");
|
||||
@@ -704,7 +707,7 @@ function del(id, row) {
|
||||
deleteModalVisible.value = true;
|
||||
deleteId.value = id;
|
||||
deleteTargetId.value = row.pid;
|
||||
deleteType.value = row.type
|
||||
deleteType.value = row.type;
|
||||
|
||||
// Modal.confirm({
|
||||
// title: () => "确定删除?",
|
||||
@@ -727,7 +730,11 @@ function del(id, row) {
|
||||
const sureSameModal = () => {
|
||||
if (deleteId.value) {
|
||||
tableData.value.loading = true;
|
||||
delStudentList({ ids: [deleteId.value],targetId: deleteTargetId.value,type:deleteType.value}).then(() => getStuList());
|
||||
delStudentList({
|
||||
ids: [deleteId.value],
|
||||
targetId: deleteTargetId.value,
|
||||
type: deleteType.value
|
||||
}).then(() => getStuList());
|
||||
deleteModalVisible.value = false;
|
||||
}
|
||||
};
|
||||
@@ -864,7 +871,7 @@ const exportStu = () => {
|
||||
}
|
||||
};
|
||||
|
||||
//批量操作 结业、通过、拒绝等
|
||||
//批量操作 结业、拒绝等
|
||||
const updateStatus = (status, id) => {
|
||||
if (!id && stuSelectKeys.value.length === 0) {
|
||||
message.warning("请选择学员");
|
||||
@@ -889,7 +896,19 @@ const updateStatus = (status, id) => {
|
||||
console.log("批量更新学员状态失败", err);
|
||||
});
|
||||
};
|
||||
|
||||
//批量通过
|
||||
const auditStatus = (status, id) => {
|
||||
if (!id && stuSelectKeys.value.length === 0) {
|
||||
message.warning("请选择学员");
|
||||
}
|
||||
auditStudentBatch({
|
||||
ids: id ? [id] : stuSelectKeys.value,
|
||||
status
|
||||
}).then(() => {
|
||||
getStuList();
|
||||
stuSelectKeys.value = [];
|
||||
});
|
||||
};
|
||||
//导入学员
|
||||
const AddImpStuvisible = ref(false); //导入学员抽屉
|
||||
const showImpStu = () => {
|
||||
|
||||
Reference in New Issue
Block a user