From cd372b367df87784ac5672601a95d6235782c918 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期三, 20 十一月 2024 16:52:30 +0800
Subject: [PATCH] 会议策划与组织

---
 src/books/civilAviation/view/components/chapter001.vue |   57 ++++++++++++++++++++++++++-------------------------------
 1 files changed, 26 insertions(+), 31 deletions(-)

diff --git a/src/books/civilAviation/view/components/chapter001.vue b/src/books/civilAviation/view/components/chapter001.vue
index 90765c2..c8b4cce 100644
--- a/src/books/civilAviation/view/components/chapter001.vue
+++ b/src/books/civilAviation/view/components/chapter001.vue
@@ -676,7 +676,8 @@
                         <p class="event-header-text-bc pd-5 fl jc-sa" style="margin-left: 8px; width: 93%"
                             v-if="showCheckAnswer">
                             <span class="c-g"> 绛旀锛欰BC </span>
-                            <span>鎮ㄧ殑绛旀锛�
+                            <span
+                                :class="{ 'c-g': questionData.check.isRight, 'c-r': questionData.check.isRight == false }">鎮ㄧ殑绛旀锛�
                                 <span v-for="(item, index) in questionData.check.value" :key="index">
                                     {{ item }}
                                 </span>
@@ -1685,20 +1686,7 @@
                 </div>
             </div>
         </div>
-        <!-- 37椤� -->
-        <div class="page-box" page="44">
-            <div v-if="showPageList.indexOf(44) > -1">
-                <ul class="fl al-c pad-t-55 pad-l-60 mb-45">
-                    <li class="header-left-Number">036</li>
-                    <li class="header-left-text">姘戣埅姒傝锛堢 2 鐗堬級</li>
-                </ul>
-                <div class="bodystyle">
-                    <div style="min-height:800px"><iframe :src="iframSrc" frameborder="0"
-                            style="width: 100%; height: 800px"></iframe></div>
-                </div>
-            </div>
-        </div>
-        <preView :isClear="dialogVisible" :md5="p_md5"  :pdfTitle="somePdfTitleValue" ref="pdfDialogRef"></preView>
+        <preView :isClear="dialogVisible" :md5="p_md5" :pdfTitle="somePdfTitleValue" ref="pdfDialogRef"></preView>
     </div>
 </template>
 
@@ -1717,8 +1705,7 @@
     },
     data() {
         return {
-            pdfDialogRef:"",
-            iframSrc: "",
+            pdfDialogRef: "",
             showChoiceAnswer: false,
             showQuestionAnswer: false,
             showCheckAnswer: false,
@@ -1791,7 +1778,6 @@
         if (CheckQuestion) {
             this.questionData.check = JSON.parse(CheckQuestion);
         }
-        this.getModel()
     },
     methods: {
         toUrl(val) {
@@ -1842,7 +1828,16 @@
         },
         // 澶氶�夐
         goCheckJudge() {
-            this.questionData.check.isComplete = true
+            this.questionData.check.isComplete = true;
+            const sortedAnswer = [...this.questionData.check.answer].sort();
+            const sortedUserAnswer = [...this.questionData.check.value].sort();
+
+            // 鐒跺悗姣旇緝鎺掑簭鍚庣殑鏁扮粍鏄惁鐩哥瓑  
+            if (JSON.stringify(sortedAnswer) === JSON.stringify(sortedUserAnswer)) {
+                this.questionData.check.isRight = true;
+            } else {
+                this.questionData.check.isRight = false;
+            }
             this.showCheckAnswer = true
         },
 
@@ -1875,17 +1870,6 @@
                 this.questionData.check.isComplete = false
             this.showCheckAnswer = false
         },
-        // 涓夌淮妯″瀷
-        getModel() {
-            const ctx = 'https://jsek.bnuic.com'
-            let localStr =
-                './static/modelView/index.html?md5=e405ef70e49088f167a0fd613b85b7b3' +
-                '&name=je' +
-                '&domain=' +
-                ctx +
-                '&target=iframe'
-            this.iframSrc = localStr
-        }
     }
 
 }
@@ -1906,7 +1890,8 @@
         margin: 0 !important;
         font-size: 16px !important;
         position: absolute !important;
-        left: 40% !important;
+        left: 50% !important;
+        transform: translateX(-50%);
         bottom: -2% !important;
     }
 
@@ -1918,4 +1903,14 @@
 .choice {
     padding: 0% !important;
 }
+
+
+hr {
+    margin-left: 0;
+    margin-bottom: 4px;
+    width: 15.5%;
+    border: none;
+    height: 2px;
+    background-color: #000;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.9.1