Showing
2 changed files
with
5 additions
and
5 deletions
| ... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 | width="60%" |
| 8 | 8 | @ok="handleSubmit" |
| 9 | 9 | > |
| 10 | - <BasicForm @register="tenantAdminForm"> </BasicForm> | |
| 10 | + <BasicForm @register="tenantAdminForm" /> | |
| 11 | 11 | </BasicDrawer> |
| 12 | 12 | </template> |
| 13 | 13 | <script lang="ts"> |
| ... | ... | @@ -25,7 +25,7 @@ |
| 25 | 25 | }, |
| 26 | 26 | setup(_, { emit }) { |
| 27 | 27 | const isUpdate = ref(true); |
| 28 | - const tenantCode = ref(''); | |
| 28 | + const tenantId = ref(''); | |
| 29 | 29 | const formSchema: FormSchema[] = [ |
| 30 | 30 | { |
| 31 | 31 | field: 'id', |
| ... | ... | @@ -81,7 +81,7 @@ |
| 81 | 81 | async (data) => { |
| 82 | 82 | await resetFields(); |
| 83 | 83 | isUpdate.value = !!data?.isUpdate; |
| 84 | - tenantCode.value = data?.tenantCode; | |
| 84 | + tenantId.value = data?.tenantId; | |
| 85 | 85 | await updateSchema({ field: 'title', componentProps: { disabled: false } }); |
| 86 | 86 | if (unref(isUpdate)) { |
| 87 | 87 | await setFieldsValue({ |
| ... | ... | @@ -106,7 +106,7 @@ |
| 106 | 106 | typeof values.tenantExpireTime != 'undefined' && values.tenantExpireTime != null |
| 107 | 107 | ? values.tenantExpireTime.format('YYYY-MM-DD HH:mm:ss') |
| 108 | 108 | : null, |
| 109 | - tenantCode: tenantCode.value, | |
| 109 | + tenantId: tenantId.value, | |
| 110 | 110 | }; |
| 111 | 111 | setDrawerProps({ confirmLoading: true }); |
| 112 | 112 | saveTenantAdmin(requestParams as any as UserDTO).then(() => { | ... | ... |