tested linkage add step
This commit is contained in:
parent
636cd67923
commit
b4efa1204f
2 changed files with 100 additions and 13 deletions
|
|
@ -23,14 +23,21 @@ async function fetchDeviceLists() {
|
|||
async function readDevice() {
|
||||
showLoader();
|
||||
await store.readDevice($q);
|
||||
await store.getInfo($q); // ดึงข้อมูล CID
|
||||
await store.postReadIdCard($q); // ดึงข้อมูล id card จากเครื่องอ่านบัตร
|
||||
await store.amiEnvironment($q);
|
||||
await store.amiConnect($q);
|
||||
// await store.getInfo($q); // ดึงข้อมูล CID
|
||||
// await store.postReadIdCard($q); // ดึงข้อมูล id card จากเครื่องอ่านบัตร
|
||||
// await store.amiEnvironment($q);
|
||||
// await store.amiConnect($q);
|
||||
hideLoader();
|
||||
}
|
||||
|
||||
// 3. ขอข้อมูล x-Key (9080)
|
||||
async function amiRequest() {
|
||||
showLoader();
|
||||
await store.amiRequest($q, 9080);
|
||||
hideLoader();
|
||||
}
|
||||
|
||||
// 4. เชื่อมต่อและใส่ PIN
|
||||
async function verifyPin() {
|
||||
showLoader();
|
||||
await store.authentication($q);
|
||||
|
|
@ -157,9 +164,9 @@ function onClose() {
|
|||
</div>
|
||||
</q-timeline-entry>
|
||||
|
||||
<!-- เชื่อมต่อและใส่ PIN -->
|
||||
<!-- ขอข้อมูล 9080 -->
|
||||
<q-timeline-entry
|
||||
title="เชื่อมต่อและใส่ PIN"
|
||||
title="ตรวจสอบข้อมูล"
|
||||
:icon="
|
||||
store.step === 3
|
||||
? 'mdi-pencil'
|
||||
|
|
@ -170,6 +177,29 @@ function onClose() {
|
|||
:color="store.step < 3 ? 'grey-4' : ''"
|
||||
>
|
||||
<div class="row" v-if="store.step === 3">
|
||||
<div class="q-col-gutter-sm">
|
||||
<q-btn
|
||||
color="primary"
|
||||
label="ดำเนินการต่อ"
|
||||
@click="amiRequest"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</q-timeline-entry>
|
||||
|
||||
<!-- เชื่อมต่อและใส่ PIN -->
|
||||
<q-timeline-entry
|
||||
title="เชื่อมต่อและใส่ PIN"
|
||||
:icon="
|
||||
store.step === 4
|
||||
? 'mdi-pencil'
|
||||
: store.step > 4
|
||||
? 'done'
|
||||
: 'mdi-numeric-4'
|
||||
"
|
||||
:color="store.step < 4 ? 'grey-4' : ''"
|
||||
>
|
||||
<div class="row" v-if="store.step === 4">
|
||||
<q-btn
|
||||
color="primary"
|
||||
label="ดำเนินการต่อ"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue