Commit 1f444afa authored by 黎博's avatar 黎博

修改路由

parent 3e7ea127
......@@ -67,28 +67,28 @@ const router = new Router({
component: Main
},
{
path: '/xyqb/genLoanData',
name: '数据',
path: '/xyqb/gen',
name: '数据',
component: XyqbGenLoanData
},
{
path: '/xyqb/getLoanData',
name: '数据',
path: '/xyqb/get',
name: '数据',
component: XyqbGetLoanData
},
{
path: '/vcc/getData',
name: '数据',
path: '/vcc/get',
name: 'VCC捞数据',
component: VccGetData
},
{
path: '/vcc/genData',
name: 'VCC捞数据',
path: '/vcc/gen',
name: '数据',
component: VccGenData
},
{
path: '/vcc/checkData',
name: '数据',
path: '/vcc/check',
name: '数据',
component: VccCheckData
},
{
......@@ -97,12 +97,12 @@ const router = new Router({
component: Mock
},
{
path: '/effect/kdsp/decrypt',
path: '/effect/decrypt',
name: 'kdsp解密',
component: kdspDecrypt
},
{
path: '/effect/jenkins/build',
path: '/effect/build',
name: '构建记录',
component: JenkinsBuildInfo
},
......@@ -113,17 +113,17 @@ const router = new Router({
},
// 2021-4-08新添加项目管理页面
{
path: '/auto/ProjectList',
path: '/auto/project',
name: ProjectList,
component: ProjectList
},
{
path: '/auto/ModelList',
path: '/auto/module',
name: ModelList,
component: ModelList
},
{
path: '/auto/InterfaceList',
path: '/auto/interface',
name: InterfaceList,
component: InterfaceList
},
......@@ -133,7 +133,7 @@ const router = new Router({
component: AddInterface
},
{
path: '/auto/CaseList',
path: '/auto/testcase',
name: CaseList,
component: CaseList
},
......@@ -143,7 +143,7 @@ const router = new Router({
component: AddCase
},
{
path: '/auto/SceneList',
path: '/auto/scene',
name: SceneList,
component: SceneList
},
......@@ -154,7 +154,7 @@ const router = new Router({
component: EditScene
},
{
path: '/jira/notify',
path: '/qa/process',
component: JiraNotify
},
{
......@@ -175,7 +175,7 @@ const router = new Router({
},
// 添加报告
{
path: '/auto/ReportList',
path: '/auto/report',
name: ReportList,
component: ReportList
},
......@@ -186,7 +186,7 @@ const router = new Router({
},
// 添加同步数据库
{
path: '/effect/SynDatabase',
path: '/effect/database',
name: SynDatabase,
component: SynDatabase
}
......
......@@ -385,7 +385,7 @@ export default {
editCase(this.caseForm).then((resp) => {
if (resp.data.data === true) {
this.$message.success('修改成功!')
this.$router.push('CaseList')
this.$router.push('testcase')
// 刷新列表页
this.sendResh()
} else {
......@@ -398,7 +398,7 @@ export default {
if (resp.data.data === true) {
this.$message.success('添加成功!')
// 返回列表页
this.$router.push('CaseList')
this.$router.push('testcase')
// 刷新列表页
this.sendResh()
} else {
......@@ -413,7 +413,7 @@ export default {
// 取消按钮
cancelCaseFrom() {
// 返回列表页
this.$router.push('CaseList')
this.$router.push('testcase')
},
// 刷新列表
sendResh() {
......
......@@ -373,7 +373,7 @@ export default {
editInterface(this.interfaceForm).then((resp) => {
if (resp.data.data === true) {
this.$message.success('修改成功!')
this.$router.push('InterfaceList')
this.$router.push('interface')
// 刷新列表页
this.sendResh()
} else {
......@@ -386,7 +386,7 @@ export default {
if (resp.data.data === true) {
this.$message.success('添加成功!')
// 返回列表页
this.$router.push('InterfaceList')
this.$router.push('interface')
// 刷新列表页
this.sendResh()
this.interfaceForm.name = ''
......@@ -408,7 +408,7 @@ export default {
// 取消按钮
cancelInterfaceFrom() {
// 返回列表页
this.$router.push('InterfaceList')
this.$router.push('interface')
},
// 导入heads和请求参数
importMsg() {
......
......@@ -609,7 +609,7 @@ export default {
if (resp.data.data === true) {
this.$message.success('保存成功!')
// 返回列表页
this.$router.push({ path: 'SceneList' })
this.$router.push({ path: 'scene' })
// 刷新列表页
this.sendResh()
} else {
......@@ -623,7 +623,7 @@ export default {
// 取消按钮事件
cancelSceneCaseFrom() {
// 返回列表页
this.$router.push({ path: 'SceneList' })
this.$router.push({ path: 'scene' })
},
// 刷新列表
sendResh() {
......
......@@ -281,7 +281,7 @@ export default {
},
// 查看报告
checkReport(row) {
this.$router.push({ path: 'ReportList' })
this.$router.push({ path: 'report' })
// bus使用
this.$nextTick(function () {
// DOM 现在更新了
......
......@@ -9,13 +9,13 @@
"id": 1,
"title": "现金捞",
"icon": "iconfont icon-money",
"path": "/xyqb/getLoanData"
"path": "/xyqb/get"
},
{
"id": 2,
"title": "现金造",
"icon": "iconfont icon-money2",
"path": "/xyqb/genLoanData"
"path": "/xyqb/gen"
}
]
},
......@@ -28,19 +28,19 @@
"id": 1,
"title": "消金查",
"icon": "iconfont icon-query",
"path": "/vcc/checkData"
"path": "/vcc/check"
},
{
"id": 2,
"title": "消金捞",
"icon": "iconfont icon-consumption-fill",
"path": "/vcc/getData"
"path": "/vcc/get"
},
{
"id": 3,
"title": "消金造",
"icon": "iconfont icon-consumption",
"path": "/vcc/genData"
"path": "/vcc/gen"
},
{
"id": 4,
......@@ -78,13 +78,13 @@
"id": 1,
"title": "kdsp解密",
"icon": "iconfont icon-shujujiemi",
"path": "/effect/kdsp/decrypt"
"path": "/effect/decrypt"
},
{
"id": 2,
"title": "构建记录",
"icon": "iconfont icon-structure",
"path": "/effect/jenkins/build"
"path": "/effect/build"
},
{
"id": 3,
......@@ -108,7 +108,7 @@
"id": 6,
"title": "同步数据库",
"icon": "iconfont icon-cached",
"path": "/effect/SynDatabase"
"path": "/effect/database"
}
]
},
......@@ -121,50 +121,50 @@
"id": 1,
"title": "项目管理",
"icon": "iconfont icon-xiangmu1",
"path": "/auto/ProjectList"
"path": "/auto/project"
},
{
"id": 2,
"title": "模块管理",
"icon": "iconfont icon-modular",
"path": "/auto/ModelList"
"path": "/auto/module"
},
{
"id": 3,
"title": "接口管理",
"icon": "iconfont icon-interface",
"path": "/auto/InterfaceList"
"path": "/auto/interface"
},
{
"id": 4,
"title": "用例管理",
"icon": "iconfont icon-case",
"path": "/auto/CaseList"
"path": "/auto/testcase"
},
{
"id": 5,
"title": "场景管理",
"icon": "iconfont icon-scenes",
"path": "/auto/SceneList"
"path": "/auto/scene"
},
{
"id": 6,
"title": "报告管理",
"icon": "iconfont icon-report",
"path": "/auto/ReportList"
"path": "/auto/report"
}
]
},
{
"id": 6,
"title": "Jira相关",
"title": "质量保证",
"icon": "iconfont icon-jira",
"child": [
{
"id": 1,
"title": "jira-钉钉通知",
"title": "测试流程",
"icon": "iconfont icon-notice",
"path": "/jira/notify"
"path": "/qa/process"
}
]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment