refactor: add branchLabelNo
This commit is contained in:
parent
2ba0b9c52f
commit
56548bc9a9
1 changed files with 36 additions and 2 deletions
|
|
@ -87,6 +87,11 @@ const defaultFormData = {
|
||||||
const modeView = ref(false);
|
const modeView = ref(false);
|
||||||
|
|
||||||
const fieldSelectedOption = ref<{ label: string; value: string }[]>([
|
const fieldSelectedOption = ref<{ label: string; value: string }[]>([
|
||||||
|
{
|
||||||
|
label: 'branchLabelNo',
|
||||||
|
value: 'branchLabelNo',
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
label: 'fullname',
|
label: 'fullname',
|
||||||
value: 'name',
|
value: 'name',
|
||||||
|
|
@ -133,8 +138,24 @@ const formMenuIcon = ref<{ icon: string; color: string; bgColor: string }[]>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const fieldSelected = ref<
|
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<InstanceType<typeof ImageUploadDialog>>();
|
const refImageUpload = ref<InstanceType<typeof ImageUploadDialog>>();
|
||||||
const fieldDisplay = ref();
|
const fieldDisplay = ref();
|
||||||
|
|
@ -239,6 +260,13 @@ const inputFileImg = (() => {
|
||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
|
{
|
||||||
|
name: 'branchLabelNo',
|
||||||
|
align: 'center',
|
||||||
|
label: 'orderNumber',
|
||||||
|
field: 'branchNo',
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
@ -1124,6 +1152,12 @@ watch(
|
||||||
}"
|
}"
|
||||||
:props="props"
|
:props="props"
|
||||||
>
|
>
|
||||||
|
<q-td
|
||||||
|
class="text-center"
|
||||||
|
v-if="fieldSelected.includes('branchLabelNo')"
|
||||||
|
>
|
||||||
|
{{ (currentPage - 1) * pageSize + props.rowIndex + 1 }}
|
||||||
|
</q-td>
|
||||||
<q-td v-if="fieldSelected.includes('name')">
|
<q-td v-if="fieldSelected.includes('name')">
|
||||||
<div class="row items-center">
|
<div class="row items-center">
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue