ZaiZai 10 months ago
parent
commit
727b84ee48
2 changed files with 18 additions and 4 deletions
  1. 13 1
      src/styles/view/project/edit-formula.scss
  2. 5 3
      src/views/project/list/edit-formula.vue

+ 13 - 1
src/styles/view/project/edit-formula.scss

@@ -58,6 +58,18 @@
     }
     //没有滚动条,拉满
     .hc-project-list-edit-formula-card.is-no-scroll {
-
+        position: relative;
+        display: flex;
+        flex-direction: column;
+        height: 100%;
+        .hc-formula-card-box {
+            flex-shrink: 0;
+        }
+        .hc-formula-card-math {
+            flex-shrink: 0;
+        }
+        .hc-formula-reset-fun {
+            flex: 1;
+        }
     }
 }

+ 5 - 3
src/views/project/list/edit-formula.vue

@@ -2,6 +2,7 @@
     <hc-drawer v-model="isShow" ui="hc-project-list-edit-formula-drawer" to-id="hc-layout-box" is-close @close="drawerClose">
         <hc-card is-action-btn :scrollbar="isScrollBar">
             <div class="hc-project-list-edit-formula-card" :class="isScrollBar ? '' : 'is-no-scroll'">
+                <!-- 顶部操作 -->
                 <div class="hc-formula-card-box border-dashed-card hc-flex mb-14px h-58px">
                     <div class="retain hc-flex h-full w-174px">
                         <el-checkbox v-model="isRetain" size="large" />
@@ -28,6 +29,7 @@
                         <el-button>手写模式</el-button>
                     </div>
                 </div>
+                <!-- 函数公式 -->
                 <div class="hc-formula-card-math border-dashed-card mb-14px">
                     <div class="header hc-flex">
                         <div class="name flex-1 text-14px">函数公式.</div>
@@ -43,7 +45,7 @@
                     </div>
                 </div>
                 <!-- 重置函数 -->
-                <div class="hc-formula-reset-fun border-dashed-card">
+                <div class="hc-formula-reset-fun border-dashed-card mb-14px">
                     1111
                 </div>
             </div>
@@ -95,8 +97,8 @@ const isScrollBar = ref(false)
 //获取数据
 const getDataApi = async () => {
     console.log(dataInfo.value)
-    getTypeMapApi()
-    getWbsFormElementData()
+    getTypeMapApi().then()
+    getWbsFormElementData().then()
 }
 
 //保留位数