feat(company): 企业创建成功页新增"返回租户详情",形成填写→详情闭环

This commit is contained in:
TermiNexus committed 2026-08-13 03:06:10 +08:00
1 parent 54e0d5fd52
commit 6e9de08abc
1 file changed
+10 -1
+10 -1
View File
@@ -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(() => {
<div class="success-title">企业创建成功</div>
<div class="success-desc">企业信息已提交,等待审核通过后生效。</div>
<div class="success-actions">
<el-button type="primary" @click="resetAll">继续创建</el-button>
<el-button @click="resetAll">继续创建</el-button>
<el-button type="primary" @click="goTenantDetail">返回租户详情</el-button>
</div>
</div>
</div>