+
ค้นหาผู้แสดงตนเป็นผู้สมัคร สว.
ค้นหาผู้แสดงตนเป็นผู้สมัคร สว. ใน จังหวัด/เขต
@@ -51,7 +51,7 @@
:aspect-ratio="1"
src="../assets/search.png"
width="100"
- style="position: absolute; bottom: -20px; right: 0px"
+ style="position: absolute; bottom: -30px; right: -10px"
>
ค้นหาผู้สมัคร สว.
@@ -69,7 +69,7 @@ export default {
diff --git a/src/components/edit/FormSteperEdit.vue b/src/components/edit/FormSteperEdit.vue
index 759e317..48c4966 100644
--- a/src/components/edit/FormSteperEdit.vue
+++ b/src/components/edit/FormSteperEdit.vue
@@ -4,7 +4,7 @@
-
+
-
+
+ กรอกเลขบัตรประชาชน 13 หลัก เช่น 1234567890123
+
@@ -133,14 +138,23 @@
+
+ ถัดไป
+
-
-
+ > -->
@@ -238,8 +252,12 @@
- Previousก่อนหน้า
@@ -250,9 +268,10 @@
payload.zone.province == null ||
payload.zone.id == null
"
+ size="large"
variant="tonal"
class="float-right"
- >nextถัดไป
- Previousก่อนหน้า
@@ -368,7 +387,8 @@
:disabled="!(checkOpt1.count == checkOpt1.checkcount)"
variant="tonal"
class="float-right"
- >nextถัดไป
@@ -429,7 +449,7 @@
>
@@ -504,20 +524,25 @@
บันทึก
+
+ ก่อนหน้า
+
-
-
+ >-->
-
+
@@ -577,7 +602,7 @@ export default {
(files) =>
!files ||
!files.some((file) => file.size > 3_097_152) ||
- "Avatar size should be less than 3 MB!",
+ "ไฟล์รูปต้องไม่เกิน 3MB!",
],
space: (v) => /^[^ ]+$/.test(v) || "must not contain spaces.",
username: (v) =>
@@ -599,7 +624,7 @@ export default {
const pattern = /[\u0E00-\u0E7F']/;
return pattern.test(v) || "ใช้ภาษาไทยเท่านั้น";
},
- required: [(value) => !!value || "Please fill out."],
+ required: [(value) => !!value || "กรุณากรอกข้อมูล"],
password: (v) =>
/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/.test(v) ||
// /^[a-zA-Z0-9?><;.,{}[\]\-_+=!@#$%\^&*|']*$/.test(v) ||
@@ -612,19 +637,22 @@ export default {
tel: [
(v) =>
// (parseInt(v) == v && v.length == 10) || 'เบอร์โทรไม่ถูกต้อง',
- /^([0-9]{10})$/.test(v) || "Invalid phone number",
+ /^([0-9]{10})$/.test(v) || "เบอร์โทรศัพท์ไม่ถูกต้อง",
],
id: [
(v) =>
- (parseInt(v) == v && v.length == 13 && validateThaiID(v)) ||
- "Invalid ID card number",
+ (/^\d+$/.test(v) &&
+ parseInt(v) == v &&
+ v.length == 13 &&
+ validateThaiID(v)) ||
+ "เลขบัตรประชาชนไม่ถูกต้อง",
],
- age: [(v) => parseInt(v) >= 40 || "Age must be over 40"],
+ age: [(v) => parseInt(v) >= 40 || "อายุต้องมากกว่า 40 ปี"],
email: [
(value) => {
const pattern =
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
- return pattern.test(value) || "invalid email";
+ return pattern.test(value) || "อีเมลไม่ต้องถูก";
},
],
},
diff --git a/src/components/form/FormSteper.vue b/src/components/form/FormSteper.vue
index 6cbf25d..b426953 100644
--- a/src/components/form/FormSteper.vue
+++ b/src/components/form/FormSteper.vue
@@ -4,7 +4,7 @@
-
+
-
+
+ กรอกเลขบัตรประชาชน 13 หลัก เช่น 1234567890123
+
@@ -90,6 +97,7 @@
variant="solo"
:rules="rules.required"
v-model="payload.education"
+ class="my-2"
>
@@ -131,14 +142,22 @@
-
-
-
+ ถัดไป
+
+
@@ -235,10 +254,9 @@
- Previousก่อนหน้า
-
nextถัดไป
- Previousก่อนหน้า
@@ -346,7 +366,8 @@
:disabled="!(checkOpt1.count == checkOpt1.checkcount)"
variant="tonal"
class="float-right"
- >nextถัดไป
@@ -408,7 +429,7 @@
>
@@ -483,17 +504,24 @@
บันทึก