Преглед на файлове

feat: 课程目标达成值调试

zhangjie преди 11 месеца
родител
ревизия
44dc98d4fe
променени са 2 файла, в които са добавени 66 реда и са изтрити 4 реда
  1. 17 0
      src/assets/styles/pages.scss
  2. 49 4
      src/modules/target/components/requirement-statistics/RequirementStatisticsStatement.vue

+ 17 - 0
src/assets/styles/pages.scss

@@ -1610,3 +1610,20 @@
     }
   }
 }
+
+// matrix-tips
+.matrix-content {
+  cursor: pointer;
+  border-radius: 3px;
+  &:hover {
+    background-color: rgb(217, 236, 255);
+    color: $--color-primary;
+  }
+}
+.matrix-tips {
+  h3 {
+    font-weight: bold;
+    margin-bottom: 5px;
+    color: $--color-text-dark;
+  }
+}

+ 49 - 4
src/modules/target/components/requirement-statistics/RequirementStatisticsStatement.vue

@@ -60,10 +60,55 @@
                 </template>
               </template>
               <template slot-scope="scope">
-                {{
-                  scope.row.obeRequirements[cindex].obeSubRequirements[sindex]
-                    .matrixDegree | defaultFieldFilter
-                }}
+                <el-popover
+                  v-if="
+                    scope.row.obeRequirements[cindex].obeSubRequirements[sindex]
+                      .matrixDegree
+                  "
+                  placement="right"
+                  trigger="click"
+                >
+                  <div class="matrix-content" slot="reference">
+                    {{
+                      scope.row.obeRequirements[cindex].obeSubRequirements[
+                        sindex
+                      ].matrixDegree
+                    }}
+                  </div>
+                  <div class="matrix-tips">
+                    <h3>
+                      <span>
+                        {{ scope.row.courseName }}
+                      </span>
+                      <span v-if="scope.row.courseCode">
+                        ({{ scope.row.courseCode }})
+                      </span>
+                    </h3>
+                    <p>课程目标达成值:{{ scope.row.courseMatrixDegree }}</p>
+                    <p>
+                      在该指标点下支撑权重:{{
+                        scope.row.obeRequirements[cindex].obeSubRequirements[
+                          sindex
+                        ].scale
+                      }}
+                    </p>
+                    <p>
+                      该指标点达成值:{{ scope.row.courseMatrixDegree }} ×
+                      {{
+                        scope.row.obeRequirements[cindex].obeSubRequirements[
+                          sindex
+                        ].scale
+                      }}
+                      =
+                      {{
+                        scope.row.obeRequirements[cindex].obeSubRequirements[
+                          sindex
+                        ].matrixDegree
+                      }}
+                    </p>
+                  </div>
+                </el-popover>
+                <span v-else>--</span>
               </template>
             </el-table-column>
           </el-table-column>