mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 17:36:45 +08:00
作业添加进入时间
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user