fix: edit history
This commit is contained in:
parent
f2d9507668
commit
3d92004393
3 changed files with 28 additions and 2 deletions
|
|
@ -88,6 +88,8 @@ export default {
|
||||||
numberOf: 'number of {msg}',
|
numberOf: 'number of {msg}',
|
||||||
list: 'List of {msg}',
|
list: 'List of {msg}',
|
||||||
for: 'for {msg}',
|
for: 'for {msg}',
|
||||||
|
history: 'History',
|
||||||
|
historyEdit: 'Edit History',
|
||||||
},
|
},
|
||||||
|
|
||||||
menu: {
|
menu: {
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,8 @@ export default {
|
||||||
numberOf: 'จำนวน{msg}',
|
numberOf: 'จำนวน{msg}',
|
||||||
list: 'รายการ{msg}',
|
list: 'รายการ{msg}',
|
||||||
for: 'เพื่อ{msg}',
|
for: 'เพื่อ{msg}',
|
||||||
|
history: 'ประวัติ',
|
||||||
|
historyEdit: 'ประวัติการแก้ไข',
|
||||||
},
|
},
|
||||||
|
|
||||||
menu: {
|
menu: {
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ import FormEmployeeVisa from 'components/03_customer-management/FormEmployeeVisa
|
||||||
import DialogForm from 'components/DialogForm.vue';
|
import DialogForm from 'components/DialogForm.vue';
|
||||||
import SideMenu from 'components/SideMenu.vue';
|
import SideMenu from 'components/SideMenu.vue';
|
||||||
import TableEmpoloyee from 'src/components/03_customer-management/TableEmpoloyee.vue';
|
import TableEmpoloyee from 'src/components/03_customer-management/TableEmpoloyee.vue';
|
||||||
|
import HistoryEditComponent from 'src/components/03_customer-management/HistoryEditComponent.vue';
|
||||||
import { calculateAge, toISOStringWithTimezone } from 'src/utils/datetime';
|
import { calculateAge, toISOStringWithTimezone } from 'src/utils/datetime';
|
||||||
import {
|
import {
|
||||||
UploadFileGroup,
|
UploadFileGroup,
|
||||||
|
|
@ -1420,7 +1421,11 @@ const emptyCreateDialog = ref(false);
|
||||||
v-model:current-page="currentPageEmployee"
|
v-model:current-page="currentPageEmployee"
|
||||||
:list-employee="listEmployee"
|
:list-employee="listEmployee"
|
||||||
:columns-employee="columnsEmployee"
|
:columns-employee="columnsEmployee"
|
||||||
@history="(item: any) => {}"
|
@history="
|
||||||
|
(item: any) => {
|
||||||
|
openHistory(item.id);
|
||||||
|
}
|
||||||
|
"
|
||||||
@view="
|
@view="
|
||||||
async (item: any) => {
|
async (item: any) => {
|
||||||
employeeFormState.drawerModal = true;
|
employeeFormState.drawerModal = true;
|
||||||
|
|
@ -1706,7 +1711,11 @@ const emptyCreateDialog = ref(false);
|
||||||
:list-employee="listEmployee"
|
:list-employee="listEmployee"
|
||||||
:columns-employee="columnsEmployee"
|
:columns-employee="columnsEmployee"
|
||||||
:field-selected="fieldSelected"
|
:field-selected="fieldSelected"
|
||||||
@history="(item: any) => {}"
|
@history="
|
||||||
|
(item: any) => {
|
||||||
|
openHistory(item.id);
|
||||||
|
}
|
||||||
|
"
|
||||||
@view="
|
@view="
|
||||||
async (item: any) => {
|
async (item: any) => {
|
||||||
employeeFormState.drawerModal = true;
|
employeeFormState.drawerModal = true;
|
||||||
|
|
@ -4020,6 +4029,19 @@ const emptyCreateDialog = ref(false);
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DrawerInfo>
|
</DrawerInfo>
|
||||||
|
{{ employeeHistory }}
|
||||||
|
|
||||||
|
<DialogForm
|
||||||
|
:title="$t('general.historyEdit')"
|
||||||
|
v-model:modal="employeeHistoryDialog"
|
||||||
|
>
|
||||||
|
<div class="q-pa-md">
|
||||||
|
<HistoryEditComponent
|
||||||
|
v-if="employeeHistory"
|
||||||
|
v-model:history-list="employeeHistory"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</DialogForm>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue