Bladeren bron

一些修改

zhangjie 4 jaren geleden
bovenliggende
commit
c62de882d6

+ 28 - 1
src/assets/styles/main.less

@@ -502,6 +502,23 @@
         text-align: center;
         font-size: 18px;
         font-weight: 600;
+
+        &-column-2 {
+          td {
+            width: 50%;
+          }
+        }
+        &-column-3 {
+          td {
+            width: 33.33%;
+          }
+        }
+      }
+      .image-action-list {
+        height: 400px;
+        .image-view {
+          height: 100%;
+        }
       }
     }
   }
@@ -521,9 +538,19 @@
   justify-content: space-between;
 
   &-body {
-    padding: 20px;
+    position: relative;
+    padding: 20px 20px 70px;
     flex-grow: 2;
     margin: 0;
+
+    .part-page {
+      position: absolute;
+      bottom: 20px;
+      left: 0;
+      right: 0;
+      z-index: auto;
+      margin: 0;
+    }
   }
   &-list {
     height: 100%;

+ 1 - 1
src/modules/main/StudentScore.vue

@@ -102,7 +102,7 @@
           ref="ImageActionList"
         ></image-action-list>
 
-        <table class="table">
+        <table :class="['table', `table-column-${curStudent.scores.length}`]">
           <tr>
             <td
               class="color-dark"

+ 3 - 1
src/modules/mark/MarkDetail.vue

@@ -287,7 +287,9 @@ export default {
         };
       });
       this.steps = { levelStep, otherStep };
-      if (!this.curStep) this.curStep = levelStep[0];
+      if (!this.curStep.type) {
+        this.curStep = levelStep[0];
+      }
     },
     async getWorkLevels() {
       const data = await workLevelList(this.workId);

+ 1 - 0
src/modules/mark/MarkOperation.vue

@@ -220,6 +220,7 @@ export default {
   methods: {
     initData() {
       this.getWorkLevels();
+      this.getParamsSetInfo();
     },
     async getParamsSetInfo() {
       const data = await getParamsSet(this.workId);