แก้ไข UI / UX ทำ function search ใหม่ ตามบรีฟพี่อาร์ม
All checks were successful
frontend-action / build-image (push) Successful in 1m22s

This commit is contained in:
2024-04-25 19:11:29 +07:00
parent 6ae1017ad2
commit 5fc473780c
25 changed files with 623 additions and 297 deletions

View File

@@ -2,7 +2,7 @@
<div class="bg-yellow-page mt-5">
<v-container>
<div class="text-title text-center mt-10">
ตรวจเชคคณสมบ-กษณะตองหาม ของผจะสมคร สว.<br />
ตรวจเชคคณสมบ-กษณะตองหาม ของผจะสมคร สว.<br />
<!-- <v-icon icon="mdi-circle" color="white" class="mt-2"></v-icon> -->
</div>
<div class="text-center mb-10">
@@ -106,7 +106,7 @@
</div>
<div>
<v-icon icon=" mdi-menu-right" size="47" color="#1B76BA"></v-icon>
อยในระหวางถกเพกถอนสทธเลอกตงไมาคดนจะถงทดแลวหรอไม
อยในระหวางถกเพกถอนสทธเลอกตงไมาคดนจะถงทดแลวหรอไม
</div>
<div>
<v-icon icon=" mdi-menu-right" size="47" color="#1B76BA"></v-icon>
@@ -167,7 +167,7 @@
</div>
<div>
<v-icon icon=" mdi-menu-right" size="47" color="#1B76BA"></v-icon>
เปนพนกงานหรอลกจางของหนวยราชการ หนวยงานของร หรอรฐวสาหก
เปนพนกงานหรอลกจางของหนวยงานราชการ หนวยงานของร หรอรฐวสาหก
หรอเปนเจาหนาทนของร
</div>
<div>
@@ -219,13 +219,13 @@
</div>
<div>
<v-icon icon=" mdi-menu-right" size="47" color="#1B76BA"></v-icon>
เปนหรอเคยเปนสมาชกสภาทองถนหรบรหารทองถ เวนแต
เปนหรอเคยเปนสมาชกสภาทองถนหรบรหารทองถ เวนแต
ไดนจากการเปนสมาชกสภาทองถนหรอผบรหารทองถนมาแล
ไมอยกวาหาปบถงวนสมครรบเลอก
</div>
<div>
<v-icon icon=" mdi-menu-right" size="47" color="#1B76BA"></v-icon>
เปนบพการ สมรส หรอบตรของผดำรงตแหนงสมาชกสภา แทนราษฎร
เปนบพการ สมรส หรอบตรของผดำรงตแหนงสมาชกสภา แทนราษฎร
สมาชกวสภา าราชการการเมองสมาชกสภาทองถ
หรอผบรหารทองถ สมครรบเลอกเปนสมาชกวสภาในคราว
เดยวก หรอผดำรงตำแหนงใดในศาลรฐธรรมนญหรอองคกรอสระ

View File

@@ -1,6 +1,5 @@
<template>
<div>
<MainCheckVue/>
</div>
</template>

View File

@@ -1,30 +1,36 @@
<template>
<div>
<v-img
class="mx-auto"
:aspect-ratio="1"
src="@/assets/logo-title.png"
width="250"
></v-img>
<v-card
class="mx-auto pa-12 pb-8"
elevation="8"
max-width="600"
rounded="lg"
<div
n
v-if="
getUsername == '' || getUsername == null || getUsername == undefined
"
>
<v-form fast-fail @submit.prevent v-model="form1">
<div class="text-subtitle-1 text-medium-emphasis">ID card number</div>
<v-img
class="mx-auto"
:aspect-ratio="1"
src="@/assets/logo-title.png"
width="250"
></v-img>
<v-card
class="mx-auto pa-12 pb-8"
elevation="8"
max-width="600"
rounded="lg"
>
<v-form fast-fail @submit.prevent v-model="form1">
<div class="text-subtitle-1 text-medium-emphasis">ID card number</div>
<v-text-field
density="compact"
placeholder="เลขประจำตัว 13 หลัก"
prepend-inner-icon="mdi-card-account-details"
variant="outlined"
color="#4c884c"
v-model="payload.cid"
:rules="rules.id"
></v-text-field>
<!--
<v-text-field
density="compact"
placeholder="เลขประจำตัว 13 หลัก"
prepend-inner-icon="mdi-card-account-details"
variant="outlined"
color="#4c884c"
v-model="payload.cid"
:rules="rules.id"
></v-text-field>
<!--
<div class="text-subtitle-1 text-medium-emphasis d-flex align-center justify-space-between">
Password
@@ -37,20 +43,20 @@
Forgot login password?</a>
</div> -->
<v-text-field
:append-inner-icon="visible ? 'mdi-eye-off' : 'mdi-eye'"
:type="visible ? 'text' : 'password'"
density="compact"
placeholder="เบอร์โทรศัพท์"
prepend-inner-icon="mdi-lock-outline"
variant="outlined"
@click:append-inner="visible = !visible"
v-model="payload.phone"
:rules="rules.tel"
color="#4c884c"
></v-text-field>
<v-text-field
:append-inner-icon="visible ? 'mdi-eye-off' : 'mdi-eye'"
:type="visible ? 'text' : 'password'"
density="compact"
placeholder="เบอร์โทรศัพท์"
prepend-inner-icon="mdi-lock-outline"
variant="outlined"
@click:append-inner="visible = !visible"
v-model="payload.phone"
:rules="rules.tel"
color="#4c884c"
></v-text-field>
<!-- <v-card
<!-- <v-card
class="mb-12"
color="surface-variant"
variant="tonal"
@@ -60,24 +66,65 @@
</v-card-text>
</v-card> -->
<v-btn
class="mb-8"
size="large"
variant="tonal"
block
@click="login"
color="#4c884c"
:disabled="!form1"
>
Log In
<v-btn
class="mb-8"
size="large"
variant="tonal"
block
@click="login"
color="#4c884c"
:disabled="!form1"
>
Log In
</v-btn>
</v-form>
</v-card>
</div>
<div v-if="getUsername" class="text-normal text-center py-10">
<v-icon
icon="mdi-alert-circle-outline"
size="35"
color="#4c884c"
></v-icon>
คุณเข้าสู่ระบบอยู่แล้ว
<div class="mt-10">
<v-btn elevated color="#DD6C31" class="text-normal ma-6" height="85" to="/">
<span class="text-normal"> กลับหน้าหลัก</span>
<v-img
:aspect-ratio="1"
src="../assets/logo.png"
width="85"
style="position: absolute; bottom: -40px; left: -30px"
></v-img>
</v-btn>
</v-form>
</v-card>
<v-btn
elevated
color="#DD6C31"
class="text-normal btn-w ma-6"
height="85"
to="/search"
>
<v-img
:aspect-ratio="1"
src="../assets/search.png"
width="90"
style="position: absolute; bottom: -45px; right: 0px"
></v-img>
<span class="text-normal"> ค้นหาผู้สมัคร สว.</span>
</v-btn>
</div>
</div>
</div>
</template>
<script>
import { mapGetters } from "vuex";
import { client } from "@/utils/trpc";
export default {
computed: {
...mapGetters(["getUsername", "getImg"]),
},
data: () => ({
form1: false,
visible: false,
@@ -99,7 +146,9 @@ export default {
.mutate({})
.then((data) => {
localStorage.setItem("username", data.firstName);
localStorage.setItem("img", data.image);
this.$store.commit("setUsername", data.firstName);
this.$store.commit("setImg", data.image);
// this.$emitter.emit("loginUser", data.firstName );
this.$router.push("/");

View File

@@ -1,13 +1,26 @@
<template lang="">
<div>
<FormMain />
<div>
<FormMain v-if="getUsername" />
<div
v-if="
getUsername == '' || getUsername == null || getUsername == undefined
"
class="text-sub text-center py-10"
>
<v-icon icon="mdi-alert-circle-outline" size="35" color="red"></v-icon>
ไม่สามารถเข้าถึงได้ กรุณาเข้าสู่ระบบ
</div>
</template>
<script>
import FormMain from "../components/edit/FormMainEdit.vue";
export default {
components: { FormMain },
};
</script>
<style lang=""></style>
</div>
</template>
<script>
import FormMain from "../components/edit/FormMainEdit.vue";
import { mapGetters } from "vuex";
export default {
components: { FormMain },
computed: {
...mapGetters(["getUsername", "getImg"]),
},
};
</script>
<style lang=""></style>

View File

@@ -1,12 +1,26 @@
<template lang="">
<div>
<FormMain />
<FormMain v-if="
getUsername == '' || getUsername == null || getUsername == undefined
"/>
<div
v-if="
getUsername"
class="text-sub text-center py-10"
>
<v-icon icon="mdi-alert-circle-outline" size="35" color="red"></v-icon>
ไม่สามารถเข้าถึงได้ คุณลงทะเบียนแสดงตัวตนแล้ว
</div>
</div>
</template>
<script>
import { mapGetters } from "vuex";
import FormMain from "../components/form/FormMain.vue";
export default {
components: { FormMain },
computed: {
...mapGetters(["getUsername", "getImg"]),
},
};
</script>
<style lang=""></style>

View File

@@ -1,11 +1,24 @@
<template>
<div>
<FormMain />
<FormMain v-if="getUsername" />
<div
v-if="
getUsername == '' || getUsername == null || getUsername == undefined
"
class="text-sub text-center py-10"
>
<v-icon icon="mdi-alert-circle-outline" size="35" color="red"></v-icon>
ไม่สามารถเข้าถึงได้ กรุณาเข้าสู่ระบบ
</div>
</div>
</template>
<script>
import FormMain from "../components/search/SearchMain.vue";
import { mapGetters } from "vuex";
export default {
computed: {
...mapGetters(["getUsername", "getImg"]),
},
components: {
FormMain,
},