-- 复制开课and学员清空

This commit is contained in:
yuping
2022-12-08 23:43:50 +08:00
parent b46395410a
commit b9bab9475e
5 changed files with 897 additions and 843 deletions

View File

@@ -635,6 +635,7 @@
<span class="th">{{ tableDataTotal }}</span>
<span class="yi"> </span>
</div>
<div class="clear" @click="clearChooseStu">清空</div>
</div>
<div class="tableBox" style="margin-top: 30px">
<a-table
@@ -1279,6 +1280,7 @@ import * as api from "../../api/index1";
import { editRoutered } from "../../api/indexLearningPath";
import { codeUrl } from "../../api/method";
import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
import * as student from "@/api/student";
export default {
name: "LevelAdd",
components: {
@@ -2249,9 +2251,22 @@ export default {
};
state.codeInfo = obj;
};
//清空所选的学员
const clearChooseStu = () => {
Modal.confirm({
title: '确定清空所有学员吗?', onOk: async () => {
state.addAuthList = []
// student.studentDelAll({id: state.routerId, type: 2})
// state.tabledata = []
// state.tableDataTotal = 0;
}, bodyStyle: 'margin-top:70%'
});
};
return {
...toRefs(state),
...toRefs(levelList),
clearChooseStu,
showDeleteALLModal,
closeDeleteALLModal,
tableDataFunc,
@@ -2310,6 +2325,14 @@ export default {
};
</script>
<style lang="scss">
.clear {
cursor: pointer;
font-size: 14px;
color: #387df7;
line-height: 24px;
position: absolute;
right: 60px;
}
.pub {
.ant-modal {
.ant-modal-body {