diff --git a/src/views/company/EpCreate.vue b/src/views/company/EpCreate.vue index 1dfbdf6..78c8b24 100644 --- a/src/views/company/EpCreate.vue +++ b/src/views/company/EpCreate.vue @@ -23,10 +23,13 @@ * - date-range 字段(BusinessTerm)绑定数组,提交时 join 为字符串;tags 字段(BusinessScope)同理 */ import { ref, reactive, computed, onMounted } from 'vue' +import { useRouter } from 'vue-router' import { ElMessage } from 'element-plus' import { formApi } from '@/api/form' import { setPageTitle } from '@/utils/serverScope' +const router = useRouter() + // === 类型定义 === type FieldType = 'text' | 'textarea' | 'select' | 'date' | 'date-range' | 'number' | 'tags' @@ -744,6 +747,11 @@ function resetAll(): void { currentStep.value = -1 } +/** 返回租户详情(成功页):详情页无参数时自动回退当前角色租户 */ +function goTenantDetail(): void { + router.push('/company/tenant-detail') +} + onMounted(() => { setPageTitle('企业创建') }) @@ -919,7 +927,8 @@ onMounted(() => {
企业创建成功
企业信息已提交,等待审核通过后生效。
- 继续创建 + 继续创建 + 返回租户详情