mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
全部签到
This commit is contained in:
@@ -178,6 +178,7 @@ export const exportHomeWork = (obj) => http.get('/admin/student/exportHomeWork',
|
|||||||
export const exportHomeWorkTemplate = (obj) => http.get('/admin/student/exportHomeWorkTemplate', { params: obj })
|
export const exportHomeWorkTemplate = (obj) => http.get('/admin/student/exportHomeWorkTemplate', { params: obj })
|
||||||
//签到
|
//签到
|
||||||
export const attendanceSign = (obj) => http.post('/stu/task/attendance/sign', obj)
|
export const attendanceSign = (obj) => http.post('/stu/task/attendance/sign', obj)
|
||||||
|
export const attendanceSignAll = (obj) => http.post('/stu/task/all/sign', obj)
|
||||||
//请假
|
//请假
|
||||||
export const attendanceLeave = (obj) => http.post('/stu/task/attendance/leave', obj)
|
export const attendanceLeave = (obj) => http.post('/stu/task/attendance/leave', obj)
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnss" style="margin-top: 20px" v-if="checkPer(permissions,createId) && data?.length">
|
<div class="btnss" style="margin-top: 20px;flex-wrap: wrap;" v-if="checkPer(permissions,createId) && data?.length">
|
||||||
<div
|
<div
|
||||||
class="btn btn1"
|
class="btn btn1"
|
||||||
style="margin-right: 20px"
|
style="margin-right: 20px"
|
||||||
@@ -130,6 +130,9 @@
|
|||||||
<div class="btn btn1" @click="batchSign" style="margin-right: 20px">
|
<div class="btn btn1" @click="batchSign" style="margin-right: 20px">
|
||||||
<div class="wz">批量签到</div>
|
<div class="wz">批量签到</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="btn btn1" @click="batchSignAll" style="margin-right: 20px">
|
||||||
|
<div class="wz">全部签到</div>
|
||||||
|
</div>
|
||||||
<div class="btn btn1" @click="exportTaskStu" style="margin-right: 20px" :class="{ 'notClick': courseSelectRows.length > 0 }">
|
<div class="btn btn1" @click="exportTaskStu" style="margin-right: 20px" :class="{ 'notClick': courseSelectRows.length > 0 }">
|
||||||
<div class="img2"></div>
|
<div class="img2"></div>
|
||||||
<div class="wz">导出签到数据</div>
|
<div class="wz">导出签到数据</div>
|
||||||
@@ -183,6 +186,11 @@ const signOptions = ref([
|
|||||||
value: 0,
|
value: 0,
|
||||||
label: "请假",
|
label: "请假",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
value: 0,
|
||||||
|
label: "未签到",
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
type: {
|
type: {
|
||||||
@@ -365,7 +373,19 @@ const batchSign = () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
const batchSignAll = () => {
|
||||||
|
dialog({
|
||||||
|
content: "确定全部签到吗?",
|
||||||
|
ok: async () => {
|
||||||
|
message.success("全部签到成功");
|
||||||
|
tableRef.value.toLoading();
|
||||||
|
await api.attendanceSignAll({
|
||||||
|
courseId: offcoursePlanId.value
|
||||||
|
});
|
||||||
|
tableRef.value.fetch();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
function stuSign(text) {
|
function stuSign(text) {
|
||||||
text.record.signStatus = !text.record.signStatus;
|
text.record.signStatus = !text.record.signStatus;
|
||||||
text.record.leaveStatus = !text.record.signStatus;
|
text.record.leaveStatus = !text.record.signStatus;
|
||||||
@@ -739,7 +759,7 @@ const change = (e) => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
.img1 {
|
.img1 {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
|
|||||||
Reference in New Issue
Block a user