diff --git a/src/router/index.ts b/src/router/index.ts index e273ffb7..ea60adc5 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -87,6 +87,12 @@ const constantRoutes: RouteRecordRaw[] = [ meta: { title: 'router.helpDoc' }, component: () => import('@/views/tool/help/index.vue'), }, + { + path: '/quick-build', + name: 'QuickBuild', + meta: { title: 'router.quickBuild' }, + component: () => import('@/views/system/quick-build/index.vue'), + }, { path: '/redirect', name: 'Redirect', @@ -136,7 +142,7 @@ router.afterEach((to, from, failure) => { }); /**无Token可访问页面地址白名单 */ -const WHITE_LIST: string[] = ['/login', '/auth-redirect', '/help', '/register']; +const WHITE_LIST: string[] = ['/login', '/auth-redirect', '/help', '/register', '/quick-build']; /**全局路由-前置守卫 */ router.beforeEach((to, from, next) => { diff --git a/src/views/login.vue b/src/views/login.vue index 4a016406..61eb7328 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -344,7 +344,7 @@ function fnClickHelpDoc(language?: string) { // background: url('./../assets/black_dot.png') 0% 0% / 14px 14px repeat; - background-image: url(./../assets/background.jpg); + background-image: url(@/assets/background.jpg); background-repeat: no-repeat; background-size: cover; background-position: center center; @@ -436,7 +436,7 @@ function fnClickHelpDoc(language?: string) { min-width: 260px; margin: 0 auto; margin-left: 60%; - border-radius: 4px; + border-radius: 6px; & .desc { text-align: center; diff --git a/src/views/system/quick-build/components/ConfigNeInfo.vue b/src/views/system/quick-build/components/ConfigNeInfo.vue new file mode 100644 index 00000000..cf3867d3 --- /dev/null +++ b/src/views/system/quick-build/components/ConfigNeInfo.vue @@ -0,0 +1,21 @@ + + + + + 配置网元信息 + + 上一步 + + + 下一步 + + + + + diff --git a/src/views/system/quick-build/components/ConfigNeInfoPara5G.vue b/src/views/system/quick-build/components/ConfigNeInfoPara5G.vue new file mode 100644 index 00000000..fa4fd8f6 --- /dev/null +++ b/src/views/system/quick-build/components/ConfigNeInfoPara5G.vue @@ -0,0 +1,15 @@ + + + + + 网元公共参数设置 + + + 下一步 + + + + + diff --git a/src/views/system/quick-build/components/ConfigSystem.vue b/src/views/system/quick-build/components/ConfigSystem.vue new file mode 100644 index 00000000..13ad10cc --- /dev/null +++ b/src/views/system/quick-build/components/ConfigSystem.vue @@ -0,0 +1,21 @@ + + + + + 系统配置 + 系统LOGO:png/jpg + 系统名称:xxxx + 隐藏语言切换:false + + 上一步 + + + 安装网元 + + 下一步 + + + + diff --git a/src/views/system/quick-build/components/End.vue b/src/views/system/quick-build/components/End.vue new file mode 100644 index 00000000..8177c133 --- /dev/null +++ b/src/views/system/quick-build/components/End.vue @@ -0,0 +1,19 @@ + + + + + 结束 + 安装网元会有:网元信息-授权有效期 + =======提示 + 未配置相关网元,请进入系统后,根据情况单独安装网元 + + + 开始使用 + + + + + diff --git a/src/views/system/quick-build/components/SoftwareInstall.vue b/src/views/system/quick-build/components/SoftwareInstall.vue new file mode 100644 index 00000000..35f594df --- /dev/null +++ b/src/views/system/quick-build/components/SoftwareInstall.vue @@ -0,0 +1,21 @@ + + + + + 软件安装 + + 上一步 + + + 下一步 + + + + + diff --git a/src/views/system/quick-build/components/SoftwareLicense.vue b/src/views/system/quick-build/components/SoftwareLicense.vue new file mode 100644 index 00000000..8b7cf8e0 --- /dev/null +++ b/src/views/system/quick-build/components/SoftwareLicense.vue @@ -0,0 +1,19 @@ + + + + + 软件授权激活 + + 上一步 + + 跳过 + + + + diff --git a/src/views/system/quick-build/components/Start.vue b/src/views/system/quick-build/components/Start.vue new file mode 100644 index 00000000..e025196d --- /dev/null +++ b/src/views/system/quick-build/components/Start.vue @@ -0,0 +1,18 @@ + + + + + 欢迎使用 + 语言切换:中文 + 软件声明:无第三方信息采集 + 1. 网管配置,网元安装可选 + 2. 可选项,网元安装 + + 开始 + + + + + diff --git a/src/views/system/quick-build/hooks/useStep.ts b/src/views/system/quick-build/hooks/useStep.ts new file mode 100644 index 00000000..5e872c0b --- /dev/null +++ b/src/views/system/quick-build/hooks/useStep.ts @@ -0,0 +1,74 @@ +import { reactive } from 'vue'; + +/**步骤信息状态类型 */ +type StepStateType = { + /**步骤名称 */ + stepName: string; + + /**当前选中 */ + current: number; + /**步骤项 */ + steps: { + title: string; + description: string; + }[]; + /**步骤下一步 */ + stepNext: boolean; + /**步骤信息状态 */ + states: any[]; +}; + +/**步骤信息状态 */ +export const stepState: StepStateType = reactive({ + stepName: 'Start', + current: 0, + steps: [ + { + title: '版权声明', + description: '确认是否安装', + }, + { + title: '网元信息', + description: '记录下所安装网元基础信息', + }, + { + title: '网元安装', + description: '安装包上传执行安装启动服务等待10秒停止服务', + }, + { + title: '网元配置', + description: '修改网元的配置文件', + }, + { + title: '网元激活', + description: '获取激活码和上传授权文件,启动验证激活码', + }, + { + title: '完成安装', + description: '获取网元服务状态', + }, + ], + stepNext: false, + states: [], +}); + +/**步骤信息状态复位 */ +export function fnRestStepState() { + stepState.current = 0; + stepState.stepNext = false; + stepState.states = []; +} + +export function fnToStepName(stepName: string) { + stepState.stepName = stepName; +} + +export function fnStepNext() { + stepState.current++; + stepState.stepNext = false; +} + +export function fnStepPrev() { + stepState.current--; + stepState.stepNext = true; +} diff --git a/src/views/system/quick-build/index.vue b/src/views/system/quick-build/index.vue new file mode 100644 index 00000000..d7291034 --- /dev/null +++ b/src/views/system/quick-build/index.vue @@ -0,0 +1,85 @@ + + + + + + + + + + + +
安装网元会有:网元信息-授权有效期
未配置相关网元,请进入系统后,根据情况单独安装网元