dev-QQq
方佳 博 2 years ago
parent de234bcef2
commit a0fba951f7

@ -67,6 +67,7 @@
import { ref, reactive } from "vue"; import { ref, reactive } from "vue";
import * as AI from "@/api/AI.js"; import * as AI from "@/api/AI.js";
import {getAssetsFile} from "@/utils/index.js" import {getAssetsFile} from "@/utils/index.js"
import { getUserInfo } from '@/utils/auth'
const input = ref(""); const input = ref("");
const butFlag = ref(false); const butFlag = ref(false);
const messages = reactive([]); const messages = reactive([]);
@ -130,7 +131,7 @@ const sendText = async() => {
}, },
name: "", name: "",
role: "user", role: "user",
userId: "512", userId: JSON.parse(getUserInfo()).userId,
}, },
]; ];
const messageId = Date.now(); const messageId = Date.now();

@ -204,7 +204,8 @@
</div> </div>
</template> </template>
<script setup> <script setup>
// import { getUserId, getToken } from "@/utils/auth.js"; // import { getUserId, getToken } from "@/utils/auth.js";\
import { getUserInfo,getToken } from '@/utils/auth'
import * as commonality from "@/api/commonality.js"; import * as commonality from "@/api/commonality.js";
import {getAssetsFile} from '@/utils/index.js' import {getAssetsFile} from '@/utils/index.js'
import { ref } from "vue"; import { ref } from "vue";
@ -235,7 +236,7 @@ const Identifyimg=ref('szjj/setpt2.png')
const dialogShowbtn = () => { const dialogShowbtn = () => {
getlist(); getlist();
if(restartCount.value>0) return if(restartCount.value>0) return
commonality.getImgEcho({module:'图像识别',userId:'487'}).then((res) => { commonality.getImgEcho({module:'图像识别',userId:JSON.parse(getUserInfo()).userId}).then((res) => {
if(res.data.length<0) return if(res.data.length<0) return
Answer.value = res.data[0].selectPicture; Answer.value = res.data[0].selectPicture;
value.value = res.data[0].selectText; value.value = res.data[0].selectText;
@ -243,10 +244,10 @@ const dialogShowbtn = () => {
}); });
}; };
const getlist = () => { const getlist = () => {
commonality.getImgList({ userId: '487', module: "图像识别" }).then((res) => { commonality.getImgList({ userId: JSON.parse(getUserInfo()).userId, module: "图像识别" }).then((res) => {
topicList.value = res.data; topicList.value = res.data;
if( topicList.value[0].studentAnswer!==null||topicList.value[0].studentAnswer!=='') step.value=1 if( topicList.value[0].studentAnswer!==null||topicList.value[0].studentAnswer!=='') step.value=1
topicList.value.userId = '487'; topicList.value.userId = JSON.parse(getUserInfo()).userId;
if(restartCount.value>0){ if(restartCount.value>0){
topicList.value.forEach((item) => { topicList.value.forEach((item) => {
item.studentAnswer = null; item.studentAnswer = null;
@ -256,7 +257,7 @@ const getlist = () => {
}; };
// //
const submit = () => { const submit = () => {
topicList.value[0].userId = '487'; topicList.value[0].userId = JSON.parse(getUserInfo()).userId;
step.value=1 step.value=1
restartCount.value=0 restartCount.value=0
commonality commonality
@ -285,7 +286,7 @@ const Choiceimg = () => {
proxy.$modal.msgSuccess("选择识别成功"); proxy.$modal.msgSuccess("选择识别成功");
dialogVisible.value = false; dialogVisible.value = false;
step.value=2 step.value=2
commonality.uploadImg({irisName:value.value||null, module: "图像识别" ,order:Answer.value||null ,userId: '487'}) commonality.uploadImg({irisName:value.value||null, module: "图像识别" ,order:Answer.value||null ,userId: JSON.parse(getUserInfo()).userId})
}; };
const selectChange = () => { const selectChange = () => {
if (Answer.value == "") { if (Answer.value == "") {
@ -293,7 +294,7 @@ const selectChange = () => {
value.value = ""; value.value = "";
return return
} }
commonality.uploadImg({irisName:value.value||null, module: "图像识别" ,order:Answer.value ||null,userId: '487'}) commonality.uploadImg({irisName:value.value||null, module: "图像识别" ,order:Answer.value ||null,userId: JSON.parse(getUserInfo()).userId})
if (Answer.value == 1 || Answer.value == 2) { if (Answer.value == 1 || Answer.value == 2) {
if(value.value=='变色鸢尾花'){ if(value.value=='变色鸢尾花'){
proxy.$modal.msgSuccess("识别成功") proxy.$modal.msgSuccess("识别成功")
@ -321,7 +322,7 @@ const submitTask = () => {
module: "人工智能", module: "人工智能",
numberOfErrors: errrCount.value > 10 ? 10 : errrCount.value , numberOfErrors: errrCount.value > 10 ? 10 : errrCount.value ,
taskName: "图像识别", taskName: "图像识别",
userId: '487', userId: JSON.parse(getUserInfo()).userId,
}) })
.then((response) => { .then((response) => {
proxy.$modal.msgSuccess("提交成功"); proxy.$modal.msgSuccess("提交成功");

@ -248,6 +248,7 @@
<script setup> <script setup>
import * as commonality from "@/api/commonality"; import * as commonality from "@/api/commonality";
// import {getUserId} from "@/utils/auth.js"; // import {getUserId} from "@/utils/auth.js";
import { getUserInfo } from '@/utils/auth'
const {proxy} = getCurrentInstance(); const {proxy} = getCurrentInstance();
const NaturallanguageprocessingVisible=ref(false) const NaturallanguageprocessingVisible=ref(false)
const text1 = ref({ const text1 = ref({
@ -389,7 +390,7 @@ const submit=()=>{
} }
handleClose() handleClose()
console.log(errorCount.value,"errorCount.value"); console.log(errorCount.value,"errorCount.value");
commonality.submitTask({module:'人工智能',numberOfErrors:errorCount.value > 10 ? 10 : errorCount.value || 0,taskName:'自然语言处理',userId:'487'}).then((response) => { commonality.submitTask({module:'人工智能',numberOfErrors:errorCount.value > 10 ? 10 : errorCount.value || 0,taskName:'自然语言处理',userId:JSON.parse(getUserInfo()).userId}).then((response) => {
proxy.$modal.msgSuccess("提交任务成功"); proxy.$modal.msgSuccess("提交任务成功");
NaturallanguageprocessingVisible.value=false NaturallanguageprocessingVisible.value=false
restartStatus.value=false restartStatus.value=false
@ -433,7 +434,7 @@ NaturallanguageprocessingVisible.value=false
// //
const handleClose = () => { const handleClose = () => {
const dataObj={ const dataObj={
userId:'487', userId:JSON.parse(getUserInfo()).userId,
stepOneA:Object.values(text1.value).join(',')||'', stepOneA:Object.values(text1.value).join(',')||'',
stepOneB:Object.values(text2.value).join(',')||'', stepOneB:Object.values(text2.value).join(',')||'',
stepOneC:answer.value.studentAnswer.join(',')||'', stepOneC:answer.value.studentAnswer.join(',')||'',
@ -453,7 +454,7 @@ const handleClose = () => {
}); });
} }
const getList=()=>{ const getList=()=>{
commonality.getNlpEcho({userId:'487'}).then((response) => { commonality.getNlpEcho({userId:JSON.parse(getUserInfo()).userId}).then((response) => {
if(restartStatus.value) return if(restartStatus.value) return
if(response.data){ if(response.data){
const data=response.data const data=response.data

@ -216,6 +216,7 @@
<script setup> <script setup>
import * as commonality from "@/api/commonality.js"; import * as commonality from "@/api/commonality.js";
// import {getUserId} from "@/utils/auth.js"; // import {getUserId} from "@/utils/auth.js";
import { getUserInfo } from '@/utils/auth'
const {proxy} = getCurrentInstance(); const {proxy} = getCurrentInstance();
const robotlearningVisible = ref(false); const robotlearningVisible = ref(false);
const TrainingSet=ref([ const TrainingSet=ref([
@ -495,7 +496,7 @@ const submit=()=>{
} }
} }
commonality.submitTask({module:'人工智能',numberOfErrors:IncorrectScoring.value > 10 ? 10 : IncorrectScoring.value || 0,taskName:'机器人学习',userId:'487'}).then((response) => { commonality.submitTask({module:'人工智能',numberOfErrors:IncorrectScoring.value > 10 ? 10 : IncorrectScoring.value || 0,taskName:'机器人学习',userId:JSON.parse(getUserInfo()).userId}).then((response) => {
proxy.$modal.msgSuccess("提交任务成功"); proxy.$modal.msgSuccess("提交任务成功");
restartStatus.value=false restartStatus.value=false
robotlearningVisible.value=false robotlearningVisible.value=false
@ -511,7 +512,7 @@ const handleCole=()=>{
dtoList.two=JSON.stringify(FemaleSubset.value), dtoList.two=JSON.stringify(FemaleSubset.value),
dtoList.three=JSON.stringify(greaterThan.value), dtoList.three=JSON.stringify(greaterThan.value),
dtoList.four=JSON.stringify(lessThan.value), dtoList.four=JSON.stringify(lessThan.value),
dtoList.userId='487' dtoList.userId=JSON.parse(getUserInfo()).userId
dtoList.subState=state.value dtoList.subState=state.value
dtoList.numberOfErrors=IncorrectScoring.value dtoList.numberOfErrors=IncorrectScoring.value
robotlearningVisible.value=false robotlearningVisible.value=false
@ -520,7 +521,7 @@ const handleCole=()=>{
}) })
} }
const getList=()=>{ const getList=()=>{
commonality.RobotECho({userId:'487'}).then(res=>{ commonality.RobotECho({userId:JSON.parse(getUserInfo()).userId}).then(res=>{
if(restartStatus.value) return if(restartStatus.value) return
MaleSubset.value=JSON.parse(res.data.stepOneA) MaleSubset.value=JSON.parse(res.data.stepOneA)
FemaleSubset.value=JSON.parse(res.data.stepOneB) FemaleSubset.value=JSON.parse(res.data.stepOneB)

@ -129,7 +129,7 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import {getToken} from "@/utils/auth.js"; import {getToken,getUserInfo} from "@/utils/auth.js";
import * as commonality from "@/api/commonality.js"; import * as commonality from "@/api/commonality.js";
const { proxy } = getCurrentInstance() const { proxy } = getCurrentInstance()
const textDialogVisible = ref(false); const textDialogVisible = ref(false);
@ -141,7 +141,7 @@ const answerRecord=ref(0)
const Step1 = ref([]); const Step1 = ref([]);
const Step2 = ref([]); const Step2 = ref([]);
const CharacterRecognitionCase=()=>{ const CharacterRecognitionCase=()=>{
commonality.getTextList({userId:'487',model:'文字识别OCR'}).then(res=>{ commonality.getTextList({userId:JSON.parse(getUserInfo()).userId,model:'文字识别OCR'}).then(res=>{
if(Step1.value.length<1&&Step2.value.length<1){ if(Step1.value.length<1&&Step2.value.length<1){
Step1.value.push(res.data[0]) Step1.value.push(res.data[0])
Step2.value.push(res.data[1]) Step2.value.push(res.data[1])
@ -176,7 +176,7 @@ const CharacterRecognitionCase=()=>{
// submitStepOne // submitStepOne
const stepOneanswer=()=>{ const stepOneanswer=()=>{
answerRecord.value=1 answerRecord.value=1
commonality.submitStepOne({userId:'487',answer:Step1.value[0].studentAnswer}).then(res=>{ commonality.submitStepOne({userId:JSON.parse(getUserInfo()).userId,answer:Step1.value[0].studentAnswer}).then(res=>{
if(res.msg.includes('错误')){ if(res.msg.includes('错误')){
errorCount.value=1 errorCount.value=1
proxy.$modal.msgError(res.msg); proxy.$modal.msgError(res.msg);
@ -196,7 +196,7 @@ const stepTwoanswer=()=>{
return proxy.$modal.msgWarning("请先下载文章图片再进行此操作") return proxy.$modal.msgWarning("请先下载文章图片再进行此操作")
} }
answerRecord.value=3 answerRecord.value=3
commonality.submitStepTwo({userId:'487',answer:Step2.value[0].studentAnswer.join(',')}).then(res=>{ commonality.submitStepTwo({userId:JSON.parse(getUserInfo()).userId,answer:Step2.value[0].studentAnswer.join(',')}).then(res=>{
if(res.msg.includes('错误')){ if(res.msg.includes('错误')){
errorCount.value=2 errorCount.value=2
proxy.$modal.msgError(res.msg); proxy.$modal.msgError(res.msg);
@ -213,7 +213,7 @@ const downloadArticle=()=>{
return proxy.$modal.msgWarning("请先完成上一步") return proxy.$modal.msgWarning("请先完成上一步")
} }
answerRecord.value=2 answerRecord.value=2
window.open(`http://szjj.sztzjy.com:9909/api/stu/experimental/downloadImg?userId=${'487'}&TOKEN=${getToken()}`) window.open(`http://szjj.sztzjy.com:9909/api/stu/experimental/downloadImg?userId=${JSON.parse(getUserInfo()).userId}&TOKEN=${getToken()}`)
} }
// //
@ -221,7 +221,7 @@ const textarea=ref('')
// //
const identifyText=()=>{ const identifyText=()=>{
const params={ const params={
userId:'487', userId:JSON.parse(getUserInfo()).userId,
context:textarea.value context:textarea.value
} }
if(answerRecord.value<3){ if(answerRecord.value<3){
@ -242,7 +242,7 @@ const submit = () => {
return proxy.$modal.msgWarning("请先完成实训") return proxy.$modal.msgWarning("请先完成实训")
} }
commonality commonality
.submitTask({module:'人工智能',numberOfErrors:errorCount.value>10?10:errorCount.value,taskName:'文字之别OCR',userId:'487'}) .submitTask({module:'人工智能',numberOfErrors:errorCount.value>10?10:errorCount.value,taskName:'文字之别OCR',userId:JSON.parse(getUserInfo()).userId})
.then((response) => { .then((response) => {
proxy.$modal.msgSuccess("提交成功"); proxy.$modal.msgSuccess("提交成功");
textDialogVisible.value=false textDialogVisible.value=false

@ -146,6 +146,7 @@
<script setup> <script setup>
import * as commonality from "@/api/commonality"; import * as commonality from "@/api/commonality";
// import {getUserId} from "@/utils/auth.js"; // import {getUserId} from "@/utils/auth.js";
import { getUserInfo } from '@/utils/auth'
const {proxy} = getCurrentInstance(); const {proxy} = getCurrentInstance();
import {getAssetsFile} from '@/utils/index.js' import {getAssetsFile} from '@/utils/index.js'
const SelectVisible=ref(false); const SelectVisible=ref(false);
@ -383,7 +384,7 @@ const submit=()=>{
proxy.$modal.msgError('请先完成所有步骤'); proxy.$modal.msgError('请先完成所有步骤');
return return
} }
commonality.submitTask({module:'人工智能',numberOfErrors:errorCount.value >10 ?10:errorCount.value,taskName:'人脸识别',userId:'487'}).then((response) => { commonality.submitTask({module:'人工智能',numberOfErrors:errorCount.value >10 ?10:errorCount.value,taskName:'人脸识别',userId:JSON.parse(getUserInfo()).userId}).then((response) => {
proxy.$modal.msgSuccess("提交任务成功"); proxy.$modal.msgSuccess("提交任务成功");
faceDialogVisible.value=false faceDialogVisible.value=false
restartStatus.value=false restartStatus.value=false
@ -404,11 +405,11 @@ const restart=()=>{
// //
const sendSelect=()=>{ const sendSelect=()=>{
let arr=IdentifyList.value.map(item=>item.id) let arr=IdentifyList.value.map(item=>item.id)
commonality.getFaceList({module:'人脸识别',order:Storage.value.id,orders:arr.join(','),userId:'487',numberOfErrors:errorCount.value}).then((response) => { commonality.getFaceList({module:'人脸识别',order:Storage.value.id,orders:arr.join(','),userId:JSON.parse(getUserInfo()).userId,numberOfErrors:errorCount.value}).then((response) => {
}) })
} }
const getList = () => { const getList = () => {
commonality.getFaceEcho({module:'人脸识别',userId:'487'}).then((response) => { commonality.getFaceEcho({module:'人脸识别',userId:JSON.parse(getUserInfo()).userId}).then((response) => {
if(response.data==null||restartStatus.value) return if(response.data==null||restartStatus.value) return
Characterphoto.value.forEach((item,index)=>{ Characterphoto.value.forEach((item,index)=>{
if(response.data.selectPicture==item.id){ if(response.data.selectPicture==item.id){

@ -397,6 +397,7 @@
</template> </template>
<script setup> <script setup>
// import { getUserId } from "@/utils/auth.js"; // import { getUserId } from "@/utils/auth.js";
import { getUserInfo } from '@/utils/auth'
import * as commonality from "@/api/commonality"; import * as commonality from "@/api/commonality";
import { getAssetsFile } from "@/utils/index.js"; import { getAssetsFile } from "@/utils/index.js";
import { onMounted, ref } from "vue"; import { onMounted, ref } from "vue";
@ -458,7 +459,7 @@ const flowobj = ref({
standardDubbing: "", standardDubbing: "",
synthesizedSpeech: 0, synthesizedSpeech: 0,
voiceSignalAcquisition: "", voiceSignalAcquisition: "",
userId: '487', userId: JSON.parse(getUserInfo()).userId,
}); });
const EchoState = ref(false); const EchoState = ref(false);
const restartState = ref(false); const restartState = ref(false);
@ -735,7 +736,7 @@ const submit = () => {
module: "人工智能", module: "人工智能",
numberOfErrors: errorCount.value > 10 ? 10 : errorCount.value, numberOfErrors: errorCount.value > 10 ? 10 : errorCount.value,
taskName: "语音技术", taskName: "语音技术",
userId: '487', userId: JSON.parse(getUserInfo()).userId,
}) })
.then((response) => { .then((response) => {
proxy.$modal.msgSuccess("提交任务成功"); proxy.$modal.msgSuccess("提交任务成功");
@ -797,7 +798,7 @@ const dialogCloick = () => {
} }
}); });
if (restartState.value) return; if (restartState.value) return;
commonality.getVoiceEcho({ userId: '487' }).then((res) => { commonality.getVoiceEcho({ userId: JSON.parse(getUserInfo()).userId }).then((res) => {
if (res.data.length == 0) return; if (res.data.length == 0) return;
if(res.data[0].subState===10){ if(res.data[0].subState===10){
EchoState.value = true; EchoState.value = true;

@ -937,6 +937,7 @@
</template> </template>
<script setup> <script setup>
// import {getUserId} from '@/utils/auth.js' // import {getUserId} from '@/utils/auth.js'
import { getUserInfo } from '@/utils/auth'
import {submitTrainingTask,trainingOperationRecords,HDFSViewOperationRecords} from '@/api/hash/digitalEconomy.js' import {submitTrainingTask,trainingOperationRecords,HDFSViewOperationRecords} from '@/api/hash/digitalEconomy.js'
import { onMounted } from 'vue'; import { onMounted } from 'vue';
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
@ -1292,7 +1293,7 @@ const sendTitle=async()=>{
module:'大数据', module:'大数据',
numberOfErrors:errorNumber > 10 ? 10 : errorNumber, numberOfErrors:errorNumber > 10 ? 10 : errorNumber,
taskName:'hadoop HDFS', taskName:'hadoop HDFS',
userId:'487' userId:JSON.parse(getUserInfo()).userId
} }
const res=await submitTrainingTask(sendData) const res=await submitTrainingTask(sendData)
proxy.$modal.msgSuccess("提交成功!") proxy.$modal.msgSuccess("提交成功!")
@ -1304,7 +1305,7 @@ const getListEcho=async()=>{
try{ try{
const sendData={ const sendData={
module:'大数据', module:'大数据',
userId:'487' userId:JSON.parse(getUserInfo()).userId
} }
const res=await HDFSViewOperationRecords(sendData) const res=await HDFSViewOperationRecords(sendData)
echoShow(res.data[0]) echoShow(res.data[0])

@ -518,6 +518,7 @@
<script setup> <script setup>
// import {getUserId} from '@/utils/auth.js' // import {getUserId} from '@/utils/auth.js'
import { getUserInfo } from '@/utils/auth'
import {submitTrainingTask,marketingReadQuestionRecords,digitalSavesAutomatically} from '@/api/hash/digitalEconomy.js' import {submitTrainingTask,marketingReadQuestionRecords,digitalSavesAutomatically} from '@/api/hash/digitalEconomy.js'
import { onMounted } from 'vue'; import { onMounted } from 'vue';
const dialogVisible = ref(false); const dialogVisible = ref(false);
@ -1081,7 +1082,7 @@ const sendTask=async()=>{
const gitListDig=async()=>{ const gitListDig=async()=>{
try{ try{
const sendData={ const sendData={
userId:'487' userId:JSON.parse(getUserInfo()).userId
} }
const res=await marketingReadQuestionRecords(sendData) const res=await marketingReadQuestionRecords(sendData)
echoData(res.data.stepEightA) echoData(res.data.stepEightA)

@ -407,6 +407,7 @@
</template> </template>
<script setup> <script setup>
// import {getUserId} from '@/utils/auth.js' // import {getUserId} from '@/utils/auth.js'
import { getUserInfo } from '@/utils/auth'
import {hadoopExperimentTraining,hadoopCleansData,hadoopEcho} from '@/api/hash/digitalEconomy.js' import {hadoopExperimentTraining,hadoopCleansData,hadoopEcho} from '@/api/hash/digitalEconomy.js'
import { watch } from 'vue'; import { watch } from 'vue';
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
@ -463,7 +464,7 @@ const clickRadio=async(item1,index1)=>{
const sendData={ const sendData={
context:englishData[selectIndex.value-1], context:englishData[selectIndex.value-1],
select:item1, select:item1,
userId:'487' userId:JSON.parse(getUserInfo()).userId
} }
const res=await hadoopExperimentTraining(sendData) const res=await hadoopExperimentTraining(sendData)
if(res.code===200){ if(res.code===200){
@ -483,7 +484,7 @@ const selectEnglish=(index)=>{
} }
watch(async()=>{ watch(async()=>{
const sendData={ const sendData={
userId:'487' userId:JSON.parse(getUserInfo()).userId
} }
const res=await hadoopCleansData(sendData) const res=await hadoopCleansData(sendData)
}) })
@ -491,7 +492,7 @@ const isOneHadoop=ref(false)
const echoHaop=async()=>{ const echoHaop=async()=>{
try{ try{
const sendData={ const sendData={
userId:'487' userId:JSON.parse(getUserInfo()).userId
} }
const res=await hadoopEcho(sendData) const res=await hadoopEcho(sendData)
if(res.data===1){ if(res.data===1){

@ -130,6 +130,7 @@
</template> </template>
<script setup> <script setup>
// import {getUserId} from '@/utils/auth.js' // import {getUserId} from '@/utils/auth.js'
import { getUserInfo } from '@/utils/auth'
import {topicPresentation,topicSelection,submitTrainingTask} from '@/api/hash/digitalEconomy.js' import {topicPresentation,topicSelection,submitTrainingTask} from '@/api/hash/digitalEconomy.js'
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const frameDialogVisible = ref(false); const frameDialogVisible = ref(false);
@ -141,7 +142,7 @@
try{ try{
const sendData={ const sendData={
module:'大数据技术框架', module:'大数据技术框架',
userId:'487' userId:JSON.parse(getUserInfo()).userId
} }
const res=await topicPresentation(sendData) const res=await topicPresentation(sendData)
data.value=res.data data.value=res.data
@ -190,7 +191,7 @@
}); });
const sendData={ const sendData={
"StuSelectDetailsDTO":{ "StuSelectDetailsDTO":{
"userId":'487', "userId":JSON.parse(getUserInfo()).userId,
"module":"大数据技术框架", "module":"大数据技术框架",
"stuSelectDTOList":nowStuSelectDTOList "stuSelectDTOList":nowStuSelectDTOList
} }
@ -250,7 +251,7 @@
module:'大数据', module:'大数据',
numberOfErrors:errorNumber > 10 ? 10 :errorNumber , numberOfErrors:errorNumber > 10 ? 10 :errorNumber ,
taskName:'大数据技术框架', taskName:'大数据技术框架',
userId:'487' userId:JSON.parse(getUserInfo()).userId
} }
const res=await submitTrainingTask(sendData) const res=await submitTrainingTask(sendData)
proxy.$modal.msgSuccess("提交成功") proxy.$modal.msgSuccess("提交成功")

@ -89,6 +89,7 @@
import {LookBlockchainComposition} from '@/api/economy/bigData.js' import {LookBlockchainComposition} from '@/api/economy/bigData.js'
import {getTopic,submitJudgmentResults} from '@/api/hash/digitalEconomy.js' import {getTopic,submitJudgmentResults} from '@/api/hash/digitalEconomy.js'
// import { getUserId } from '@/utils/auth' // import { getUserId } from '@/utils/auth'
import { getUserInfo } from '@/utils/auth'
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const mlistLength = ref(0); const mlistLength = ref(0);
const answerData=ref([]) const answerData=ref([])
@ -97,7 +98,7 @@
const newArray = []; const newArray = [];
const sendData={ const sendData={
module:'人工智能', module:'人工智能',
userId:'487' userId:JSON.parse(getUserInfo()).userId
} }
const res = await getTopic(sendData); const res = await getTopic(sendData);
mlist.value = res.data; mlist.value = res.data;
@ -299,7 +300,7 @@
module: "什么是大数据", module: "什么是大数据",
topicId: item.topicId, topicId: item.topicId,
type: item.topicType, type: item.topicType,
userId: '487' userId: JSON.parse(getUserInfo()).userId
} }
}) })
newTable.forEach( newTable.forEach(

@ -23,13 +23,12 @@
<el-table-column <el-table-column
prop="learningProjects" prop="learningProjects"
label="学习项目" label="学习项目"
width="210"
align="center" align="center"
/> />
<el-table-column <el-table-column
prop="assessmentItems" prop="assessmentItems"
label="考核项目" label="考核项目"
width="225" width="150"
align="center" align="center"
/> />
<el-table-column <el-table-column
@ -56,6 +55,11 @@
width="225" width="225"
align="center" align="center"
/> />
<el-table-column
prop="schedule"
label="进度"
align="center"
/>
<el-table-column <el-table-column
prop="scoreProject" prop="scoreProject"
label="得分" label="得分"
@ -157,7 +161,7 @@
// import {Base64} from 'js-base64' // import {Base64} from 'js-base64'
// import { useRouter } from "vue-router"; // import { useRouter } from "vue-router";
import {download} from '@/utils/request.js' import {download} from '@/utils/request.js'
import { getToken } from '@/utils/auth' import { getToken,getUserInfo } from '@/utils/auth'
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
// const router=useRouter(); // const router=useRouter();
@ -190,6 +194,7 @@
scoreProject:null, scoreProject:null,
scoreWeight:null, scoreWeight:null,
scoringCriteria:"", scoringCriteria:"",
schedule:'0%',
totalScore:100 totalScore:100
}, },
{ {
@ -199,6 +204,7 @@
scoreProject:null, scoreProject:null,
scoreWeight:null, scoreWeight:null,
scoringCriteria:"", scoringCriteria:"",
schedule:'0%',
totalScore:100 totalScore:100
}, },
{ {
@ -208,6 +214,7 @@
scoreProject:null, scoreProject:null,
scoreWeight:null, scoreWeight:null,
scoringCriteria:"", scoringCriteria:"",
schedule:'0%',
totalScore:100 totalScore:100
}, },
{ {
@ -217,6 +224,7 @@
scoreProject:null, scoreProject:null,
scoreWeight:null, scoreWeight:null,
scoringCriteria:"", scoringCriteria:"",
schedule:'0%',
totalScore:100 totalScore:100
}, },
{ {
@ -226,6 +234,7 @@
scoreProject:null, scoreProject:null,
scoreWeight:null, scoreWeight:null,
scoringCriteria:"", scoringCriteria:"",
schedule:'0%',
totalScore:100 totalScore:100
}, },
]) ])
@ -255,7 +264,7 @@
project: "", project: "",
assessmentItems: "100%", assessmentItems: "100%",
scoringCriteria: "/", scoringCriteria: "/",
totalScore: finalResult1, totalScore: finalResult,
weight: "", weight: "",
condition: "", condition: "",
score: "", score: "",
@ -265,8 +274,8 @@
const fileList=ref([]) const fileList=ref([])
const data=ref({ const data=ref({
"ascription":'', "ascription":'',
"userId":'487', "userId":JSON.parse(getUserInfo()).userId,
"schoolId":'232' "schoolId":JSON.parse(getUserInfo()).schoolId
}) })
const handleChange =(info)=> { const handleChange =(info)=> {
fileList.value.push(info); fileList.value.push(info);
@ -291,7 +300,7 @@
} }
const data2={ const data2={
"userId":'587', "userId":JSON.parse(getUserInfo()).userId,
"TOKEN":'Bearer '+getToken() "TOKEN":'Bearer '+getToken()
} }
// //
@ -314,7 +323,7 @@
dialogVisible.value=true dialogVisible.value=true
} }
onMounted(()=>{ onMounted(()=>{
data.value.module='数字营销' // data.value.module=''
setTimeout(() => { setTimeout(() => {
cerateGrade() cerateGrade()
}, 300); }, 300);
@ -339,6 +348,7 @@
tableData4.value[0].completionStatus=`阅读${time.value}分钟` tableData4.value[0].completionStatus=`阅读${time.value}分钟`
tableData4.value[0].scoreProject=item.scoreProject tableData4.value[0].scoreProject=item.scoreProject
tableData4.value[0].scoreWeight=weight2 tableData4.value[0].scoreWeight=weight2
tableData4.value[0].schedule=item.schedule+'%'
} }
if(item.learningProjects==="实验实训"){ if(item.learningProjects==="实验实训"){
const score=parseFloat(item.scoringCriteria) const score=parseFloat(item.scoringCriteria)
@ -350,6 +360,7 @@
tableData4.value[3].completionStatus=`输错/选错 ${time.value}` tableData4.value[3].completionStatus=`输错/选错 ${time.value}`
tableData4.value[3].scoreProject=item.scoreProject tableData4.value[3].scoreProject=item.scoreProject
tableData4.value[3].scoreWeight=weight2 tableData4.value[3].scoreWeight=weight2
tableData4.value[3].schedule=item.schedule+'%'
} }
if(item.learningProjects==="资源学习"){ if(item.learningProjects==="资源学习"){
const score=parseFloat(item.scoringCriteria) const score=parseFloat(item.scoringCriteria)
@ -361,6 +372,7 @@
tableData4.value[1].completionStatus=`观看${time.value}分钟` tableData4.value[1].completionStatus=`观看${time.value}分钟`
tableData4.value[1].scoreProject=item.scoreProject tableData4.value[1].scoreProject=item.scoreProject
tableData4.value[1].scoreWeight=weight2 tableData4.value[1].scoreWeight=weight2
tableData4.value[1].schedule=item.schedule+'%'
} }
if(item.learningProjects==="学习测评"){ if(item.learningProjects==="学习测评"){
const time = reactive({value: '/'}); const time = reactive({value: '/'});
@ -372,6 +384,7 @@
tableData4.value[2].completionStatus=`${time.value}` tableData4.value[2].completionStatus=`${time.value}`
tableData4.value[2].scoreProject=item.scoreProject tableData4.value[2].scoreProject=item.scoreProject
tableData4.value[2].scoreWeight=weight2 tableData4.value[2].scoreWeight=weight2
tableData4.value[2].schedule=item.schedule+'%'
} }
if(item.learningProjects==="实训报告"){ if(item.learningProjects==="实训报告"){
tableData4.value[4].scoringCriteria=`提交实训报告,教师评分` tableData4.value[4].scoringCriteria=`提交实训报告,教师评分`
@ -380,6 +393,7 @@
tableData4.value[4].scoreProject=item.scoreProject tableData4.value[4].scoreProject=item.scoreProject
} }
tableData4.value[4].scoreWeight=weight2 tableData4.value[4].scoreWeight=weight2
tableData4.value[4].schedule=item.schedule+'%'
} }
return { return {
...item ...item

@ -160,13 +160,13 @@
// import { useRouter } from "vue-router"; // import { useRouter } from "vue-router";
// import {Base64} from 'js-base64' // import {Base64} from 'js-base64'
import * as API from "@/api/prtrait/prtrait.js" import * as API from "@/api/prtrait/prtrait.js"
// import { getUserId } from "@/utils/auth"; import { getUserInfo } from "@/utils/auth";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import { onMounted } from "vue"; import { onMounted } from "vue";
const data = ref({ const data = ref({
module: "", module: "",
ascription:"", ascription:"",
userId: '487', userId: JSON.parse(getUserInfo()).userId,
}); });
const multipleChoiceAnswer = ref(); const multipleChoiceAnswer = ref();
// const router = useRouter(); // const router = useRouter();
@ -214,7 +214,7 @@ import { onMounted } from "vue";
// //
const answerData=ref([]) const answerData=ref([])
onMounted(()=>{ onMounted(()=>{
data.value.module='数字营销' // data.value.module=''
submitDialogVisible1() submitDialogVisible1()
}) })
const submitDialogVisible1 = () => { const submitDialogVisible1 = () => {
@ -349,7 +349,7 @@ import { onMounted } from "vue";
const mlistArray = Object.values(mlist.value); const mlistArray = Object.values(mlist.value);
const transformedData = { const transformedData = {
stuLearningAssessmentScoreDTO: { stuLearningAssessmentScoreDTO: {
userId: '487', userId: JSON.parse(getUserInfo()).userId,,
learningProjects: "学习测评", learningProjects: "学习测评",
assessmentItems: "客观题测试", assessmentItems: "客观题测试",
stuLearningAssessmentDTOS: mlistArray.map((item) => { stuLearningAssessmentDTOS: mlistArray.map((item) => {

@ -30,7 +30,7 @@
<script setup> <script setup>
import * as API from "@/api/prtrait/prtrait.js" import * as API from "@/api/prtrait/prtrait.js"
import { getAssetsFile } from '@/utils'; import { getAssetsFile } from '@/utils';
// import { getUserId } from '@/utils/auth' import { getUserInfo } from '@/utils/auth'
import { onMounted } from "vue"; import { onMounted } from "vue";
const getImg=(i)=>{ const getImg=(i)=>{
return getAssetsFile('images/'+i) return getAssetsFile('images/'+i)
@ -43,7 +43,7 @@
"learningProjects":"资源学习", "learningProjects":"资源学习",
"assessmentItems":"观看资源", "assessmentItems":"观看资源",
"viewingTime":0, "viewingTime":0,
"userId":'487', "userId":JSON.parse(getUserInfo()).userId,
} }
}) })
const item=ref({}) const item=ref({})

Loading…
Cancel
Save