jinx 1 gadu atpakaļ
vecāks
revīzija
938692d114
2 mainītis faili ar 12 papildinājumiem un 11 dzēšanām
  1. 10 10
      src/views/tables/author/author-two.vue
  2. 2 1
      src/views/tables/data/index.ts

+ 10 - 10
src/views/tables/author/author-two.vue

@@ -12,7 +12,7 @@
         </div>
       </div> -->
 
-      <div class="check-item" @click="checkOneOptions(checkData1, index)" v-for="(i, index) in checkData1.options">
+      <div class="check-item" @click="checkOptions(checkData1, index)" v-for="(i, index) in checkData1.options">
         <div class="item">
           <ui-icon :type="data.oneOptions.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
           <span>{{ i.title }}</span>
@@ -69,17 +69,17 @@ const props = defineProps({
   isDownloadShow: { type: Boolean, default: false },
 });
 const data = ref(null);
-const checkOneOptions = (item, index) => {
-  item.check = item.options[index].id;
-  data.value["oneOptions"].check = item.check;
-};
+// const checkOneOptions = (item, index) => {
+//   item.check = item.options[index].id;
+//   data.value["oneOptions"].check = item.check;
+// };
 const checkOptions = (item, index) => {
   item.check = item.options[index].id;
   data.value[item.type].check = item.check;
 };
 const checkData1 = ref({
   check: 0,
-  type: "options",
+  type: "oneOptions",
   options: [
     {
       id: 1,
@@ -121,10 +121,10 @@ onMounted(() => {
   if (tablesInfo.authorTwo) {
     data.value = tablesInfo.authorTwo;
   }
-  if (tablesInfo.authorOne) {
-    console.error(tablesInfo);
-    data.value.oneOptions = tablesInfo.authorOne.options;
-  }
+  // if (tablesInfo.authorOne) {
+  //   console.error(tablesInfo);
+  //   data.value.oneOptions = tablesInfo.authorOne.options;
+  // }
 });
 </script>
 <style lang="scss" scoped>

+ 2 - 1
src/views/tables/data/index.ts

@@ -191,9 +191,10 @@ let data = {
   },
   authorTwo: {
     options: { check: "", value: "" },
+    checkOptions: { check: "", value: "" },
     authorSign: "",
     authorBySign: "",
-    authorByName:"",
+    authorByName: "",
   },
 
   authorOne: {