mo 3 éve
szülő
commit
2d5c3589f6

+ 1 - 1
src/views/setQuestions/components/questionList.vue

@@ -107,7 +107,7 @@
           <el-tooltip
             class="item"
             effect="dark"
-            content="向移动"
+            content="向移动"
             placement="top"
           >
             <el-button

+ 5 - 1
src/views/setQuestions/operation.vue

@@ -236,6 +236,7 @@
             </el-col>
             <el-col :span="12" style="text-align: right; padding-right: 15px">
               <el-tooltip
+              key="moveDown"
                 class="item"
                 effect="dark"
                 content="向下移动"
@@ -249,9 +250,10 @@
                 ></el-button>
               </el-tooltip>
               <el-tooltip
+              key="moveUp"
                 class="item"
                 effect="dark"
-                content="向移动"
+                content="向移动"
                 placement="top"
               >
                 <el-button
@@ -524,10 +526,12 @@ export default {
     },
     // 向上移动
     moveUp(arr, index) {
+      console.log('向上移动')
       arr.splice(index, 1, ...arr.splice(index + 1, 1, arr[index]));
     },
     // 向下移动
     moveDown(arr, index) {
+      console.log('向下移动')
       arr.splice(index - 1, 1, ...arr.splice(index, 1, arr[index - 1]));
     },
     // 删除选项

+ 20 - 65
src/views/setQuestions/questionManger/component/Continuous.vue

@@ -630,19 +630,7 @@ export default {
   .studentInfo {
     margin-top: 12px;
   }
-  .questions {
-    position: relative;
-    margin: 12px 12px 24px;
-    border-radius: 10px;
-    background: #fff;
-    overflow: hidden;
-    .form-mark {
-      position: absolute;
-      left: 0;
-      top: 6px;
-      z-index: 10;
-    }
-  }
+
   .img-icon {
     width: 22px;
     height: 22px;
@@ -771,19 +759,7 @@ export default {
   .studentInfo {
     margin-top: 12px;
   }
-  .questions {
-    position: relative;
-    margin: 12px 12px 24px;
-    border-radius: 10px;
-    background: #fff;
-    overflow: hidden;
-    .form-mark {
-      position: absolute;
-      left: 0;
-      top: 6px;
-      z-index: 10;
-    }
-  }
+
   .img-icon {
     width: 22px;
     height: 22px;
@@ -911,36 +887,12 @@ export default {
   .studentInfo {
     margin-top: 12px;
   }
-  .questions {
-    position: relative;
-    margin: 12px 12px 24px;
-    border-radius: 10px;
-    background: #fff;
-    overflow: hidden;
-    .form-mark {
-      position: absolute;
-      left: 0;
-      top: 6px;
-      z-index: 10;
-    }
-  }
+
   .img-icon {
     width: 22px;
     height: 22px;
   }
-  .questions {
-    position: relative;
-    margin: 12px 12px 24px;
-    border-radius: 10px;
-    background: #fff;
-    overflow: hidden;
-    .form-mark {
-      position: absolute;
-      left: 0;
-      top: 6px;
-      z-index: 10;
-    }
-  }
+
   .img-icon {
     width: 22px;
     height: 22px;
@@ -1068,19 +1020,7 @@ export default {
   .studentInfo {
     margin-top: 12px;
   }
-  .questions {
-    position: relative;
-    margin: 12px 12px 24px;
-    border-radius: 10px;
-    background: #fff;
-    overflow: hidden;
-    .form-mark {
-      position: absolute;
-      left: 0;
-      top: 6px;
-      z-index: 10;
-    }
-  }
+
   .img-icon {
     width: 22px;
     height: 22px;
@@ -1165,7 +1105,19 @@ export default {
     }
   }
 }
+
 .questions {
+      position: relative;
+    margin: 0 12px 12px;
+    border-radius: 10px;
+    background: #fff;
+    overflow: hidden;
+    .form-mark {
+      position: absolute;
+      left: 0;
+      top: 6px;
+      z-index: 10;
+    }
   .van-cell--borderless {
     // padding-bottom: 0;
     &::after {
@@ -1225,4 +1177,7 @@ export default {
 .noLine {
   padding: 10px 28px 16px;
 }
+/deep/.van-checkbox__icon,/deep/.van-radio__icon {
+  padding: 1px;
+}
 </style>

+ 6 - 3
src/views/setQuestions/questionManger/component/Progressive.vue

@@ -35,10 +35,10 @@
                   :key="item.id"
                   :title="item.answerValue"
                   class="teacher-item"
-                  @click="toggle(item.id)"
+                  @click="toggle(item.id||item.answerValue)"
                 >
                   <template #right-icon>
-                    <van-radio :name="item.id">
+                    <van-radio :name="item.id||item.answerValue">
                       <template #icon="props">
                         <!-- <img
                           class="img-icon"
@@ -69,7 +69,7 @@
                     'questionnaireQuestionItemList'
                   ]"
                   :clickable="true"
-                  :key="item.id"
+                  :key="item.id||item.answerValue"
                   :title="item.answerValue"
                   class="teacher-item"
                   @click="toggle(index)"
@@ -1195,4 +1195,7 @@ export default {
 .noLine {
   padding: 10px 28px 16px;
 }
+/deep/.van-checkbox__icon,/deep/.van-radio__icon {
+  padding: 1px;
+}
 </style>