refactor: disable DonwloadCandidatePassExam
This commit is contained in:
parent
08fec651f2
commit
6e8dbfc375
1 changed files with 9 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, useAttrs, watch } from "vue";
|
import { ref, useAttrs, watch, computed } from "vue";
|
||||||
import { checkPermission } from "@/utils/permissions";
|
import { checkPermission } from "@/utils/permissions";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import genReport from "@/plugins/genreport";
|
import genReport from "@/plugins/genreport";
|
||||||
|
|
@ -128,6 +128,10 @@ const props = defineProps({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const isPass = computed(() => {
|
||||||
|
return attrs.value.rows.some((e: any) => e.pass === "ได้");
|
||||||
|
});
|
||||||
|
|
||||||
// Pagination - initial pagination
|
// Pagination - initial pagination
|
||||||
const initialPagination = ref<any>({
|
const initialPagination = ref<any>({
|
||||||
sortBy: null,
|
sortBy: null,
|
||||||
|
|
@ -598,13 +602,14 @@ watch(
|
||||||
<q-item-section>ดาวน์โหลดรายชื่อผู้มีสิทธิ์สอบ</q-item-section>
|
<q-item-section>ดาวน์โหลดรายชื่อผู้มีสิทธิ์สอบ</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
|
:disable="!isPass"
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@click.stop.prevent="clickPassExam()"
|
@click.stop.prevent="clickPassExam()"
|
||||||
>
|
>
|
||||||
<q-item-section
|
<q-item-section>
|
||||||
>ดาวน์โหลดรายชื่อผู้สอบคัดเลือกได้</q-item-section
|
ดาวน์โหลดรายชื่อผู้สอบคัดเลือกได้
|
||||||
>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup @click="downloadFile()">
|
<q-item clickable v-close-popup @click="downloadFile()">
|
||||||
<q-item-section>ดาวน์โหลดจัดการรายชื่อผู้สมัคร</q-item-section>
|
<q-item-section>ดาวน์โหลดจัดการรายชื่อผู้สมัคร</q-item-section>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue