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