| | |
| | | const loginDescription = ref(companyConfigStore.loginDescription); |
| | | const logoUrl = ref(companyConfigStore.logoUrl); |
| | | const uploading = ref(false); |
| | | const fixedPortalName = import.meta.env.VITE_COMPANY === 'JSSM'; |
| | | |
| | | // 打开区块时从后端拉取最新公司配置并回填表单(store 初值可能为空,因启动加载走的是纯函数) |
| | | onMounted(async () => { |
| | |
| | | <template> |
| | | <div class="flex flex-col"> |
| | | <!-- 公司名称 --> |
| | | <div class="my-1 flex w-full items-center justify-between rounded-md px-2 py-1"> |
| | | <span class="flex items-center text-sm"> |
| | | <div class="my-2 flex w-full items-center justify-between gap-4 rounded-md px-2 py-2"> |
| | | <span class="shrink-0 text-sm text-foreground/80"> |
| | | {{ $t('preferences.company.companyName') }} |
| | | </span> |
| | | <Input |
| | | v-model:value="companyName" |
| | | :disabled="fixedPortalName" |
| | | :placeholder="$t('preferences.company.companyNamePlaceholder')" |
| | | class="w-41.25" |
| | | allow-clear |
| | |
| | | </div> |
| | | |
| | | <!-- 登录页标题 --> |
| | | <div class="my-1 flex w-full items-center justify-between rounded-md px-2 py-1"> |
| | | <span class="flex items-center text-sm"> |
| | | <div class="my-2 flex w-full items-center justify-between gap-4 rounded-md px-2 py-2"> |
| | | <span class="shrink-0 text-sm text-foreground/80"> |
| | | {{ $t('preferences.company.loginTitle') }} |
| | | </span> |
| | | <Input |
| | |
| | | </div> |
| | | |
| | | <!-- 登录页描述 --> |
| | | <div class="my-1 flex w-full items-center justify-between rounded-md px-2 py-1"> |
| | | <span class="flex items-center text-sm"> |
| | | <div class="my-2 flex w-full items-center justify-between gap-4 rounded-md px-2 py-2"> |
| | | <span class="shrink-0 text-sm text-foreground/80"> |
| | | {{ $t('preferences.company.loginDescription') }} |
| | | </span> |
| | | <Input |
| | |
| | | </div> |
| | | |
| | | <!-- 公司 Logo --> |
| | | <div class="my-1 flex w-full items-center justify-between rounded-md px-2 py-1"> |
| | | <span class="flex items-center text-sm"> |
| | | <div class="my-2 flex w-full items-center justify-between gap-4 rounded-md px-2 py-2"> |
| | | <span class="shrink-0 text-sm text-foreground/80"> |
| | | {{ $t('preferences.company.logo') }} |
| | | </span> |
| | | <div class="flex items-center gap-2"> |