瀏覽代碼

flex:修复学时审核css及学习记录小数点及资料审核字段不同步

Tang 3 年之前
父節點
當前提交
fbb6cffd3a

+ 7 - 1
src/views/education/classManageMent/classHoursReview/studyTimes.vue

@@ -118,7 +118,7 @@
         </div>
       </div>
     </div>
-    <div style="max-height: 540px; overflow: auto">
+    <div style="flex: 1; flex-shrink: 0; overflow: auto">
       <el-table
         :default-expand-all="defaultExpand"
         v-for="asrt in computedList(listLabel)"
@@ -1160,6 +1160,11 @@ export default {
 </script>
 
 <style lang="less" scoped>
+#classHoursReview {
+  display: flex;
+  flex-direction: column;
+  height: calc(100vh - 126px);
+}
 .styFlex {
   width: 80px;
   text-align: center;
@@ -1242,6 +1247,7 @@ export default {
   color: #fff;
 }
 .dis_fls {
+  height: 65px;
   margin: 16px 0px;
   display: flex;
   align-items: center;

+ 10 - 1
src/views/education/dataReview/informationTemplate/index.vue

@@ -871,7 +871,16 @@ export default {
           label: "状态",
           prop: "status",
           hidden: true,
-          scope: "status",
+          scope: "isOptions",
+          options:[
+            {
+              label:"启用",
+              value:1
+            },{
+              label:"停用",
+              value:0
+            }
+          ]
         },
       ],
       tableData: [], //表单数据

+ 5 - 1
src/views/education/studentManageMent/studentXQ/studyRecord.vue

@@ -352,7 +352,11 @@ export default {
         return;
       }
       let result = (int1 / int2) * 100;
-      return result + "%";
+      if(result == 0 || result == 100){
+        return result + "%";
+      }else{
+        return result.toFixed(2) + "%";
+      }
     },
     //改变返回值
     getTypes(arr) {