hgh 1 год назад
Родитель
Сommit
8ba29027d5
1 измененных файлов с 12 добавлено и 1 удалено
  1. 12 1
      src/pages/User/Profile/projectInfo.vue

+ 12 - 1
src/pages/User/Profile/projectInfo.vue

@@ -41,6 +41,14 @@
                      :show-edit-button="false"
                      :show-index-button="false"
                      :show-reload-button="false" />
+        <entity-show v-if="projectLoaded && Object.keys(currentUserAttendanceSheet).length > 0 && currentUserAttendanceSheet.notation!==null && currentUserAttendanceSheet.notation!=='' && currentUserAttendanceSheet.notation!=='<br>'"
+                     v-model:value="graderShowInputs"
+                     :loaded-data="currentUserAttendanceSheet"
+                     :default-layout="false"
+                     :show-expand-button="false"
+                     :show-edit-button="false"
+                     :show-index-button="false"
+                     :show-reload-button="false" />
       </template>
     </entity-show>
   </div>
@@ -114,7 +122,10 @@ export default {
       attendanceSheetsShowInputs: [
         { type: 'separator', name: 'space', label: 'انجام پروژه', className: 'custom-separator', col: 'col-12' },
         { type: 'inputEditor', name: 'answer_text', responseKey: 'answer_text', label: 'متن پاسخ', placeholder: ' ', col: 'col-12' },
-        { type: 'file', name: 'answer_attachment', responseKey: 'answer_attachment', label: 'فایل ضمیمه', placeholder: ' ', col: 'col-md-4 col-12' },
+        { type: 'file', name: 'answer_attachment', responseKey: 'answer_attachment', label: 'فایل ضمیمه', placeholder: ' ', col: 'col-md-4 col-12' }
+      ],
+
+      graderShowInputs: [
         { type: 'separator', name: 'space', label: 'توضیحات مصحح', className: 'custom-separator', col: 'col-12' },
         { type: 'inputEditor', name: 'notation', responseKey: 'notation', label: '', placeholder: ' ', col: 'col-12' }
       ]