โครงสร้างอัตรากำลัง => ปรับ แก้ไข orgShortName
This commit is contained in:
parent
a77d6fd17e
commit
a3426a22d3
1 changed files with 10 additions and 0 deletions
|
|
@ -226,6 +226,10 @@ watch(
|
|||
props?.dataNode?.orgLevel !== 0
|
||||
? props?.dataNode.orgTreeCode
|
||||
: undefined;
|
||||
formData.orgShortName =
|
||||
props?.dataNode?.orgLevel !== 0
|
||||
? props?.dataNode.orgTreeShortName
|
||||
: undefined;
|
||||
}
|
||||
|
||||
if (level.value === 0) {
|
||||
|
|
@ -340,6 +344,12 @@ function selectOrgLevele(val: string, status: boolean = true) {
|
|||
<div class="col-2">
|
||||
<q-input
|
||||
v-model="formData.orgShortName"
|
||||
:readonly="
|
||||
(actionType === 'ADD' &&
|
||||
props?.dataNode?.orgLevel !== 0 &&
|
||||
level !== 0) ||
|
||||
(actionType === 'EDIT' && props?.dataNode?.orgLevel > 1)
|
||||
"
|
||||
ref="orgShortNameRef"
|
||||
dense
|
||||
outlined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue