ลบ component สมัครที่ไม่ใช้
This commit is contained in:
parent
abe8e9186c
commit
98738aa814
14 changed files with 20 additions and 697 deletions
|
|
@ -3,7 +3,6 @@
|
|||
<q-toolbar class="q-pa-sm text-center">
|
||||
<q-toolbar-title class="text-dark text-weight-medium">
|
||||
{{ tittle }}
|
||||
<!-- <q-btn color="primary" label="ออกจากระบบ" push size="sm" v-close-popup @click="doLogout" /> -->
|
||||
</q-toolbar-title>
|
||||
</q-toolbar>
|
||||
<q-stepper
|
||||
|
|
@ -15,17 +14,6 @@
|
|||
done-icon="check"
|
||||
:active-icon="stepRaw === step && stepRaw != 4 ? 'mdi-pencil' : 'mdi-eye'"
|
||||
>
|
||||
<!-- <q-step
|
||||
:done="step > 1"
|
||||
:disable="stepRaw < 1"
|
||||
:name="1"
|
||||
title="อ่านคำชี้แจง"
|
||||
:icon="
|
||||
stepRaw >= 1 ? (stepRaw == 1 ? 'mdi-pencil' : 'mdi-check-bold') : 'mdi-pencil'
|
||||
"
|
||||
>
|
||||
<ExamDetail :fetchStep="fetchStep" :status="status" />
|
||||
</q-step> -->
|
||||
<q-step
|
||||
:done="step > 2"
|
||||
:disable="stepRaw < 2"
|
||||
|
|
@ -69,9 +57,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useExamDataStore } from '@/modules/01_exam/store'
|
||||
import keycloak from '@/plugins/keycloak'
|
||||
import http from '@/plugins/http'
|
||||
import config from '@/app.config'
|
||||
import ExamForm from '@/modules/01_exam/components/ExamForm.vue'
|
||||
|
|
@ -80,7 +66,6 @@ import ExamFinished from '@/modules/01_exam/components/ExamFinished.vue'
|
|||
import Conference from '@/modules/01_exam/components/Conference.vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
const $q = useQuasar()
|
||||
const store = useExamDataStore()
|
||||
const step = ref<number>(1)
|
||||
const stepRaw = ref<number>(1)
|
||||
|
|
@ -181,22 +166,6 @@ const consendOk = () => {
|
|||
// store.consend = true
|
||||
// saveData()
|
||||
}
|
||||
|
||||
/**
|
||||
* logout keycloak
|
||||
* confirm ก่อนออกจากระบบ
|
||||
*/
|
||||
const doLogout = () => {
|
||||
$q.dialog({
|
||||
title: 'ยืนยันการออกจากระบบ',
|
||||
message: `ต้องการออกจากระบบใช้หรือไม่?`,
|
||||
cancel: 'ยกเลิก',
|
||||
ok: 'ยืนยัน',
|
||||
persistent: true
|
||||
}).onOk(() => {
|
||||
keycloak.logout()
|
||||
})
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.q-stepper {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue