feat(frontend): 审批与系统设置模块页面接入及业务列表调整

This commit is contained in:
liuwenxin committed 2026-10-16 09:32:12 +08:00
1 parent 8ef26e22fb
commit 74f1ef1cf9
15 files changed
+1215 -28

No files matched your search

+19 -1
View File
@@ -4,6 +4,7 @@ import { onMounted, reactive, ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { getCaptcha } from '@/api/auth'
import { getPublicSettings } from '@/api/settings'
import { useUserStore } from '@/store/user'
const router = useRouter()
@@ -23,6 +24,20 @@ const form = reactive({
const captchaId = ref('')
const captchaImage = ref('')
/** 品牌名:默认衍水集团,公司信息设置页改了以后登录页同步生效(public 端点) */
const brandName = ref('衍水集团')
const brandLogo = ref<string | null>(null)
async function loadBrand(): Promise<void> {
try {
const data = await getPublicSettings()
if (data.company_name) brandName.value = data.company_name
brandLogo.value = data.logo_url
} catch {
// 登录页必须可用:公司信息接口失败时静默回退默认品牌名,不阻断登录
}
}
const rules: FormRules = {
username: [{ required: true, message: '请输入用户名', trigger: 'blur' }],
password: [{ required: true, message: '请输入密码', trigger: 'blur' }],
@@ -72,7 +87,10 @@ async function handleSubmit(): Promise<void> {
}
}
onMounted(refreshCaptcha)
onMounted(() => {
refreshCaptcha()
loadBrand()
})
</script>
<template>