mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
签到
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
@after-visible-change="afterVisibleChange">
|
@after-visible-change="afterVisibleChange">
|
||||||
<div class="drawerMain">
|
<div class="drawerMain">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="headerTitle">【{{ datasource.type == 6 ? "直播" : "活动" }}】考勤1</div>
|
<div class="headerTitle">【{{ datasource.type == 6 ? "直播" : "活动" }}】考勤</div>
|
||||||
<img style="width: 29px; height: 29px; cursor: pointer" src="../../assets/images/basicinfo/close.png"
|
<img style="width: 29px; height: 29px; cursor: pointer" src="../../assets/images/basicinfo/close.png"
|
||||||
@click="closeDrawer" />
|
@click="closeDrawer" />
|
||||||
</div>
|
</div>
|
||||||
@@ -243,6 +243,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
|
debugger
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
Evisible: false, //录入成绩抽屉
|
Evisible: false, //录入成绩抽屉
|
||||||
name: null,
|
name: null,
|
||||||
@@ -689,15 +690,17 @@ export default {
|
|||||||
<div class="opa" style='display:flex;justify-content:center;align-items:center;'>
|
<div class="opa" style='display:flex;justify-content:center;align-items:center;'>
|
||||||
<div
|
<div
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
debugger
|
||||||
{/* debugger */ }
|
{/* debugger */ }
|
||||||
console.log("点击签到", value);
|
console.log("点击签到", value);
|
||||||
// 获取当前时间
|
// 获取当前时间
|
||||||
{/* showsingleqdModal(); */ }
|
{/* showsingleqdModal(); */ }
|
||||||
{/* AttendanceSign */ }
|
{/* AttendanceSign */ }
|
||||||
|
|
||||||
let obj = {
|
|
||||||
|
let obj1 = {
|
||||||
courseId: Number(props.datasource.courseId),
|
courseId: Number(props.datasource.courseId),
|
||||||
routerId: Number(props.datasource.routerId),
|
routerId: Number(props.datasource.projectId),
|
||||||
ids: [value.record.studentId],
|
ids: [value.record.studentId],
|
||||||
taskId: Number(props.datasource.id),
|
taskId: Number(props.datasource.id),
|
||||||
taskType: Number(props.datasource.type),
|
taskType: Number(props.datasource.type),
|
||||||
@@ -706,15 +709,16 @@ export default {
|
|||||||
|
|
||||||
let obj2 = {
|
let obj2 = {
|
||||||
courseId: Number(props.datasource.courseId),
|
courseId: Number(props.datasource.courseId),
|
||||||
routerId: Number(props.datasource.projectId),
|
routerId: Number(props.datasource.routerId),
|
||||||
ids: [value.record.studentId],
|
ids: [value.record.studentId],
|
||||||
taskId: Number(props.datasource.id),
|
taskId: Number(props.datasource.id),
|
||||||
taskType: Number(props.datasource.type),
|
taskType: Number(props.datasource.type),
|
||||||
type: 2,
|
type: 2,
|
||||||
};
|
};
|
||||||
console.log(obj, obj2)
|
// 1是项目 2路径图 3开课
|
||||||
|
console.log(obj1, obj2)
|
||||||
state.tableDataTotalLoading = true;
|
state.tableDataTotalLoading = true;
|
||||||
api.AttendanceSign(props.types == 1 ? obj : obj2).then(res => {
|
api.AttendanceSign(props.types === 1 ? obj1 : obj2).then(res => {
|
||||||
console.log('res----签到是否成功', res)
|
console.log('res----签到是否成功', res)
|
||||||
message.destroy()
|
message.destroy()
|
||||||
message.info('签到成功')
|
message.info('签到成功')
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ export default {
|
|||||||
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
|
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
|
||||||
});
|
});
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
|
|
||||||
ctx.emit("closeDraw", true);
|
ctx.emit("closeDraw", true);
|
||||||
ctx.emit("update:TaskFaceImpStuvisible", false);
|
ctx.emit("update:TaskFaceImpStuvisible", false);
|
||||||
state.fileList = [];
|
state.fileList = [];
|
||||||
@@ -719,4 +719,4 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ export default {
|
|||||||
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
|
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
|
||||||
});
|
});
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
|
|
||||||
ctx.emit("closeDraw", true);
|
ctx.emit("closeDraw", true);
|
||||||
ctx.emit("update:TaskFaceImpStuvisible", false);
|
ctx.emit("update:TaskFaceImpStuvisible", false);
|
||||||
state.fileList = [];
|
state.fileList = [];
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
<div class="curloading">
|
<div class="curloading">
|
||||||
<div style="color: #387df7; margin-left: 20px; cursor: pointer"
|
<div style="color: #387df7; margin-left: 20px; cursor: pointer"
|
||||||
v-if="file.uploadState?.status === 'FAILED'" @click="downloadErrorData(file.uploadState?.url)">
|
v-if="file.uploadState?.status === 'FAILED'" @click="downloadErrorData(file.uploadState?.url)">
|
||||||
下载失败数据
|
下载失败数据1
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -136,7 +136,7 @@ function downTemplate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function downloadErrorData(url) {
|
function downloadErrorData(url) {
|
||||||
window.open(process.env.VUE_APP_BASE_API + url)
|
window.open(process.env.VUE_APP_FILE_PATH + url)
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleChange({file}) {
|
function handleChange({file}) {
|
||||||
@@ -481,4 +481,4 @@ function handleChange({file}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -324,7 +324,7 @@
|
|||||||
<!-- 路径管理 -->
|
<!-- 路径管理 -->
|
||||||
<div style="flex: 1">
|
<div style="flex: 1">
|
||||||
<div class="onerow">
|
<div class="onerow">
|
||||||
<div class="taskmain">任务大纲</div>
|
<div class="taskmain">任务大纲2</div>
|
||||||
<ImpoterGroupLeader title="批量面授报名" :data="{targetId:routerId,type:2}" :url="`/admin/offcourse/importCourse`" :template-url="`/admin/router/exportTaskCoursePlan/${routerId}?type=1&taskType=2&thirdType=3`">
|
<ImpoterGroupLeader title="批量面授报名" :data="{targetId:routerId,type:2}" :url="`/admin/offcourse/importCourse`" :template-url="`/admin/router/exportTaskCoursePlan/${routerId}?type=1&taskType=2&thirdType=3`">
|
||||||
<button class="btn">批量面授报名</button>
|
<button class="btn">批量面授报名</button>
|
||||||
</ImpoterGroupLeader>
|
</ImpoterGroupLeader>
|
||||||
@@ -1077,7 +1077,7 @@
|
|||||||
v-model:AAvisible="AAvisible"
|
v-model:AAvisible="AAvisible"
|
||||||
:datasource="liveData"
|
:datasource="liveData"
|
||||||
:title="showKaoqinText"
|
:title="showKaoqinText"
|
||||||
types="1"
|
types="2"
|
||||||
classify="2"
|
classify="2"
|
||||||
/>
|
/>
|
||||||
<!-- 时间管理抽屉 -->
|
<!-- 时间管理抽屉 -->
|
||||||
|
|||||||
@@ -444,7 +444,7 @@
|
|||||||
<div style="flex: 1">
|
<div style="flex: 1">
|
||||||
<div class="split"></div>
|
<div class="split"></div>
|
||||||
<div class="onerow">
|
<div class="onerow">
|
||||||
<div class="taskmain">任务大纲</div>
|
<div class="taskmain">任务大纲1</div>
|
||||||
<ImpoterGroupLeader
|
<ImpoterGroupLeader
|
||||||
title="批量面授报名"
|
title="批量面授报名"
|
||||||
:data="{ targetId: projectId, type: 1 }"
|
:data="{ targetId: projectId, type: 1 }"
|
||||||
@@ -1578,7 +1578,7 @@
|
|||||||
v-model:AAvisible="AAvisible"
|
v-model:AAvisible="AAvisible"
|
||||||
:datasource="liveData"
|
:datasource="liveData"
|
||||||
:title="showKaoqinText"
|
:title="showKaoqinText"
|
||||||
types="2"
|
types="1"
|
||||||
classify="2"
|
classify="2"
|
||||||
/>
|
/>
|
||||||
<!-- 概览(无数据)-项目发布弹窗 -->
|
<!-- 概览(无数据)-项目发布弹窗 -->
|
||||||
@@ -3151,6 +3151,7 @@ export default {
|
|||||||
}
|
}
|
||||||
//考勤的抽屉
|
//考勤的抽屉
|
||||||
const showAA = (course, a, data) => {
|
const showAA = (course, a, data) => {
|
||||||
|
debugger
|
||||||
state.AAvisible = true;
|
state.AAvisible = true;
|
||||||
state.liveData = data;
|
state.liveData = data;
|
||||||
state.showKaoqinText = "直播";
|
state.showKaoqinText = "直播";
|
||||||
|
|||||||
Reference in New Issue
Block a user