feat(系统设置): 认证页面&弹窗样式调整
This commit is contained in:
parent
19c0a28a5e
commit
595667fa0e
|
@ -54,6 +54,8 @@
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
setLocalStorage('isInitUrl', 'true'); // 设置已经初始化过 url,避免重复初始化
|
setLocalStorage('isInitUrl', 'true'); // 设置已经初始化过 url,避免重复初始化
|
||||||
|
} else {
|
||||||
|
setLocalStorage('isInitUrl', 'true'); // 设置已经初始化过 url,避免重复初始化
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
|
@ -25,10 +25,10 @@ export const GetAuthDetailUrl = '/system/authsource/get';
|
||||||
// 删除认证源
|
// 删除认证源
|
||||||
export const DeleteAuthUrl = '/system/authsource/delete';
|
export const DeleteAuthUrl = '/system/authsource/delete';
|
||||||
// 获取系统主页左上角图片
|
// 获取系统主页左上角图片
|
||||||
export const GetTitleImgUrl = '/display/get/title';
|
export const GetTitleImgUrl = `${import.meta.env.VITE_API_BASE_URL}/display/get/title`;
|
||||||
// 获取登录 logo
|
// 获取登录 logo
|
||||||
export const GetLoginLogoUrl = '/display/get/loginLogo';
|
export const GetLoginLogoUrl = `${import.meta.env.VITE_API_BASE_URL}/display/get/loginLogo`;
|
||||||
// 获取登录大图
|
// 获取登录大图
|
||||||
export const GetLoginImageUrl = '/display/get/loginImage';
|
export const GetLoginImageUrl = `${import.meta.env.VITE_API_BASE_URL}/display/get/loginImage`;
|
||||||
// 获取平台标签图标
|
// 获取平台标签图标
|
||||||
export const GetPlatformIconUrl = '/display/get/icon';
|
export const GetPlatformIconUrl = `${import.meta.env.VITE_API_BASE_URL}/display/get/icon`;
|
||||||
|
|
|
@ -93,19 +93,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ms-modal-medium {
|
.ms-modal-medium {
|
||||||
.arco-modal {
|
width: 680px;
|
||||||
width: 680px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.ms-modal-large {
|
.ms-modal-large {
|
||||||
.arco-modal {
|
width: 960px;
|
||||||
width: 960px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.ms-modal-small {
|
.ms-modal-small {
|
||||||
.arco-modal {
|
width: 480px;
|
||||||
width: 480px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 气泡确认框 **/
|
/** 气泡确认框 **/
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
'cursor-pointer',
|
'cursor-pointer',
|
||||||
'items-center',
|
'items-center',
|
||||||
'justify-center',
|
'justify-center',
|
||||||
'text-[var(--color-text-brand)]',
|
'text-[var(--color-text-4)]',
|
||||||
i === 0 ? 'mt-[36px]' : 'mt-[5px]',
|
i === 0 ? 'mt-[36px]' : 'mt-[5px]',
|
||||||
]"
|
]"
|
||||||
@click="removeField(i)"
|
@click="removeField(i)"
|
||||||
|
|
|
@ -33,6 +33,9 @@
|
||||||
() => appStore.getCurrentTopMenu?.name,
|
() => appStore.getCurrentTopMenu?.name,
|
||||||
(val) => {
|
(val) => {
|
||||||
activeMenus.value = [val || ''];
|
activeMenus.value = [val || ''];
|
||||||
|
},
|
||||||
|
{
|
||||||
|
immediate: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,10 @@ export default function useModal() {
|
||||||
cancelButtonProps: {
|
cancelButtonProps: {
|
||||||
type: options.mode === 'weak' ? 'text' : 'secondary',
|
type: options.mode === 'weak' ? 'text' : 'secondary',
|
||||||
},
|
},
|
||||||
|
simple: false,
|
||||||
...options,
|
...options,
|
||||||
titleAlign: 'start',
|
titleAlign: 'start',
|
||||||
modalClass: `ms-modal-${options.mode || 'default'} ms-modal-${options.size || 'medium'} ms-modal-${
|
modalClass: `ms-modal-${options.mode || 'default'} ms-modal-${options.size || 'small'} ms-modal-${
|
||||||
options.type
|
options.type
|
||||||
}`,
|
}`,
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
const activeTab = ref('authConfig');
|
const activeTab = ref('baseConfig');
|
||||||
const isInitedPageConfig = ref(activeTab.value === 'pageConfig');
|
const isInitedPageConfig = ref(activeTab.value === 'pageConfig');
|
||||||
const isInitedAuthConfig = ref(activeTab.value === 'authConfig');
|
const isInitedAuthConfig = ref(activeTab.value === 'authConfig');
|
||||||
|
|
||||||
|
|
|
@ -209,6 +209,7 @@
|
||||||
field="testResourceDTO.ip"
|
field="testResourceDTO.ip"
|
||||||
class="form-item"
|
class="form-item"
|
||||||
:rules="[{ required: true, message: t('system.resourcePool.testResourceDTO.ipRequired') }]"
|
:rules="[{ required: true, message: t('system.resourcePool.testResourceDTO.ipRequired') }]"
|
||||||
|
asterisk-position="end"
|
||||||
>
|
>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:model-value="form.testResourceDTO.ip"
|
v-model:model-value="form.testResourceDTO.ip"
|
||||||
|
@ -224,6 +225,7 @@
|
||||||
field="testResourceDTO.token"
|
field="testResourceDTO.token"
|
||||||
class="form-item"
|
class="form-item"
|
||||||
:rules="[{ required: true, message: t('system.resourcePool.testResourceDTO.tokenRequired') }]"
|
:rules="[{ required: true, message: t('system.resourcePool.testResourceDTO.tokenRequired') }]"
|
||||||
|
asterisk-position="end"
|
||||||
>
|
>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:model-value="form.testResourceDTO.token"
|
v-model:model-value="form.testResourceDTO.token"
|
||||||
|
@ -236,6 +238,7 @@
|
||||||
field="testResourceDTO.nameSpaces"
|
field="testResourceDTO.nameSpaces"
|
||||||
class="form-item"
|
class="form-item"
|
||||||
:rules="[{ required: true, message: t('system.resourcePool.testResourceDTO.nameSpacesRequired') }]"
|
:rules="[{ required: true, message: t('system.resourcePool.testResourceDTO.nameSpacesRequired') }]"
|
||||||
|
asterisk-position="end"
|
||||||
>
|
>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:model-value="form.testResourceDTO.nameSpaces"
|
v-model:model-value="form.testResourceDTO.nameSpaces"
|
||||||
|
@ -259,6 +262,7 @@
|
||||||
field="testResourceDTO.deployName"
|
field="testResourceDTO.deployName"
|
||||||
class="form-item"
|
class="form-item"
|
||||||
:rules="[{ required: true, message: t('system.resourcePool.testResourceDTO.deployNameRequired') }]"
|
:rules="[{ required: true, message: t('system.resourcePool.testResourceDTO.deployNameRequired') }]"
|
||||||
|
asterisk-position="end"
|
||||||
>
|
>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:model-value="form.testResourceDTO.deployName"
|
v-model:model-value="form.testResourceDTO.deployName"
|
||||||
|
|
Loading…
Reference in New Issue