refactor: header isHeadOff
This commit is contained in:
parent
cfaf53a70b
commit
ecc8009a99
1 changed files with 7 additions and 2 deletions
|
|
@ -346,8 +346,13 @@ async function openDialog(
|
||||||
modal.value = true;
|
modal.value = true;
|
||||||
|
|
||||||
if (isRoleInclude(['branch_manager'])) {
|
if (isRoleInclude(['branch_manager'])) {
|
||||||
hqId.value = myBranch.value?.[0].headOfficeId || '';
|
hqId.value =
|
||||||
brId.value = myBranch.value?.[0].id;
|
myBranch.value?.[0].isHeadOffice === true
|
||||||
|
? myBranch.value?.[0].id
|
||||||
|
: myBranch.value?.[0].headOfficeId || '';
|
||||||
|
|
||||||
|
brId.value =
|
||||||
|
myBranch.value?.[0].isHeadOffice === true ? '' : myBranch.value?.[0].id;
|
||||||
}
|
}
|
||||||
} else if (action === 'INFO') {
|
} else if (action === 'INFO') {
|
||||||
if (!userData.value) return;
|
if (!userData.value) return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue