ali 2 лет назад
Родитель
Сommit
cbf1df2d2b

+ 15 - 2
src/components/Widgets/Classroom/AdminClassroomShow/components/AnnounceResultList.vue

@@ -56,11 +56,23 @@
           </q-menu>
           </q-menu>
         </q-btn>
         </q-btn>
       </template>
       </template>
+      <template v-else-if="inputData.col.name === 'is_sent_by_post'">
+        <q-badge :color="inputData.col.value ? 'green' : 'red'"
+                 outline>
+          <template v-if="inputData.col.value">
+            پست شده
+          </template>
+          <template v-else>
+            پست نشده
+          </template>
+        </q-badge>
+      </template>
       <template v-else-if="inputData.col.name === 'certification'">
       <template v-else-if="inputData.col.name === 'certification'">
         <a v-if="inputData.col.value"
         <a v-if="inputData.col.value"
            :href="inputData.col.value"
            :href="inputData.col.value"
            target="_blank">
            target="_blank">
-          <q-img :src="inputData.col.value" />
+          <q-btn color="primary"
+                 label="دانلود مدرک" />
         </a>
         </a>
         <q-icon v-else
         <q-icon v-else
                 name="close"
                 name="close"
@@ -110,6 +122,7 @@ export default {
       announceResultListInputs: [
       announceResultListInputs: [
         { type: 'select', name: 'status', value: null, label: 'وضعیت نهایی', options: (new TranscriptSheet()).statusEnums, placeholder: ' ', col: 'col-md-3 col-12' },
         { type: 'select', name: 'status', value: null, label: 'وضعیت نهایی', options: (new TranscriptSheet()).statusEnums, placeholder: ' ', col: 'col-md-3 col-12' },
         { type: 'select', name: 'registration__status', value: null, label: 'وضعیت ثبت نام', options: (new Registration()).statusEnums, placeholder: ' ', col: 'col-md-3 col-12' },
         { type: 'select', name: 'registration__status', value: null, label: 'وضعیت ثبت نام', options: (new Registration()).statusEnums, placeholder: ' ', col: 'col-md-3 col-12' },
+        { type: 'optionGroupRadio', name: 'certification__isnull', value: null, label: 'مدرک', options: [{ label: 'همه موارد', value: null }, { label: 'آپلود شده', value: false }, { label: 'آپلود نشده', value: true }], placeholder: ' ', col: 'col-md-3 col-12' },
         { type: 'hidden', name: 'registration__classroom', value: classroomId },
         { type: 'hidden', name: 'registration__classroom', value: classroomId },
         {
         {
           type: BtnControlComp,
           type: BtnControlComp,
@@ -179,7 +192,7 @@ export default {
             required: true,
             required: true,
             label: 'ارسال شده با پست',
             label: 'ارسال شده با پست',
             align: 'left',
             align: 'left',
-            field: row => row.is_sent_by_post ? 'ارسال شده' : 'ارسال نشده'
+            field: row => row.is_sent_by_post
           },
           },
           {
           {
             name: 'certification',
             name: 'certification',