mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-14 05:16:47 +08:00
fix:增加项目详情当项目结束时候任务得提示及跳转到对应任务页面隐藏判断
This commit is contained in:
@@ -48,12 +48,27 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="dayjs().isBefore(dayjs(data?.submitEndTime)) && dayjs(data?.submitStartTime).isBefore(dayjs())">
|
||||
<UploadImg v-model:value="fileList" ref="uploadRef">
|
||||
<button class="shangchuan" style="cursor: pointer">
|
||||
上传
|
||||
</button>
|
||||
</UploadImg>
|
||||
<div v-if="projectStatus && projectEndTime">
|
||||
<div v-if="projectStatus !==3 && new Date(projectEndTime).getTime() > new Date().getTime()" >
|
||||
<div v-if="dayjs().isBefore(dayjs(data?.submitEndTime)) && dayjs(data?.submitStartTime).isBefore(dayjs())">
|
||||
<UploadImg v-model:value="fileList" ref="uploadRef">
|
||||
<button class="shangchuan" style="cursor: pointer">
|
||||
上传
|
||||
</button>
|
||||
</UploadImg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div>
|
||||
<div v-if="dayjs().isBefore(dayjs(data?.submitEndTime)) && dayjs(data?.submitStartTime).isBefore(dayjs())">
|
||||
<UploadImg v-model:value="fileList" ref="uploadRef">
|
||||
<button class="shangchuan" style="cursor: pointer">
|
||||
上传
|
||||
</button>
|
||||
</UploadImg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uploadDetail"
|
||||
:style="{ display: showFileList && fileList && fileList.length > 0 ? 'block' : 'none' }"
|
||||
@@ -118,24 +133,41 @@
|
||||
<el-input disabled v-model="sbValue.content" :autosize="{ minRows: 12.5, maxRows: 12.5 }" resize="none"
|
||||
type="textarea" />
|
||||
</div>
|
||||
|
||||
|
||||
<div v-if="dayjs().isBefore(dayjs(data?.submitEndTime)) && dayjs(data?.submitStartTime).isBefore(dayjs())">
|
||||
<div style="display: flex; justify-content: center">
|
||||
<button class="tijiao" @click="handleClick">{{ submitList && submitList.length > 0 ? "再次" : ""
|
||||
}}提交</button>
|
||||
<div v-if="projectStatus && projectEndTime">
|
||||
<div v-if="projectStatus !==3 && new Date(projectEndTime).getTime() > new Date().getTime()" >
|
||||
<div v-if="dayjs().isBefore(dayjs(data?.submitEndTime)) && dayjs(data?.submitStartTime).isBefore(dayjs())">
|
||||
<div style="display: flex; justify-content: center">
|
||||
<button class="tijiao" @click="handleClick">{{ submitList && submitList.length > 0 ? "再次" : ""
|
||||
}}提交</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
<div style="display: flex; justify-content: center">
|
||||
<button disabled class="tijiao"
|
||||
style="background:#999;border-radius: 6px;cursor: not-allowed;">未到开始时间</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
<div style="display: flex; justify-content: center">
|
||||
<button disabled class="tijiao"
|
||||
style="background:#999;border-radius: 6px;cursor: not-allowed;">未到开始时间</button>
|
||||
<div>
|
||||
<div v-if="dayjs().isBefore(dayjs(data?.submitEndTime)) && dayjs(data?.submitStartTime).isBefore(dayjs())">
|
||||
<div style="display: flex; justify-content: center">
|
||||
<button class="tijiao" @click="handleClick">{{ submitList && submitList.length > 0 ? "再次" : ""
|
||||
}}提交</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
<div style="display: flex; justify-content: center">
|
||||
<button disabled class="tijiao"
|
||||
style="background:#999;border-radius: 6px;cursor: not-allowed;">未到开始时间</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class=""></div>
|
||||
|
||||
<div class="title" style="margin-top: 0px">
|
||||
@@ -261,7 +293,7 @@ const returnclick = () => {
|
||||
router.back();
|
||||
};
|
||||
const {
|
||||
query: { courseId: workId, type, id: taskId, pName, sName },
|
||||
query: { courseId: workId, type, id: taskId, pName, sName, projectStatus, projectEndTime},
|
||||
} = useRoute();
|
||||
|
||||
const { data } = taskId && taskId !== 'undefined' ? useRequest(TASK_WORK_DETAIL, { workId, taskId }) : useRequest(TASK_WORK_DETAIL, { workId });
|
||||
|
||||
Reference in New Issue
Block a user