xiao 2 ماه پیش
والد
کامیت
7e5563f161
2فایلهای تغییر یافته به همراه15 افزوده شده و 20 حذف شده
  1. 2 2
      src/components/fuEditor/index1.vue
  2. 13 18
      src/views/anscard/Index.vue

+ 2 - 2
src/components/fuEditor/index1.vue

@@ -1,5 +1,5 @@
 <template lang="html">
-  <div class="editor">
+  <div class="editor" style="height: 50mm;">
       <div ref="toolbar" class="toolbar">
       </div>
       <div ref="editor" class="text">
@@ -135,7 +135,7 @@ export default {
     //拖动改变大小
     resizeDown(e, index) {
       console.log(e.target)
-      this.resizeBox = document.getElementsByClassName("obj");
+      this.resizeBox = document.getElementsByClassName("editor");
       this.boxHeight = parseFloat(this.resizeBox[index].style.height)*3.779528;
       this.resizeY = e.clientY;
 

+ 13 - 18
src/views/anscard/Index.vue

@@ -126,6 +126,12 @@
   background: #666;
 }
 
+.page_tk_ques {
+  position: relative;
+  width: 80mm;
+  height: 10mm;
+}
+
 .left_div_words_li_span {
   position: absolute;
   font-size: 2mm;
@@ -290,7 +296,7 @@
 }
 
 .paperHeader {
-  border: 1px solid red;
+  /* border: 1px solid red; */
 }
 
 .w-e-text {
@@ -843,20 +849,13 @@
                   <!-- 标题 -->
                   <div
                     class="page_cell_opLabel page_tk_title"
-                    :style="{
-                      top: item.y - 5 + 'mm',
-                      position: 'absolute',
-                    }"
                   >
                     {{ paper.sub[i].title }}
                   </div>
                   <div
                     class="page_cell_obj page_tk_rect"
                     :style="{
-                      width: item.w + 'mm',
-                      height: item.h + 'mm',
-                      top: item.y + 'mm',
-                      position: 'absolute',
+                      width: '100%',
                     }"
                   >
                     <img
@@ -874,19 +873,15 @@
                       >
                         <span
                           class="page_cell_tm_id page_tk_tm_id"
-                          :style="{
-                            left: sub.x - 6 + 'mm',
-                            top: sub.y - 3 + 'mm',
-                          }"
                           >{{ sub.id }}.</span
                         >
                         <div
                           class="page_cell_tk_div page_tk_tm_line"
                           :style="{
-                            width: sub.w + 'mm',
-                            height: sub.h + 'mm',
-                            left: sub.x + 'mm',
-                            top: sub.y + 'mm',
+                            width: '72mm',
+                            height: '0.1mm',
+                            left: '5mm',
+                            top: '5mm',
                           }"
                         ></div>
                       </div>
@@ -981,7 +976,7 @@
                         style="top: 2.5mm; left: 3mm"
                         >{{ paper.sub[i].id }}.</span
                       >
-                      <ul class="english" style="padding: 0 5mm">
+                      <ul class="english" style="padding: 0 5mm;width: 100%;">
                         <li
                           v-for="num in paper.sub[i].rows"
                           :key="num"