Browse Source

句子拆分组件序号对齐调整

natasha 2 years ago
parent
commit
1f708c5226

+ 6 - 6
src/components/Adult/inputModules/SentenceModule.vue

@@ -138,6 +138,12 @@
                 {{ items.fn_check_list.radio_check | getFnName(fn_list) }}
               </li>
             </ul>
+            <img
+              @click="deleteWOptionOne(col, row)"
+              class="close"
+              src="../../../assets/adult/del-close.png"
+              alt=""
+            />
           </div>
           <!-- <div class="adult-book-input-item">
             <span class="adult-book-lable">音频:</span>
@@ -149,12 +155,6 @@
               :index="col"
               :index2="row"
             />
-            <img
-              @click="deleteWOptionOne(col, row)"
-              class="close"
-              src="../../../assets/adult/del-close.png"
-              alt=""
-            />
           </div> -->
           <div
             class="adult-book-input-item"

+ 20 - 7
src/components/Adult/preview/components/OptionTemp.vue

@@ -22,7 +22,7 @@
                 item.detail &&
                 item.detail.pyNumber &&
                 item.detail.pyNumber[0] > 0
-                  ? 'radio-hasPy'
+                  ? curQue.pyPosition=='top'?'radio-hasPy':'radio-hasPy-bottom'
                   : ''
               "
               :disabled="TaskModel == 'ANSWER' || items.Isexample"
@@ -76,7 +76,7 @@
                 item.detail &&
                 item.detail.pyNumber &&
                 item.detail.pyNumber[0] > 0
-                  ? 'radio-hasPy'
+                  ? curQue.pyPosition=='top'?'radio-hasPy':'radio-hasPy-bottom'
                   : '',
               ]"
               :disabled="true"
@@ -119,7 +119,7 @@
                 item.detail &&
                 item.detail.pyNumber &&
                 item.detail.pyNumber[0] > 0
-                  ? 'radio-hasPy'
+                  ? curQue.pyPosition=='top'?'radio-hasPy':'radio-hasPy-bottom'
                   : ''
               "
               :disabled="TaskModel == 'ANSWER' || items.Isexample"
@@ -174,7 +174,7 @@
                 item.detail &&
                 item.detail.pyNumber &&
                 item.detail.pyNumber[0] > 0
-                  ? 'radio-hasPy'
+                  ? curQue.pyPosition=='top'?'radio-hasPy':'radio-hasPy-bottom'
                   : '',
               ]"
               :disabled="TaskModel == 'ANSWER' || items.Isexample"
@@ -512,7 +512,12 @@ ul {
 }
 .radio-hasPy {
   .option_number {
-    padding-top: 24px;
+    padding-top: 12px;
+  }
+  &-bottom{
+    .option_number {
+        margin-top: -10px;
+    }
   }
 }
 .option_left_right {
@@ -575,10 +580,18 @@ ul {
   }
   .radio-hasPy {
     .el-radio__inner {
-      margin-top: 24px;
+      margin-top: 6px;
     }
     .el-checkbox__inner {
-      margin-top: 24px;
+      margin-top: 6px;
+    }
+    &-bottom{
+        .el-radio__inner {
+            margin-top: -4px;
+        }
+        .el-checkbox__inner {
+            margin-top: -4px;
+        }
     }
   }
   .option_left_right {