添加弹窗

This commit is contained in:
zhangsir
2024-02-22 15:45:15 +08:00
parent b0a0f5811a
commit ffacb1c048

View File

@@ -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";
@@ -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;