diff --git a/src/pages/Home/components/LockList.vue b/src/pages/Home/components/LockList.vue index 07d5539..bfcf320 100644 --- a/src/pages/Home/components/LockList.vue +++ b/src/pages/Home/components/LockList.vue @@ -9,11 +9,15 @@ >
- 锁定模板后,仅可调整位置和大小,无法增删题目,请确认模板信息后操作: + 锁定模板后,仅可调整位置和大小,无法增删题目,请确认模板信息后操作 + (总分:{{ allScore }})
- + +
@@ -53,6 +57,7 @@ const activeNames = ref([ "otherPoint", ]); const list = ref([]); +const allScore = ref(0); const getData = (data: any): void => { // 修改数据 changeData(data); @@ -73,6 +78,8 @@ const changeData = (data: any): void => { const objectiveQuestionsPoint = [], //客观题 subjectiveQuestionsPoint = [], //主观题 otherPoint = []; //其他 + let objectiveQuestionsPointScore = 0; + let subjectiveQuestionsPointScore = 0; for (let index = 0; index < data.length; index++) { const item = data[index]; objectiveQuestionsPoint.push(...item.from.objectiveQuestionsPoint); @@ -82,14 +89,17 @@ const changeData = (data: any): void => { let objectiveQuestionsPointNumber = 0; objectiveQuestionsPoint.forEach((item: any) => { objectiveQuestionsPointNumber += item.questionNumber; + objectiveQuestionsPointScore += item.score; }); let subjectiveQuestionsPointNumber = 0; subjectiveQuestionsPoint.forEach((item: any) => { subjectiveQuestionsPointNumber += item.questionAfter - item.questionBefore + 1; + subjectiveQuestionsPointScore += item.score; }); - params[0].title = `客观题:${objectiveQuestionsPointNumber}题`; + allScore.value = objectiveQuestionsPointScore + subjectiveQuestionsPointScore; + params[0].title = `客观题:共${objectiveQuestionsPointNumber}题 总分:${objectiveQuestionsPointScore}分`; params[0].data = objectiveQuestionsPoint; - params[1].title = `主观题:${subjectiveQuestionsPointNumber}题`; + params[1].title = `主观题:共${subjectiveQuestionsPointNumber}题 总分:${subjectiveQuestionsPointScore}分`; params[1].data = subjectiveQuestionsPoint; params[2].title = `其他标记(缺考、屏蔽区、反面定位点)`; params[2].data = otherPoint; diff --git a/src/pages/Home/index.vue b/src/pages/Home/index.vue index 2fe60cb..d96ef85 100644 --- a/src/pages/Home/index.vue +++ b/src/pages/Home/index.vue @@ -1647,7 +1647,7 @@ const showFabricData = (): void => { hasControls: false, subTargetCheck: true, borderColor: "transparent", - selectionBackgroundColor: "rgba(255,0,0,0.5)", + selectionBackgroundColor: "rgba(255,0,0,0.1)", fabricType: item.fabricType, left: item.left, top: item.top, @@ -2997,6 +2997,7 @@ const lock = async (): Promise => { GetLock(router.currentRoute.value.query.mid as string).then((res: any) => { if (res.code === 200) { ElMessage.success("锁定成功"); + isLockStatus.value = true; } }); };