作业添加进入时间

This commit is contained in:
zhangsir
2024-04-26 08:55:02 +08:00
parent 0373c1d9a2
commit e18bf55532
2 changed files with 5 additions and 4 deletions

View File

@@ -113,7 +113,7 @@ import { toDate } from "@/api/method";
const fileList = ref([]);
// const fielPath = ref(import.meta.env.VITE_FILE_PATH);
const uploadRef = ref();
const nowPageTime = Date.now()
const centerDialogVisible = ref(false);
const sbValue = ref({
content: "",
@@ -226,7 +226,7 @@ const dohomework = () => {
console.log("workId", workId, type, taskId);
router.push({
path: "/uploadwork",
query: { type: type, workId: workId, taskId: taskId },
query: { type: type, workId: workId, taskId: taskId,nowPageTime:nowPageTime },
});
};
// const open = () => {

View File

@@ -128,7 +128,7 @@ export default {
screenHeight: document.body.clientHeight, // 屏幕高度
});
const {
query: { workId, type, taskId, infoId },
query: { workId, type, taskId, infoId, nowPageTime },
} = useRoute();
const textarea = ref("");
const fileList = ref([]);
@@ -162,7 +162,8 @@ export default {
workId,
type,
taskId: taskId || infoId,
workScore: -1
workScore: -1,
submitStartTime:nowPageTime
};
console.log("obj", obj, fileList.value);
request(TASK_WORK_COMMIT, obj).then((res) => {