mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
-- 复制开课and学员清空
This commit is contained in:
22
src/App.vue
22
src/App.vue
@@ -140,6 +140,28 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<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 {
|
#app {
|
||||||
// font-family: MicrosoftYaHei, Microsoft YaHei, Avenir, Helvetica, Arial,
|
// font-family: MicrosoftYaHei, Microsoft YaHei, Avenir, Helvetica, Arial,
|
||||||
// sans-serif;
|
// 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,
|
completeType: item.completeType,
|
||||||
endTime: new Date(item.endTime) / 1000,
|
endTime: new Date(item.endTime) / 1000,
|
||||||
evalFlag: item.evalFlag,
|
evalFlag: item.evalFlag,
|
||||||
name: '复制'+item.name,
|
name: item.name+'1',
|
||||||
signFlag: item.signFlag, //是否允许未报名的签到:1是0否
|
signFlag: item.signFlag, //是否允许未报名的签到:1是0否
|
||||||
//signWordFlag: item.signWordFlag, //签到是否需要口令:1是0否
|
//signWordFlag: item.signWordFlag, //签到是否需要口令:1是0否
|
||||||
teacherId: item.teacherId,
|
teacherId: item.teacherId,
|
||||||
@@ -4765,7 +4765,7 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
const postData = {
|
const postData = {
|
||||||
offcourseId: null, //不传代表新增
|
offcourseId: null, //不传代表新增
|
||||||
name: '复制'+item.name,
|
name: item.name+'1',
|
||||||
picUrl: item.picUrl,
|
picUrl: item.picUrl,
|
||||||
targetUser: item.targetUser,
|
targetUser: item.targetUser,
|
||||||
meaning: item.meaning,
|
meaning: item.meaning,
|
||||||
|
|||||||
@@ -635,6 +635,7 @@
|
|||||||
<span class="th">{{ tableDataTotal }}</span>
|
<span class="th">{{ tableDataTotal }}</span>
|
||||||
<span class="yi"> 条</span>
|
<span class="yi"> 条</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear" @click="clearChooseStu">清空</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tableBox" style="margin-top: 30px">
|
<div class="tableBox" style="margin-top: 30px">
|
||||||
<a-table
|
<a-table
|
||||||
@@ -1279,6 +1280,7 @@ import * as api from "../../api/index1";
|
|||||||
import { editRoutered } from "../../api/indexLearningPath";
|
import { editRoutered } from "../../api/indexLearningPath";
|
||||||
import { codeUrl } from "../../api/method";
|
import { codeUrl } from "../../api/method";
|
||||||
import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
|
import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
|
||||||
|
import * as student from "@/api/student";
|
||||||
export default {
|
export default {
|
||||||
name: "LevelAdd",
|
name: "LevelAdd",
|
||||||
components: {
|
components: {
|
||||||
@@ -2249,9 +2251,22 @@ export default {
|
|||||||
};
|
};
|
||||||
state.codeInfo = obj;
|
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 {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
...toRefs(levelList),
|
...toRefs(levelList),
|
||||||
|
clearChooseStu,
|
||||||
showDeleteALLModal,
|
showDeleteALLModal,
|
||||||
closeDeleteALLModal,
|
closeDeleteALLModal,
|
||||||
tableDataFunc,
|
tableDataFunc,
|
||||||
@@ -2310,6 +2325,14 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.clear {
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #387df7;
|
||||||
|
line-height: 24px;
|
||||||
|
position: absolute;
|
||||||
|
right: 60px;
|
||||||
|
}
|
||||||
.pub {
|
.pub {
|
||||||
.ant-modal {
|
.ant-modal {
|
||||||
.ant-modal-body {
|
.ant-modal-body {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user