mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
-- fix bug
This commit is contained in:
@@ -42,9 +42,7 @@
|
||||
style="width: 260px; height: 40px"
|
||||
placeholder="是否为优秀学员"
|
||||
:options="topFlagList"
|
||||
@change="selectProjectName"
|
||||
allowClear
|
||||
showSearch
|
||||
></a-select>
|
||||
</div>
|
||||
</a-form-item>
|
||||
@@ -54,12 +52,13 @@
|
||||
class="cus-btn"
|
||||
style="background: #4ea6ff; color: #fff; width: 100px"
|
||||
@click="getStuList"
|
||||
:loading="stuAsyncLoading"
|
||||
>
|
||||
<template #icon>
|
||||
<img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/courseManage/search0.png"
|
||||
/></template>
|
||||
/></template>
|
||||
搜索
|
||||
</a-button>
|
||||
</a-col>
|
||||
@@ -69,7 +68,7 @@
|
||||
<img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/courseManage/reset0.png"
|
||||
/></template>
|
||||
/></template>
|
||||
重置
|
||||
</a-button>
|
||||
</a-col>
|
||||
@@ -90,9 +89,9 @@
|
||||
>
|
||||
<a-button class="cus-btn" style="background: #4ea6ff; color: #fff">
|
||||
<template #icon
|
||||
><img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/courseManage/add0.png"
|
||||
><img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/courseManage/add0.png"
|
||||
/></template>
|
||||
添加学员
|
||||
</a-button>
|
||||
@@ -102,9 +101,9 @@
|
||||
<a-col :span="1.5" v-if="type === 1 || type === 2">
|
||||
<a-button class="cus-btn white" @click="showImpStu">
|
||||
<template #icon
|
||||
><img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/basicinfo/in.png"
|
||||
><img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/basicinfo/in.png"
|
||||
/></template>
|
||||
导入学员
|
||||
</a-button>
|
||||
@@ -129,9 +128,9 @@
|
||||
<a-col :span="1.5">
|
||||
<a-button class="cus-btn white" @click="bathDel">
|
||||
<template #icon
|
||||
><img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/projectadd/delete1.png"
|
||||
><img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/projectadd/delete1.png"
|
||||
/></template>
|
||||
批量删除
|
||||
</a-button>
|
||||
@@ -223,13 +222,15 @@
|
||||
v-if="type === 3 && record.status !== 0 && checkPer(permissions)"
|
||||
@click="updateStatus(0, record.id)"
|
||||
type="link"
|
||||
>通过</a-button
|
||||
>通过
|
||||
</a-button
|
||||
>
|
||||
<a-button
|
||||
v-if="type === 3 && record.status !== 0 && checkPer(permissions)"
|
||||
@click="updateStatus(2, record.id)"
|
||||
type="link"
|
||||
>拒绝</a-button
|
||||
>拒绝
|
||||
</a-button
|
||||
>
|
||||
<a-button
|
||||
v-if="checkPer(permissions)"
|
||||
@@ -237,7 +238,8 @@
|
||||
@click="del(record.id, record)"
|
||||
type="link"
|
||||
danger
|
||||
>删除</a-button
|
||||
>删除
|
||||
</a-button
|
||||
>
|
||||
</a-space>
|
||||
</template>
|
||||
@@ -387,21 +389,20 @@
|
||||
</a-modal>
|
||||
</template>
|
||||
<script setup>
|
||||
import { computed, defineProps, onMounted, ref, watch } from "vue";
|
||||
import { delStudentList, getStuPage, batchUpdateStatus } from "@/api/index1";
|
||||
import {computed, defineProps, onMounted, ref, watch} from "vue";
|
||||
import {delStudentList, getStuPage, batchUpdateStatus} from "@/api/index1";
|
||||
import ChangeGroupModal from "@/components/student/ChangeGroupModal.vue";
|
||||
import CommonStudent from "@/components/student/CommonStudent";
|
||||
import ChangeLevelModal from "./ChangeLevelModal.vue";
|
||||
import { message } from "ant-design-vue";
|
||||
// import { topStudent } from "../../api/indexProjStu";
|
||||
import {message} from "ant-design-vue";
|
||||
import SeeStu from "../../components/drawers/SeeStu";
|
||||
import EScore from "../drawers/ExportScore.vue";
|
||||
import OrgClass from "@/components/project/OrgClass";
|
||||
import ExportHomeWork from "../Modals/ExportHomeWork.vue";
|
||||
import * as api from "../../api/index1";
|
||||
import ImpStu from "../drawers/AddLevelImportStu";
|
||||
// import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
|
||||
import { checkPer } from "@/utils/utils";
|
||||
import {checkPer} from "@/utils/utils";
|
||||
import {useAsyncStu} from "@/utils/useCommon";
|
||||
|
||||
const props = defineProps({
|
||||
type: Number,
|
||||
@@ -435,6 +436,9 @@ const props = defineProps({
|
||||
default: () => [],
|
||||
},
|
||||
});
|
||||
|
||||
const { loading: stuAsyncLoading, start } = useAsyncStu(props.id, props.type, getStuList);
|
||||
|
||||
const topFlagList = ref([
|
||||
{
|
||||
id: 0,
|
||||
@@ -541,8 +545,8 @@ function allDepartShow(a, b) {
|
||||
a == "" || a == null || a == undefined
|
||||
? (a = "")
|
||||
: a.slice(0, 1) == "/"
|
||||
? a.slice(1, a.length)
|
||||
: a;
|
||||
? a.slice(1, a.length)
|
||||
: a;
|
||||
let depart = b == "" || b == null || b == undefined ? (b = "") : b;
|
||||
let allname = org == "" && depart == "" ? "-" : org + depart;
|
||||
return allname;
|
||||
@@ -680,11 +684,12 @@ function bathDel() {
|
||||
);
|
||||
}
|
||||
tableData.value.loading = true;
|
||||
delStudentList({ ids: stuSelectKeys.value,type:props.type,targetId:props.id }).then(() => getStuList());
|
||||
delStudentList({ ids: stuSelectKeys.value, type: props.type, targetId: props.id }).then(() => getStuList());
|
||||
}
|
||||
|
||||
const deleteModalVisible = ref(false);
|
||||
const deleteId = ref(null);
|
||||
|
||||
function del(id, row) {
|
||||
if (row.isLeader === "1") {
|
||||
return message.warning("" + row.name + "是小组长,请勿删除!");
|
||||
@@ -707,6 +712,7 @@ function del(id, row) {
|
||||
// },
|
||||
// });
|
||||
}
|
||||
|
||||
//确定删除
|
||||
const sureSameModal = () => {
|
||||
if (deleteId.value) {
|
||||
@@ -724,6 +730,7 @@ const closeSameModal = () => {
|
||||
function submitCall(flag) {
|
||||
tableData.value.loading = true;
|
||||
flag && getStuList();
|
||||
flag && start();
|
||||
}
|
||||
|
||||
// 调整关卡;
|
||||
@@ -885,9 +892,11 @@ const AddImpStuvisibleClose = (isget) => {
|
||||
getStuList();
|
||||
}
|
||||
};
|
||||
|
||||
function startLoading() {
|
||||
tableData.value.loading = true;
|
||||
}
|
||||
|
||||
defineExpose({ getStuList, startLoading });
|
||||
</script>
|
||||
<style lang="scss">
|
||||
@@ -967,8 +976,8 @@ defineExpose({ getStuList, startLoading });
|
||||
width: calc(100%);
|
||||
height: 40px;
|
||||
background: linear-gradient(
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1101,8 +1110,8 @@ defineExpose({ getStuList, startLoading });
|
||||
width: calc(100%);
|
||||
height: 68px;
|
||||
background: linear-gradient(
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1194,11 +1203,13 @@ defineExpose({ getStuList, startLoading });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ant-modal-close-x {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*.delete {
|
||||
z-index: 9999;
|
||||
width: 424px;
|
||||
|
||||
Reference in New Issue
Block a user