Ver Fonte

fixed #330

ali há 2 anos atrás
pai
commit
33706f2ba1
1 ficheiros alterados com 19 adições e 13 exclusões
  1. 19 13
      src/components/Widgets/Test/TestShow/TestShow.vue

+ 19 - 13
src/components/Widgets/Test/TestShow/TestShow.vue

@@ -44,19 +44,25 @@
             </div>
             <div>
               <div v-html="'<span>' + (answerSheetIndex + 1) + ' - </span>' + answerSheet.test_question_info.question_info.text" />
-              <div>
-                <entity-show v-if="mounted"
-                             ref="entityShow"
-                             v-model:value="questionInputs[answerSheetIndex]"
-                             :loaded-data="answerSheet"
-                             :show-close-button="false"
-                             :show-edit-button="false"
-                             :show-expand-button="false"
-                             :show-save-button="false"
-                             :show-index-button="false"
-                             :show-reload-button="false"
-                             :default-layout="false" />
-              </div>
+              <q-card class="q-mt-sm">
+                <q-card-section>
+                  <div>
+                    متن پاسخ:
+                  </div>
+                  <div>
+                    {{ answerSheet.answer_text }}
+                  </div>
+                  <div v-if="answerSheet.answer_attachment">
+                    <q-separator class="q-my-md" />
+                    <q-btn outline
+                           color="primary"
+                           icon="attachment"
+                           label="فایل پیوست"
+                           :href="answerSheet.answer_attachment"
+                           target="_blank" />
+                  </div>
+                </q-card-section>
+              </q-card>
             </div>
           </div>
         </q-item>