lex 1 year ago
parent
commit
95c0773e34
2 changed files with 11 additions and 9 deletions
  1. 9 7
      src/views/classList/components/afterWork.tsx
  2. 2 2
      src/views/home/index.module.less

+ 9 - 7
src/views/classList/components/afterWork.tsx

@@ -252,13 +252,15 @@ export default defineComponent({
             </NFormItem>
           </NForm>
         </div>
-        <NButton
-          class={styles.addBtn}
-          disabled={state.upgradeFlag}
-          type="primary"
-          onClick={() => (state.addWorkVisible = true)}>
-          布置作业
-        </NButton>
+        {!state.upgradeFlag && (
+          <NButton
+            class={styles.addBtn}
+            type="primary"
+            onClick={() => (state.addWorkVisible = true)}>
+            布置作业
+          </NButton>
+        )}
+
         <div class={styles.tableWrap}>
           <NDataTable
             v-slots={{

+ 2 - 2
src/views/home/index.module.less

@@ -5,7 +5,7 @@
   // justify-content: space-between;
   align-content: stretch;
   // min-height: 100%;
-  height: 100%;
+  // height: 100%;
 }
 
 .homeInfoLeft {
@@ -216,7 +216,7 @@
   background-size: 86px 66px;
   border-radius: 16px;
   padding: 22px 29px 34px 54px;
-  flex: 1 auto;
+  // flex: 1 auto;
 
   .toolTips {
     width: 370px;