zhangjie 1 год назад
Родитель
Сommit
f3370562b0

+ 1 - 1
src/modules/course/api.js

@@ -59,7 +59,7 @@ export const endScoreSave = (datas) => {
 };
 // 成绩管理-期末成绩同步
 export const endScoreSync = (datas) => {
-  return $post("/api/admin/course/degree/final_score/sync", datas);
+  return $postParam("/api/admin/course/degree/final_score/sync", datas);
 };
 // 成绩管理-期末成绩启用/禁用
 export const endScoreEnable = ({ id, enable }) => {

+ 1 - 0
src/modules/course/components/EndScoreManage.vue

@@ -155,6 +155,7 @@ export default {
       this.syncing = false;
       if (!res) return;
       this.$message.success("操作成功!");
+      this.getList();
     },
     toSetBlue() {
       this.$refs.SetBlueDialog.open();

+ 23 - 2
src/modules/course/components/TargetReportDetail.vue

@@ -265,7 +265,21 @@
               </p>
             </td>
             <td style="width: 140px">{{ evaluation.evaluation }}</td>
-            <td style="width: 80px">{{ evaluation.targetWeight }}</td>
+
+            <td
+              v-if="!eindex"
+              style="width: 80px"
+              :rowspan="item.evaluationList.length - 1"
+            >
+              {{ item.normalTargetWeight }}
+            </td>
+            <td
+              v-else-if="eindex === item.evaluationList.length - 1"
+              style="width: 80px"
+            >
+              {{ evaluation.targetWeight }}
+            </td>
+
             <td style="width: 100px">{{ evaluation.targetScore }}</td>
             <td style="width: 100px">{{ evaluation.targetAvgScore }}</td>
             <td
@@ -412,7 +426,14 @@ export default {
 
       this.courseTargetValue =
         data.courseEvaluationResultInfo.targetEvaluationSumValue;
-      this.courseTargetList = data.courseEvaluationResultInfo.targetList;
+      this.courseTargetList = data.courseEvaluationResultInfo.targetList.map(
+        (target) => {
+          target.normalTargetWeight = calcSum(
+            target.evaluationList.slice(0, -1).map((elem) => elem.targetWeight)
+          );
+          return target;
+        }
+      );
 
       const {
         courseEvaluationSpreadInfo: { questionInfo, scoreList },

Разница между файлами не показана из-за своего большого размера
+ 288 - 301
src/modules/course/components/data.json


Некоторые файлы не были показаны из-за большого количества измененных файлов