refactor(系统设置): 创建项目
This commit is contained in:
parent
0d8d12b17b
commit
8da32177de
|
@ -8,11 +8,11 @@
|
|||
<template v-slot:title>{{ $t('commons.project') }}</template>
|
||||
<search-list ref="projectRecent" :options="projectRecent"/>
|
||||
<el-divider class="menu-divider"/>
|
||||
<el-menu-item :index="'/performance/project/create'">
|
||||
<el-menu-item :index="'/setting/project/create'">
|
||||
<font-awesome-icon :icon="['fa', 'plus']"/>
|
||||
<span style="padding-left: 7px;">创建项目</span>
|
||||
<span style="padding-left: 7px;">{{ $t("project.create") }}</span>
|
||||
</el-menu-item>
|
||||
<ms-show-all :index="'/setting/project'"/>
|
||||
<ms-show-all :index="'/setting/project/all'"/>
|
||||
</el-submenu>
|
||||
|
||||
<el-menu-item :index="'/api/home'">
|
||||
|
|
|
@ -24,11 +24,11 @@ export default {
|
|||
name: "ApiTestList",
|
||||
component: () => import('@/business/components/api/test/ApiTestList'),
|
||||
},
|
||||
{
|
||||
path: "project/:type",
|
||||
name: "fucProject",
|
||||
component: MsProject,
|
||||
},
|
||||
// {
|
||||
// path: "project/:type",
|
||||
// name: "fucProject",
|
||||
// component: MsProject,
|
||||
// },
|
||||
{
|
||||
path: "report/list/:testId",
|
||||
name: "ApiReportList",
|
||||
|
|
|
@ -32,7 +32,7 @@ export default {
|
|||
options: Object
|
||||
},
|
||||
mounted() {
|
||||
this.recent();
|
||||
this.init();
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -44,7 +44,7 @@ export default {
|
|||
watch: {
|
||||
search_text(val) {
|
||||
if (!val) {
|
||||
this.recent();
|
||||
this.init();
|
||||
} else {
|
||||
this.search();
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
recent: function () {
|
||||
init: function () {
|
||||
if (hasRoles(ROLE_TEST_VIEWER, ROLE_TEST_USER, ROLE_TEST_MANAGER)) {
|
||||
this.result = this.$get(this.options.url, (response) => {
|
||||
this.items = response.data;
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
<template v-slot:title>{{ $t('commons.project') }}</template>
|
||||
<search-list ref="projectRecent" :options="projectRecent"/>
|
||||
<el-divider/>
|
||||
<el-menu-item :index="'/performance/project/create'">
|
||||
<el-menu-item :index="'/setting/project/create'">
|
||||
<font-awesome-icon :icon="['fa', 'plus']"/>
|
||||
<span style="padding-left: 7px;">创建项目</span>
|
||||
<span style="padding-left: 7px;">{{ $t("project.create") }}</span>
|
||||
</el-menu-item>
|
||||
<ms-show-all :index="'/setting/project'"/>
|
||||
<ms-show-all :index="'/setting/project/all'"/>
|
||||
</el-submenu>
|
||||
|
||||
<el-menu-item :index="'/performance/home'">
|
||||
|
|
|
@ -43,11 +43,11 @@ export default {
|
|||
name: "perPlan",
|
||||
component: PerformanceTestList
|
||||
},
|
||||
{
|
||||
path: "project/:type",
|
||||
name: "perProject",
|
||||
component: MsProject
|
||||
},
|
||||
// {
|
||||
// path: "project/:type",
|
||||
// name: "perProject",
|
||||
// component: MsProject
|
||||
// },
|
||||
{
|
||||
path: "report/:type",
|
||||
name: "perReport",
|
||||
|
|
|
@ -144,7 +144,7 @@ export default {
|
|||
if (this.$route.path.split('/')[2] === 'project' &&
|
||||
this.$route.path.split('/')[3] === 'create') {
|
||||
this.create();
|
||||
this.$router.push('/' + this.baseUrl + '/project/all');
|
||||
// this.$router.push('/setting/project');
|
||||
}
|
||||
this.list();
|
||||
},
|
||||
|
@ -156,7 +156,7 @@ export default {
|
|||
if (this.$route.path.split('/')[2] === 'project' &&
|
||||
to.path.split('/')[3] === 'create') {
|
||||
this.create();
|
||||
this.$router.push('/' + this.baseUrl + '/project/all');
|
||||
// this.$router.push('/setting/project');
|
||||
} else if (this.$route.path.split('/')[2] === 'project' &&
|
||||
to.path.split('/')[3] === 'all') {
|
||||
this.list();
|
||||
|
|
|
@ -80,9 +80,9 @@ export default {
|
|||
}
|
||||
},
|
||||
{
|
||||
path: 'project',
|
||||
path: 'project/:type',
|
||||
component: () => import('@/business/components/settings/project/Project'),
|
||||
meta: {project: true, title: '项目管理'}
|
||||
meta: {project: true, title: 'project.manager'}
|
||||
},
|
||||
|
||||
]
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
<template v-slot:title>{{ $t('commons.project') }}</template>
|
||||
<search-list ref="projectRecent" :options="projectRecent"/>
|
||||
<el-divider/>
|
||||
<el-menu-item :index="'/performance/project/create'">
|
||||
<el-menu-item :index="'/setting/project/create'">
|
||||
<font-awesome-icon :icon="['fa', 'plus']"/>
|
||||
<span style="padding-left: 7px;">创建项目</span>
|
||||
<span style="padding-left: 7px;">{{ $t("project.create") }}</span>
|
||||
</el-menu-item>
|
||||
<ms-show-all :index="'/setting/project'"/>
|
||||
<ms-show-all :index="'/setting/project/all'"/>
|
||||
</el-submenu>
|
||||
|
||||
<el-menu-item :index="'/track/home'">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<related-test-plan-list ref="relatedTestPlanList"/>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<review-list :title="$t('review.my_review')" ref="caseReviewList"/>
|
||||
<review-list :title="$t('test_track.review.my_review')" ref="caseReviewList"/>
|
||||
</el-row>
|
||||
</el-col>
|
||||
<el-col :span="9">
|
||||
|
|
|
@ -51,11 +51,11 @@ export default {
|
|||
name: "planViewEdit",
|
||||
component: TestPlanView
|
||||
},
|
||||
{
|
||||
path: "project/:type",
|
||||
name: "trackProject",
|
||||
component: MsProject
|
||||
},
|
||||
// {
|
||||
// path: "project/:type",
|
||||
// name: "trackProject",
|
||||
// component: MsProject
|
||||
// },
|
||||
{
|
||||
path: "review/:type",
|
||||
name: "testCaseReview",
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 8a972a198775b3783ed6e4cef27197e53d1ebdc8
|
||||
Subproject commit a22a3005d9bd254793fcf634d72539cbdf31be3a
|
|
@ -294,6 +294,7 @@ export default {
|
|||
tapd_id: 'TAPD Project ID',
|
||||
jira_key: 'JIRA Project key',
|
||||
zentao_id: 'Zentao Project ID',
|
||||
manager: 'Manager',
|
||||
},
|
||||
member: {
|
||||
create: 'Create',
|
||||
|
|
|
@ -293,6 +293,7 @@ export default {
|
|||
tapd_id: 'TAPD项目ID',
|
||||
jira_key: 'JIRA项目key',
|
||||
zentao_id: 'Zentao项目ID',
|
||||
manager: '项目管理',
|
||||
},
|
||||
member: {
|
||||
create: '添加成员',
|
||||
|
|
|
@ -293,6 +293,7 @@ export default {
|
|||
tapd_id: 'TAPD項目ID',
|
||||
jira_key: 'JIRA項目key',
|
||||
zentao_id: 'Zentao項目ID',
|
||||
manager: '項目管理',
|
||||
},
|
||||
member: {
|
||||
create: '添加成員',
|
||||
|
|
Loading…
Reference in New Issue