From 56548bc9a9936f0c982028036a2da1c76203b723 Mon Sep 17 00:00:00 2001 From: Net Date: Wed, 7 Aug 2024 11:30:28 +0700 Subject: [PATCH] refactor: add branchLabelNo --- .../02_personnel-management/MainPage.vue | 38 ++++++++++++++++++- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/src/pages/02_personnel-management/MainPage.vue b/src/pages/02_personnel-management/MainPage.vue index 7ca2143e..1180639f 100644 --- a/src/pages/02_personnel-management/MainPage.vue +++ b/src/pages/02_personnel-management/MainPage.vue @@ -87,6 +87,11 @@ const defaultFormData = { const modeView = ref(false); const fieldSelectedOption = ref<{ label: string; value: string }[]>([ + { + label: 'branchLabelNo', + value: 'branchLabelNo', + }, + { label: 'fullname', value: 'name', @@ -133,8 +138,24 @@ const formMenuIcon = ref<{ icon: string; color: string; bgColor: string }[]>([ ]); const fieldSelected = ref< - ('name' | 'type' | 'telephoneNo' | 'birthDate' | 'email' | 'userRole')[] ->(['name', 'type', 'telephoneNo', 'birthDate', 'email', 'userRole']); + ( + | 'branchLabelNo' + | 'name' + | 'type' + | 'telephoneNo' + | 'birthDate' + | 'email' + | 'userRole' + )[] +>([ + 'branchLabelNo', + 'name', + 'type', + 'telephoneNo', + 'birthDate', + 'email', + 'userRole', +]); const refImageUpload = ref>(); const fieldDisplay = ref(); @@ -239,6 +260,13 @@ const inputFileImg = (() => { const reader = new FileReader(); const columns = [ + { + name: 'branchLabelNo', + align: 'center', + label: 'orderNumber', + field: 'branchNo', + }, + { name: 'name', align: 'left', @@ -1124,6 +1152,12 @@ watch( }" :props="props" > + + {{ (currentPage - 1) * pageSize + props.rowIndex + 1 }} +