修改用户管理的编辑和详情
Showing
1 changed file
with
7 additions
and
2 deletions
| ... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
| 6 | col="col3" /> | 6 | col="col3" /> |
| 7 | </ContentWrap> | 7 | </ContentWrap> |
| 8 | <ContentWrap title="入职部门" expandSwicth style="margin-top: 15px"> | 8 | <ContentWrap title="入职部门" expandSwicth style="margin-top: 15px"> |
| 9 | <EntryOrgList ref="entryOrgListRef" :organisationJson="organisationInfo"></EntryOrgList> | 9 | <EntryOrgList ref="entryOrgListRef" :organisationJson="organisationInfo" :disabled="isDetail"></EntryOrgList> |
| 10 | </ContentWrap> | 10 | </ContentWrap> |
| 11 | </div> | 11 | </div> |
| 12 | <div class="submit_btn_wrap"> | 12 | <div class="submit_btn_wrap"> |
| ... | @@ -74,6 +74,7 @@ const schemaParam1 = ref([ | ... | @@ -74,6 +74,7 @@ const schemaParam1 = ref([ |
| 74 | default: '', | 74 | default: '', |
| 75 | required: false, | 75 | required: false, |
| 76 | clearable: true, | 76 | clearable: true, |
| 77 | disabled: false, | ||
| 77 | visible: true, | 78 | visible: true, |
| 78 | }, | 79 | }, |
| 79 | { | 80 | { |
| ... | @@ -348,7 +349,11 @@ function setDetail() { | ... | @@ -348,7 +349,11 @@ function setDetail() { |
| 348 | } | 349 | } |
| 349 | 350 | ||
| 350 | nextTick(() => { | 351 | nextTick(() => { |
| 351 | formItem1.value.setValue(formData) | 352 | schemaParam1.value.forEach(s => { |
| 353 | s.disabled = isDetail.value; | ||
| 354 | s.default = formData[s.field]; | ||
| 355 | }) | ||
| 356 | // formItem1.value.setValue(formData) | ||
| 352 | organisationInfo.value = detailData.value.staffOrgRelRSVOList || [] | 357 | organisationInfo.value = detailData.value.staffOrgRelRSVOList || [] |
| 353 | }) | 358 | }) |
| 354 | } | 359 | } | ... | ... |
-
Please register or sign in to post a comment