mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
提交导出
This commit is contained in:
@@ -410,22 +410,22 @@ export default {
|
|||||||
debugger
|
debugger
|
||||||
console.log("计算签到时间", props.datasource);
|
console.log("计算签到时间", props.datasource);
|
||||||
let beginTime = new Date(props.datasource.startTime).getTime();
|
let beginTime = new Date(props.datasource.startTime).getTime();
|
||||||
let endTime = !props.datasource.info.afterSignIn
|
let endTime = !props.datasource.afterStart
|
||||||
? new Date(props.datasource.endTime).getTime()
|
? new Date(props.datasource.endTime).getTime()
|
||||||
: new Date(props.datasource.startTime).getTime();
|
: new Date(props.datasource.startTime).getTime();
|
||||||
|
|
||||||
if (props.datasource.info.beforeSignIn && props.datasource.info.afterSignIn) {
|
if (props.datasource.beforeStart && props.datasource.afterStart) {
|
||||||
//有开始前有开始后
|
//有开始前有开始后
|
||||||
beginTime = beginTime - props.datasource.info.beforeSignIn * 60 * 1000;
|
beginTime = beginTime - props.datasource.beforeStart * 60 * 1000;
|
||||||
endTime = endTime + props.datasource.info.afterSignIn * 60 * 1000;
|
endTime = endTime + props.datasource.afterStart * 60 * 1000;
|
||||||
console.log("1111", beginTime, endTime);
|
console.log("1111", beginTime, endTime);
|
||||||
} else if (props.datasource.info.beforeSignIn && !props.datasource.info.afterSignIn) {
|
} else if (props.datasource.beforeStart && !props.datasource.afterStart) {
|
||||||
//只有开始前无开始后
|
//只有开始前无开始后
|
||||||
beginTime = beginTime - props.datasource.info.beforeSignIn * 60 * 1000;
|
beginTime = beginTime - props.datasource.beforeStart * 60 * 1000;
|
||||||
console.log("11112222", beginTime);
|
console.log("11112222", beginTime);
|
||||||
} else if (!props.datasource.info.beforeSignIn && props.datasource.info.afterSignIn) {
|
} else if (!props.datasource.beforeStart && props.datasource.afterStart) {
|
||||||
//无开始前有开始后
|
//无开始前有开始后
|
||||||
endTime = endTime + props.datasource.info.afterSignIn * 60 * 1000;
|
endTime = endTime + props.datasource.afterStart * 60 * 1000;
|
||||||
console.log("1111333", endTime);
|
console.log("1111333", endTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -585,7 +585,7 @@ export default {
|
|||||||
courseId: Number(props.datasource.courseId),
|
courseId: Number(props.datasource.courseId),
|
||||||
routerId: Number(props.datasource.routerId),
|
routerId: Number(props.datasource.routerId),
|
||||||
ids: state.selectedStudents,
|
ids: state.selectedStudents,
|
||||||
taskId: Number(props.datasource.routerTaskId),
|
taskId: Number(props.datasource.id),
|
||||||
taskType: Number(props.datasource.type),
|
taskType: Number(props.datasource.type),
|
||||||
type: 1,
|
type: 1,
|
||||||
};
|
};
|
||||||
@@ -739,6 +739,7 @@ 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
|
||||||
console.log("点击签到", value);
|
console.log("点击签到", value);
|
||||||
// 获取当前时间
|
// 获取当前时间
|
||||||
{/* showsingleqdModal(); */}
|
{/* showsingleqdModal(); */}
|
||||||
@@ -748,7 +749,7 @@ export default {
|
|||||||
courseId: Number(props.datasource.courseId),
|
courseId: Number(props.datasource.courseId),
|
||||||
routerId: Number(props.datasource.routerId),
|
routerId: Number(props.datasource.routerId),
|
||||||
ids: [value.record.studentId],
|
ids: [value.record.studentId],
|
||||||
taskId: Number(props.datasource.routerTaskId),
|
taskId: Number(props.datasource.id),
|
||||||
taskType: Number(props.datasource.type),
|
taskType: Number(props.datasource.type),
|
||||||
type: 1,
|
type: 1,
|
||||||
};
|
};
|
||||||
@@ -921,7 +922,7 @@ export default {
|
|||||||
process.env.VUE_APP_BASE_API
|
process.env.VUE_APP_BASE_API
|
||||||
}/admin/student/exportTaskStudent?currentStageId=${
|
}/admin/student/exportTaskStudent?currentStageId=${
|
||||||
props.datasource.stageId
|
props.datasource.stageId
|
||||||
}&type=1&pid=${props.datasource.courseId}&thirdType=1&taskId=${props.datasource.projectTaskId}&taskType=${props.datasource.type}`
|
}&type=1&pid=${props.datasource.courseId}&thirdType=1&taskId=${props.datasource.id}&taskType=${props.datasource.type}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -449,13 +449,20 @@ const disabledRangeTime = () => ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function confirm() {
|
async function confirm() {
|
||||||
|
debugger
|
||||||
|
console.log("确定按钮:")
|
||||||
await validate().catch(({errorFields}) => {
|
await validate().catch(({errorFields}) => {
|
||||||
message.warning(errorFields[0].errors.join());
|
message.warning(errorFields[0].errors.join());
|
||||||
throw Error("数据校验不通过")
|
throw Error("数据校验不通过")
|
||||||
});
|
});
|
||||||
if (taskIndex.value === -1) {
|
if (taskIndex.value === -1) {
|
||||||
const list = props.taskList
|
let list = props.taskList
|
||||||
list.push({name: formData.value.liveName, type: props.type, info: formData.value})
|
list.push(
|
||||||
|
{name: formData.value.liveName,
|
||||||
|
type: props.type,
|
||||||
|
info: {...formData.value}
|
||||||
|
})
|
||||||
|
console.log("list:" + list)
|
||||||
} else {
|
} else {
|
||||||
const data = props.taskList[taskIndex.value]
|
const data = props.taskList[taskIndex.value]
|
||||||
data.name = formData.value.liveName
|
data.name = formData.value.liveName
|
||||||
@@ -501,9 +508,9 @@ const beforeUpload = (file) => {
|
|||||||
console.log(res.data.data,45);
|
console.log(res.data.data,45);
|
||||||
imageUrl.value = process.env.VUE_APP_FILE_PATH +res.data.data
|
imageUrl.value = process.env.VUE_APP_FILE_PATH +res.data.data
|
||||||
formData.value.liveCover =process.env.VUE_APP_FILE_PATH + res.data.data
|
formData.value.liveCover =process.env.VUE_APP_FILE_PATH + res.data.data
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// state.hasImgName = file.name;
|
// state.hasImgName = file.name;
|
||||||
// emit("src", { id: '', src: res.data.data });
|
// emit("src", { id: '', src: res.data.data });
|
||||||
}
|
}
|
||||||
@@ -780,4 +787,4 @@ const beforeUpload = (file) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -619,6 +619,7 @@ const closeChangeModal = () => {
|
|||||||
|
|
||||||
//暂存
|
//暂存
|
||||||
const temporaryStorage = async () => {
|
const temporaryStorage = async () => {
|
||||||
|
debugger
|
||||||
templateLoading.value = true
|
templateLoading.value = true
|
||||||
await request(ROUTER_DETAIL_MODIFY, routerInfo.value)
|
await request(ROUTER_DETAIL_MODIFY, routerInfo.value)
|
||||||
await getDetail()
|
await getDetail()
|
||||||
@@ -2225,4 +2226,4 @@ const cancelStorage = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -720,6 +720,7 @@ const closeDeAll = () => {
|
|||||||
|
|
||||||
//暂存
|
//暂存
|
||||||
const temporaryStorage = async () => {
|
const temporaryStorage = async () => {
|
||||||
|
debugger
|
||||||
templateLoading.value = true
|
templateLoading.value = true
|
||||||
await request(PROJECT_DETAIL_MODIFY, projectInfo.value)
|
await request(PROJECT_DETAIL_MODIFY, projectInfo.value)
|
||||||
await getTask()
|
await getTask()
|
||||||
@@ -728,6 +729,7 @@ const temporaryStorage = async () => {
|
|||||||
};
|
};
|
||||||
//确定
|
//确定
|
||||||
const submitStorage = async () => {
|
const submitStorage = async () => {
|
||||||
|
debugger
|
||||||
confirmLoading.value = true
|
confirmLoading.value = true
|
||||||
projectInfo.value.projectInfo.status === 3 ? await request(PROJECT_RELEASE, {projectId: route.query.projectId}) : await request(PROJECT_DETAIL_MODIFY, projectInfo.value)
|
projectInfo.value.projectInfo.status === 3 ? await request(PROJECT_RELEASE, {projectId: route.query.projectId}) : await request(PROJECT_DETAIL_MODIFY, projectInfo.value)
|
||||||
message.success("阶段和任务数据已保存")
|
message.success("阶段和任务数据已保存")
|
||||||
|
|||||||
Reference in New Issue
Block a user