|
@@ -19,9 +19,6 @@ import { evaluateDifficult } from '/src/utils/contants';
|
|
|
import dayjs from 'dayjs';
|
|
|
import CommentWork from '../../studentList/modals/comment-work';
|
|
|
import WorkItem from '../work-item';
|
|
|
-import request from '/src/utils/request';
|
|
|
-import CardPreview from '/src/components/card-preview';
|
|
|
-import { iframeDislableKeyboard } from '/src/utils';
|
|
|
export default defineComponent({
|
|
|
props: {
|
|
|
activeRow: {
|
|
@@ -52,7 +49,6 @@ export default defineComponent({
|
|
|
const showModalMask = ref(false);
|
|
|
// const message = useMessage();
|
|
|
// const foemsRef = ref();
|
|
|
- const file_expire_time = ref<any>(null);
|
|
|
const typeFormat = (trainingType: string, configJson: any) => {
|
|
|
let tList: string[] = [];
|
|
|
|
|
@@ -107,24 +103,7 @@ export default defineComponent({
|
|
|
};
|
|
|
expose({ getTrainingDetail });
|
|
|
|
|
|
- const getDefaultParamConfig = async () => {
|
|
|
- try {
|
|
|
- const { data } = await request.get(
|
|
|
- '/edu-app/open/paramConfig/queryByParamName',
|
|
|
- {
|
|
|
- params: {
|
|
|
- paramName: 'homework_file_expire_time'
|
|
|
- }
|
|
|
- }
|
|
|
- );
|
|
|
- file_expire_time.value = data.paramValue || 0;
|
|
|
- } catch {
|
|
|
- //
|
|
|
- }
|
|
|
- };
|
|
|
-
|
|
|
onMounted(() => {
|
|
|
- getDefaultParamConfig();
|
|
|
getTrainingDetail(props.activeRow.studentLessonTrainingId);
|
|
|
});
|
|
|
|
|
@@ -198,7 +177,7 @@ export default defineComponent({
|
|
|
<div class={styles.expireDateTip}>
|
|
|
<i class={styles.expireDateIcon}></i>
|
|
|
<span>
|
|
|
- 作业截止{file_expire_time.value}
|
|
|
+ 作业截止{studnetInfo.value.fileExpireDay || 0}
|
|
|
天后,学生上传的文件将过期,请及时查看
|
|
|
</span>
|
|
|
</div>
|