diff --git a/src/components/Table.vue b/src/components/Table.vue
index 0f1f610..b81e171 100644
--- a/src/components/Table.vue
+++ b/src/components/Table.vue
@@ -71,13 +71,13 @@
{{ col.label }}
-
+
-
+
@@ -94,7 +94,8 @@ const props = defineProps({
inputvisible: Array,
editvisible: Boolean,
nameHeader: Boolean,
- bottom:Boolean,
+ bottom: Boolean,
+ boss: Boolean,
addData: {
type: Boolean,
defualt: true
diff --git a/src/modules/01_exam/components/Form/Career.vue b/src/modules/01_exam/components/Form/Career.vue
index 8c8e9a3..41db96f 100644
--- a/src/modules/01_exam/components/Form/Career.vue
+++ b/src/modules/01_exam/components/Form/Career.vue
@@ -13,6 +13,7 @@
:edit="clickEdit"
:addData="false"
:bottom="true"
+ :editBtn="false"
:editData="status == 'register' || status == 'rejectRegister'"
name="ประวัติการทำงาน (ตั้งแต่เริ่มปฏิบัติงานกับกรุงเทพมหานคร - ปัจจุบัน)"
icon="mdi-briefcase"
@@ -33,7 +34,7 @@
{{ col.value }}
-
+
{
}
dayDiff += daysInMonth[_startDate.getMonth()]
}
+ if (dayDiff >= 30) {
+ monthDiff = monthDiff + 1
+ dayDiff = 0
+ if (monthDiff >= 12) {
+ yearDiff = yearDiff + 1
+ monthDiff = 0
+ }
+ }
rangeDate.value = `${yearDiff > 0 ? yearDiff + ' ปี ' : ''}${
monthDiff > 0 ? monthDiff + ' เดือน ' : ''
}${dayDiff > 0 ? dayDiff + ' วัน ' : ''}`
@@ -490,6 +499,14 @@ const calDateSplit = async (startDate: Date, endDate: Date) => {
}
dayDiff += daysInMonth[_startDate.getMonth()]
}
+ if (dayDiff >= 30) {
+ monthDiff = monthDiff + 1
+ dayDiff = 0
+ if (monthDiff >= 12) {
+ yearDiff = yearDiff + 1
+ monthDiff = 0
+ }
+ }
var obj = {
yearDiff: yearDiff,
monthDiff: monthDiff,