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 fileList = ref([]);
|
||||||
// const fielPath = ref(import.meta.env.VITE_FILE_PATH);
|
// const fielPath = ref(import.meta.env.VITE_FILE_PATH);
|
||||||
const uploadRef = ref();
|
const uploadRef = ref();
|
||||||
|
const nowPageTime = Date.now()
|
||||||
const centerDialogVisible = ref(false);
|
const centerDialogVisible = ref(false);
|
||||||
const sbValue = ref({
|
const sbValue = ref({
|
||||||
content: "",
|
content: "",
|
||||||
@@ -226,7 +226,7 @@ const dohomework = () => {
|
|||||||
console.log("workId", workId, type, taskId);
|
console.log("workId", workId, type, taskId);
|
||||||
router.push({
|
router.push({
|
||||||
path: "/uploadwork",
|
path: "/uploadwork",
|
||||||
query: { type: type, workId: workId, taskId: taskId },
|
query: { type: type, workId: workId, taskId: taskId,nowPageTime:nowPageTime },
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
// const open = () => {
|
// const open = () => {
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ export default {
|
|||||||
screenHeight: document.body.clientHeight, // 屏幕高度
|
screenHeight: document.body.clientHeight, // 屏幕高度
|
||||||
});
|
});
|
||||||
const {
|
const {
|
||||||
query: { workId, type, taskId, infoId },
|
query: { workId, type, taskId, infoId, nowPageTime },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
const textarea = ref("");
|
const textarea = ref("");
|
||||||
const fileList = ref([]);
|
const fileList = ref([]);
|
||||||
@@ -162,7 +162,8 @@ export default {
|
|||||||
workId,
|
workId,
|
||||||
type,
|
type,
|
||||||
taskId: taskId || infoId,
|
taskId: taskId || infoId,
|
||||||
workScore: -1
|
workScore: -1,
|
||||||
|
submitStartTime:nowPageTime
|
||||||
};
|
};
|
||||||
console.log("obj", obj, fileList.value);
|
console.log("obj", obj, fileList.value);
|
||||||
request(TASK_WORK_COMMIT, obj).then((res) => {
|
request(TASK_WORK_COMMIT, obj).then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user