|
@@ -58,8 +58,9 @@ const handleColumns = (columns: any, status?: string) => {
|
|
|
formatter: ({ cellValue }: any) => {
|
|
formatter: ({ cellValue }: any) => {
|
|
|
if (!cellValue) return '--'
|
|
if (!cellValue) return '--'
|
|
|
const rangeData = cellValue.split(';')
|
|
const rangeData = cellValue.split(';')
|
|
|
|
|
+ console.log('rangeData', rangeData)
|
|
|
const leftDate = rangeData[0] ? formatTimezone(rangeData[0]) : '_'
|
|
const leftDate = rangeData[0] ? formatTimezone(rangeData[0]) : '_'
|
|
|
- const rightDate = rangeData[1] ? formatTimezone(rangeData[0]) : '_'
|
|
|
|
|
|
|
+ const rightDate = rangeData[1] ? formatTimezone(rangeData[1]) : '_'
|
|
|
return leftDate + ' -- ' + rightDate
|
|
return leftDate + ' -- ' + rightDate
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -394,7 +395,7 @@ defineExpose({
|
|
|
v-if="
|
|
v-if="
|
|
|
!isEmployeeRole &&
|
|
!isEmployeeRole &&
|
|
|
row.status === 'Approved' &&
|
|
row.status === 'Approved' &&
|
|
|
- row.modify_by === userStore.userInfo.uname
|
|
|
|
|
|
|
+ row.create_by === userStore.userInfo.uname
|
|
|
"
|
|
"
|
|
|
@click="clickEmailBtn(row)"
|
|
@click="clickEmailBtn(row)"
|
|
|
class="action-btn el-button--blue"
|
|
class="action-btn el-button--blue"
|
|
@@ -410,7 +411,7 @@ defineExpose({
|
|
|
v-if="
|
|
v-if="
|
|
|
!isEmployeeRole &&
|
|
!isEmployeeRole &&
|
|
|
(row.status === 'Pending Approval' || row.status === 'Rejected') &&
|
|
(row.status === 'Pending Approval' || row.status === 'Rejected') &&
|
|
|
- row.modify_by === userStore.userInfo.uname
|
|
|
|
|
|
|
+ row.create_by === userStore.userInfo.uname
|
|
|
"
|
|
"
|
|
|
>
|
|
>
|
|
|
<span class="font_family icon-icon_edit_b"> </span>
|
|
<span class="font_family icon-icon_edit_b"> </span>
|
|
@@ -423,7 +424,7 @@ defineExpose({
|
|
|
v-if="
|
|
v-if="
|
|
|
!isEmployeeRole &&
|
|
!isEmployeeRole &&
|
|
|
row.status === 'Pending Approval' &&
|
|
row.status === 'Pending Approval' &&
|
|
|
- row.modify_by === userStore.userInfo.uname
|
|
|
|
|
|
|
+ row.create_by === userStore.userInfo.uname
|
|
|
"
|
|
"
|
|
|
>
|
|
>
|
|
|
<span class="font_family icon-icon_cancelled_b"> </span>
|
|
<span class="font_family icon-icon_cancelled_b"> </span>
|