refactor: branch card
This commit is contained in:
parent
e931d3b60e
commit
ef9c99bac2
2 changed files with 84 additions and 68 deletions
|
|
@ -135,11 +135,9 @@ const beforeBranch = ref<{ id: string; code: string }>({
|
|||
const inputSearch = ref<string>('');
|
||||
const fieldBranch = ref(['all', 'branchHQLabel', 'branchLabel']);
|
||||
const fieldDisplay = ref([
|
||||
'branchLabelName',
|
||||
'branchLabelTel',
|
||||
'branchLabelAddress',
|
||||
'branchLabelType',
|
||||
'branchLabelStatus',
|
||||
]);
|
||||
const fieldSelected = ref<string[]>(fieldDisplay.value);
|
||||
const fieldSelectedBranch = ref<{
|
||||
|
|
@ -888,7 +886,6 @@ watch(locale, () => {
|
|||
branchLabelType: $t(
|
||||
item.isHeadOffice ? 'branchHQLabel' : 'branchLabel',
|
||||
),
|
||||
branchLabelStatus: $t(`status${item.status}`),
|
||||
}"
|
||||
:field-selected="fieldSelected"
|
||||
:badge-field="['branchLabelStatus']"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue