Browse Source

flex:修复bug

Tang 3 năm trước cách đây
mục cha
commit
405bc7c269

+ 3 - 3
src/views/education/classManageMent/classHours/index.vue

@@ -18,7 +18,7 @@
       <div>
         <span style="font-size: 15px; color: #666">审核状态:</span
         ><el-button
-          :type="activeBtn === 3 ? 'primary' : ''"
+          :type="activeBtn === 4 ? 'primary' : ''"
           :size="size"
           @click="changeBTN(4)"
           >全部</el-button
@@ -46,7 +46,7 @@
           @click="changeBTN(0)"
           >不通过</el-button
         ><el-button
-          :type="activeBtn === 2 ? 'primary' : ''"
+          :type="activeBtn === 3 ? 'primary' : ''"
           :size="size"
           @click="changeBTN(3)"
           >审核中
@@ -168,7 +168,7 @@ export default {
       statusShow: "", //1无官方接口按钮 2只有官方推送 3都有
       size: "medium",
       active: 2,
-      activeBtn: 3,
+      activeBtn: 4,
       loading: false, //当前表单加载是否加载动画
       navText: {
         title: "学时管理:",

+ 1 - 5
src/views/education/classManageMent/learningHoursRecordList/index.vue

@@ -25,11 +25,7 @@
         <el-button
           type="text"
           @click="activeStudyRecord(props.scope.row)"
-          :disabled="
-            props.scope.row.periodStatus === 2 ||
-            props.scope.row.periodStatus === 3 ||
-            props.scope.row.periodStatus === -1
-          "
+          :disabled="[-1, 2, 3].includes(props.scope.row.periodStatus)"
           >学时记录</el-button
         >
       </template>