mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 09:26:46 +08:00
@@ -215,6 +215,23 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<el-dialog v-model="centerDialogVisible" title="" width="70%" center :show-close="false" :align-center="true">
|
||||
<div style="text-align: center;font-size:16px;"> <span style="color:black">
|
||||
您已完成评估
|
||||
</span></div>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button class="cancel"
|
||||
style="color: #387DF7; border: 1px solid #387DF7;padding: 8px 32px; border-radius: 4px;"
|
||||
@click="centerDialogVisible = false">取消</el-button>
|
||||
<el-button class="back"
|
||||
style="background: #387DF7;box-shadow: 1px 2px 15px 1px rgba(56,125,247,0.34);border: 0px;padding: 8px 32px;"
|
||||
type="primary" @click="centerDialogVisible = false">
|
||||
确定
|
||||
</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<!-- 提示用户有未填选项 -->
|
||||
<el-dialog v-model="isEmptyValue" title="" width="70%" center :show-close="false" :align-center="true">
|
||||
<div style="text-align: center;font-size:12px;"> <span style="color:black">
|
||||
@@ -236,7 +253,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive, toRefs, watch } from "vue";
|
||||
import { ref, reactive, toRefs, watch,onMounted } from "vue";
|
||||
import checkbox from "@/assets/image/checkbox.png";
|
||||
import checkbox2 from "@/assets/image/checkbox2.png";
|
||||
import { useRoute, useRouter } from "vue-router/dist/vue-router";
|
||||
@@ -259,7 +276,7 @@ const {
|
||||
type,
|
||||
chapterOrStageId,
|
||||
projectStatus,
|
||||
projectEndTime,
|
||||
projectEndTime,
|
||||
},
|
||||
} = useRoute();
|
||||
const router = useRouter();
|
||||
@@ -367,7 +384,19 @@ function orderArr(a, b) {
|
||||
}
|
||||
return arrs;
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
useRequest(
|
||||
ASSESSMENT_QUERY(courseId),{
|
||||
id: courseId,
|
||||
type,
|
||||
chapterOrStageId,
|
||||
targetId: infoId ? infoId : 0,
|
||||
},(res)=>{
|
||||
if (res.data.isSubmit) {
|
||||
open();
|
||||
}
|
||||
})
|
||||
});
|
||||
const centerDialogVisible = ref(false);
|
||||
const open = () => {
|
||||
centerDialogVisible.value = true;
|
||||
|
||||
Reference in New Issue
Block a user