|
|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="import" @click="dialogVisible = true">
|
|
|
|
|
<div class="import" @click="openKnowledge">
|
|
|
|
|
<img src="@/assets/images/导入.png" alt="" />
|
|
|
|
|
<span style="color: #fff">任务知识导入</span>
|
|
|
|
|
</div>
|
|
|
|
|
@ -451,7 +451,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<el-dialog v-model="dialogVisible" title="任务知识导入" style="width: 1108px; height: 798px" custom-class="gdialog" >
|
|
|
|
|
<el-dialog v-model="dialogVisible" title="任务知识导入" style="width: 1108px; height: 798px" custom-class="gdialog" @close="handlClose">
|
|
|
|
|
<div style="color: #fff; margin-top: -35px; padding: 10px; padding-left: 20px">
|
|
|
|
|
<el-scrollbar height="650px">
|
|
|
|
|
<div v-html="knowledge"></div>
|
|
|
|
|
@ -477,6 +477,8 @@ import { onBeforeUnmount, onMounted } from "vue";
|
|
|
|
|
const baseUrl = import.meta.env.VITE_APP_BASE_API;
|
|
|
|
|
const dialogVisible = ref(false);
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
const timer = ref(null);
|
|
|
|
|
const timeCount = ref(0);
|
|
|
|
|
const errorNum = ref(0); //总错误次数
|
|
|
|
|
const stepError1 = ref(0);
|
|
|
|
|
const stepError2 = ref(0);
|
|
|
|
|
@ -1107,8 +1109,8 @@ const submitData = () => {
|
|
|
|
|
}
|
|
|
|
|
errorNum.value = stepError1.value + stepError2.value + step4Error.value + step5Error.value + step6Error.value + step7Error.value;
|
|
|
|
|
console.log(errorNum.value, "总错误次数");
|
|
|
|
|
if(errorNum.value > 5){
|
|
|
|
|
errorNum.value = 5
|
|
|
|
|
if (errorNum.value > 5) {
|
|
|
|
|
errorNum.value = 5;
|
|
|
|
|
}
|
|
|
|
|
portraitModel
|
|
|
|
|
.submit({
|
|
|
|
|
@ -1545,6 +1547,36 @@ const tableSpanMethod = ({ row, column, rowIndex, columnIndex }) => {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const openKnowledge = () => {
|
|
|
|
|
dialogVisible.value = true;
|
|
|
|
|
startCount();
|
|
|
|
|
};
|
|
|
|
|
const handlClose = () => {
|
|
|
|
|
console.log(111);
|
|
|
|
|
if (timer.value) {
|
|
|
|
|
clearInterval(timer.value);
|
|
|
|
|
timer.value = null;
|
|
|
|
|
}
|
|
|
|
|
console.log("阅读时长", timeCount.value + "s");
|
|
|
|
|
submitTimeCount();
|
|
|
|
|
timeCount.value = 0;
|
|
|
|
|
};
|
|
|
|
|
const startCount = () => {
|
|
|
|
|
timer.value = setInterval(() => {
|
|
|
|
|
timeCount.value++;
|
|
|
|
|
}, 1000);
|
|
|
|
|
};
|
|
|
|
|
const submitTimeCount = () => {
|
|
|
|
|
portraitModel
|
|
|
|
|
.timeCountSubmit({
|
|
|
|
|
stuScoreDetailsDTO: {
|
|
|
|
|
userId: JSON.parse(getUserInfo()).userId,
|
|
|
|
|
viewingTime: timeCount.value,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {})
|
|
|
|
|
.catch((error) => {});
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
@ -1644,7 +1676,6 @@ const tableSpanMethod = ({ row, column, rowIndex, columnIndex }) => {
|
|
|
|
|
background-color: #f5f7fa !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .el-table td {
|
|
|
|
|
padding-top: 4px;
|
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
|