reaper 4 éve
szülő
commit
bcf9b720cc

+ 20 - 8
src/components/knowledgeExtra/AddAssess/index.vue

@@ -13,8 +13,9 @@
   .table_map {
     border-bottom: 10px solid #dee2ea;
     .table_top_box {
+      position: relative;
       display: flex;
-      align-items: center;
+      // align-items: center;
       justify-content: space-between;
       padding: 0 37px;
       .table_top_box_left {
@@ -42,6 +43,7 @@
     .move_btn {
       font-size: 14px;
       margin-left: 10px;
+      margin-top: 5px;
       display: flex;
       div {
         width: 12px;
@@ -54,13 +56,21 @@
         }
       }
     }
+    .right_hint_msg {
+      position: absolute;
+      right: 35px;
+      bottom: 0;
+      font-size: 14px;
+      color: #999;
+      margin-top: 14px;
+    }
   }
   /deep/ .el-form-item--mini.el-form-item,
   .el-form-item--small.el-form-item {
     margin-bottom: 0;
   }
   .hint_msg {
-    font-size: 12px;
+    font-size: 14px;
     color: red;
     margin-top: 14px;
   }
@@ -233,10 +243,6 @@ it .ql-editor,
                   />
                 </el-form-item>
               </div>
-
-              <div class="hint_msg">
-                注:结果类型修改后已填的所在标题下的内容将会清空
-              </div>
             </div>
           </div>
           <div class="move_btn" v-if="scaleData.klScaleParent.length > 1">
@@ -273,6 +279,12 @@ it .ql-editor,
               />
             </div>
           </div>
+          <div
+            v-if="table.resultType === 1 && table.textType === 11"
+            class="right_hint_msg"
+          >
+            备注:先计算系数再计算常数
+          </div>
         </div>
         <ScaleTable
           v-if="table.textType === 11"
@@ -539,9 +551,9 @@ export default {
       return actualTop;
     },
     getDom(ref) {
-      console.log('getBoundingClientRect',document.getElementById(ref));
+      console.log("getBoundingClientRect", document.getElementById(ref));
       // const dom = this.getElementTop(document.getElementById(ref));
-      let dom = document.getElementById(ref).getBoundingClientRect().top; 
+      let dom = document.getElementById(ref).getBoundingClientRect().top;
       console.log("dom,dom", dom);
       return dom;
     },

+ 1 - 0
src/components/knowledgeExtra/AddAssess/scale-table.vue

@@ -2,6 +2,7 @@
 <style lang="less" scoped>
 .scaleTable {
   min-height: 100px;
+  margin-top: -10px;
   .table_box {
     padding: 0 30px;
   }