jinx 2 年之前
父节点
当前提交
e8d6afc4b7

文件差异内容过多而无法显示
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


+ 26 - 5
src/views/tables/author/author-two.vue

@@ -2,10 +2,22 @@
 <template>
 <template>
   <div class="author">
   <div class="author">
     <div class="content">
     <div class="content">
+      <div class="check-item" @click="checkOptions(checkData1, index)" v-for="(i, index) in checkData1.options">
+        <div class="item">
+          <ui-icon :type="checkData1.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
+          <span>{{ i.title }}</span>
+          <div v-if="i.id == 1 || i.id == 4" class="input-box" style="flex: 1">
+            <input type="text" />
+          </div>
+        </div>
+      </div>
       <div class="check-item" @click="checkOptions(checkData, index)" v-for="(i, index) in checkData.options">
       <div class="check-item" @click="checkOptions(checkData, index)" v-for="(i, index) in checkData.options">
-        <div style="display: inline-block">
+        <div class="item">
           <ui-icon :type="checkData.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
           <ui-icon :type="checkData.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
           <span>{{ i.title }}</span>
           <span>{{ i.title }}</span>
+          <div v-if="i.id == 1 || i.id == 4" class="input-box" style="flex: 1">
+            <input type="text" />
+          </div>
         </div>
         </div>
       </div>
       </div>
 
 
@@ -26,13 +38,18 @@ import { reactive, ref, toRefs, onBeforeMount, onMounted } from 'vue';
 const checkOptions = (item, index) => {
 const checkOptions = (item, index) => {
   item.check = item.options[index].id;
   item.check = item.options[index].id;
 };
 };
-const checkData = ref({
+const checkData1 = ref({
   check: 0,
   check: 0,
   options: [
   options: [
     {
     {
       id: 1,
       id: 1,
       title: '...',
       title: '...',
     },
     },
+  ],
+});
+const checkData = ref({
+  check: 0,
+  options: [
     {
     {
       id: 2,
       id: 2,
       title: '一般代理。即代理为参与诉讼、调解,提供法律帮助。',
       title: '一般代理。即代理为参与诉讼、调解,提供法律帮助。',
@@ -83,9 +100,13 @@ div[contenteditable] {
     }
     }
     .check-item {
     .check-item {
       margin-bottom: 30px;
       margin-bottom: 30px;
-
-      span {
-        line-height: 30px;
+      .item {
+        display: flex;
+        align-items: center;
+        justify-content: flex-start;
+        span {
+          line-height: 30px;
+        }
       }
       }
     }
     }
   }
   }

+ 1 - 0
src/views/tables/explorate-one.vue

@@ -781,6 +781,7 @@ div {
                 > div {
                 > div {
                   flex: 1;
                   flex: 1;
                   height: 30px;
                   height: 30px;
+                  line-height: 30px;
                   outline: none;
                   outline: none;
                   display: flex;
                   display: flex;
                   align-items: center;
                   align-items: center;

+ 18 - 24
src/views/tables/index.vue

@@ -7,7 +7,7 @@
       </Header>
       </Header>
     </template>
     </template>
 
 
-    <div class="mySwiper">
+    <div class="mySwiper" v-if="loaded">
       <div class="swiper-wrapper">
       <div class="swiper-wrapper">
         <div class="swiper-slide" v-for="(i, index) in eleList">
         <div class="swiper-slide" v-for="(i, index) in eleList">
           <div class="warpper" :class="{ downMode }" :id="`layoutRef${index}`">
           <div class="warpper" :class="{ downMode }" :id="`layoutRef${index}`">
@@ -20,7 +20,7 @@
 </template>
 </template>
 
 
 <script setup lang="ts">
 <script setup lang="ts">
-import { reactive, ref, toRefs, onBeforeMount, onMounted, nextTick, onActivated } from 'vue';
+import { reactive, ref, toRefs, onBeforeMount, onMounted, nextTick, onActivated, onDeactivated } from 'vue';
 import { router } from '@/router';
 import { router } from '@/router';
 import Swiper from 'swiper';
 import Swiper from 'swiper';
 import 'swiper/swiper.min.css';
 import 'swiper/swiper.min.css';
@@ -64,7 +64,7 @@ const getLayoutImage = async () => {
     Message.success({ msg: '已保存至相册', time: 2000 });
     Message.success({ msg: '已保存至相册', time: 2000 });
 
 
     const blob = await new Promise<Blob>((resolve) => canvas.toBlob(resolve, 'image/jpeg', 0.95));
     const blob = await new Promise<Blob>((resolve) => canvas.toBlob(resolve, 'image/jpeg', 0.95));
-    await downloadImage(blob, '12312.jpg');
+    await downloadImage(blob, `tables_${index}.jpg`);
   });
   });
   downMode.value = false;
   downMode.value = false;
 
 
@@ -94,35 +94,29 @@ const initTables = () => {
   }
   }
 };
 };
 const mySwiper = ref(null);
 const mySwiper = ref(null);
+const loaded = ref(false);
 onActivated(() => {
 onActivated(() => {
   initTables();
   initTables();
+  loaded.value = true;
   mySwiper.value = null;
   mySwiper.value = null;
   nextTick(() => {
   nextTick(() => {
-    mySwiper.value = new Swiper('.mySwiper', {
-      on: {
-        init: function (swiper) {
-          console.error(swiper)
-          swiper.slideTo(0);
-
-          // for (let i = 0; i < imageList.value.length; i++) {
-          //     vmZoom.value[i] = document.getElementById(`vmRef_${i}`)
-          //     zoomElement(vmZoom.value[i])
-          // }
-        },
-        transitionStart: function (swiper) {
-          // alert(swiper.previousIndex)
-          // console.log(vmZoom.value[swiper.previousIndex].style.transform)
-          // let scale = getTransform(vmZoom.value[swiper.previousIndex])
-        },
-
-        touchStart: function (swiper, event) {
-          // console.log(swiper.previousIndex)
+    if (loaded.value) {
+      mySwiper.value = new Swiper('.mySwiper', {
+        on: {
+          init: function (swiper) {
+            console.error(swiper);
+          },
+          transitionStart: function (swiper) {},
+          touchStart: function (swiper, event) {},
         },
         },
-      },
-    });
+      });
+    }
   });
   });
 });
 });
 onMounted(() => {});
 onMounted(() => {});
+onDeactivated(() => {
+  loaded.value = false;
+});
 </script>
 </script>
 <style lang="scss" scoped>
 <style lang="scss" scoped>
 .mySwiper {
 .mySwiper {