mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
-- 复制开课and学员清空
This commit is contained in:
22
src/App.vue
22
src/App.vue
@@ -140,6 +140,28 @@ export default defineComponent({
|
||||
});
|
||||
</script>
|
||||
<style lang="scss">
|
||||
//.ant-modal {
|
||||
//
|
||||
// .ant-modal-content {
|
||||
// background-image: linear-gradient(
|
||||
// 180deg, rgba(103, 64, 255, .2), rgba(166, 168, 255, 0), rgba(166, 168, 255, 0)) !important;
|
||||
// border-radius: 4px;
|
||||
//
|
||||
// .ant-modal-body {
|
||||
// .ant-btn {
|
||||
// border-radius: 8px;
|
||||
// width: 100px;
|
||||
// height: 40px;
|
||||
// }
|
||||
//
|
||||
// .ant-btn-primary {
|
||||
// background: #4ea6ff;
|
||||
// color: #fff;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
#app {
|
||||
// font-family: MicrosoftYaHei, Microsoft YaHei, Avenir, Helvetica, Arial,
|
||||
// sans-serif;
|
||||
|
||||
4
src/api/student.js
Normal file
4
src/api/student.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import http from "./config";
|
||||
|
||||
export const studentDelAll = (params) => http.get('/admin/student/del', {params})
|
||||
|
||||
@@ -4741,7 +4741,7 @@ export default defineComponent({
|
||||
completeType: item.completeType,
|
||||
endTime: new Date(item.endTime) / 1000,
|
||||
evalFlag: item.evalFlag,
|
||||
name: '复制'+item.name,
|
||||
name: item.name+'1',
|
||||
signFlag: item.signFlag, //是否允许未报名的签到:1是0否
|
||||
//signWordFlag: item.signWordFlag, //签到是否需要口令:1是0否
|
||||
teacherId: item.teacherId,
|
||||
@@ -4765,7 +4765,7 @@ export default defineComponent({
|
||||
});
|
||||
const postData = {
|
||||
offcourseId: null, //不传代表新增
|
||||
name: '复制'+item.name,
|
||||
name: item.name+'1',
|
||||
picUrl: item.picUrl,
|
||||
targetUser: item.targetUser,
|
||||
meaning: item.meaning,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user