|
@@ -143,6 +143,7 @@ |
|
@@ -143,6 +143,7 @@ |
143
|
const getTitle = computed(() => (!unref(isUpdate) ? '新增租户管理员' : '编辑租户管理员'));
|
143
|
const getTitle = computed(() => (!unref(isUpdate) ? '新增租户管理员' : '编辑租户管理员'));
|
144
|
|
144
|
|
145
|
async function handleSubmit() {
|
145
|
async function handleSubmit() {
|
|
|
146
|
+ setDrawerProps({ confirmLoading: true });
|
146
|
try {
|
147
|
try {
|
147
|
const values = await validate();
|
148
|
const values = await validate();
|
148
|
const requestParams = {
|
149
|
const requestParams = {
|
|
@@ -158,13 +159,14 @@ |
|
@@ -158,13 +159,14 @@ |
158
|
: null,
|
159
|
: null,
|
159
|
tenantId: tenantId.value,
|
160
|
tenantId: tenantId.value,
|
160
|
};
|
161
|
};
|
161
|
- setDrawerProps({ confirmLoading: true });
|
|
|
162
|
saveTenantAdmin(requestParams as any as UserDTO).then(() => {
|
162
|
saveTenantAdmin(requestParams as any as UserDTO).then(() => {
|
163
|
closeDrawer(); //关闭侧框
|
163
|
closeDrawer(); //关闭侧框
|
164
|
emit('success');
|
164
|
emit('success');
|
165
|
});
|
165
|
});
|
166
|
} finally {
|
166
|
} finally {
|
167
|
- setDrawerProps({ confirmLoading: false });
|
167
|
+ setTimeout(() => {
|
|
|
168
|
+ setDrawerProps({ confirmLoading: false });
|
|
|
169
|
+ }, 300);
|
168
|
}
|
170
|
}
|
169
|
}
|
171
|
}
|
170
|
|
172
|
|