文件夹名字修改
This commit is contained in:
parent
3612b9b2c7
commit
44bd982278
|
@ -29,11 +29,11 @@
|
|||
<performance-recent-test-plan v-if="beaseUrl == 'performance'"/>
|
||||
<functional-recent-test-plan v-if="beaseUrl == 'functional'"/>
|
||||
<el-divider/>
|
||||
<el-menu-item :index="'/' + beaseUrl + '/plan/all'">
|
||||
<el-menu-item :index="'/' + beaseUrl + '/test/all'">
|
||||
<font-awesome-icon :icon="['fa', 'list-ul']"/>
|
||||
<span style="padding-left: 5px;">{{$t('commons.show_all')}}</span>
|
||||
</el-menu-item>
|
||||
<el-menu-item :index="'/' + beaseUrl + '/plan/create'">
|
||||
<el-menu-item :index="'/' + beaseUrl + '/test/create'">
|
||||
<el-button type="text">{{$t('load_test.create')}}</el-button>
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
|
@ -68,17 +68,17 @@
|
|||
index="7" popper-class="submenu" v-permission="['test_manager', 'test_user', 'test_viewer']">
|
||||
<template slot="title">{{$t('test_track.test_plan')}}</template>
|
||||
<el-divider/>
|
||||
<el-menu-item :index="'/' + beaseUrl + '/plan/all'">
|
||||
<el-menu-item :index="'/' + beaseUrl + '/test/all'">
|
||||
<font-awesome-icon :icon="['fa', 'list-ul']"/>
|
||||
<span style="padding-left: 5px;">{{$t('commons.show_all')}}</span>
|
||||
</el-menu-item>
|
||||
<el-menu-item :index="'/' + beaseUrl + '/plan/create'">
|
||||
<el-menu-item :index="'/' + beaseUrl + '/test/create'">
|
||||
<el-button type="text">{{$t('test_track.create_plan')}}</el-button>
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
|
||||
<router-link v-if="isCurrentWorkspaceUser && (beaseUrl == 'performance' || beaseUrl == 'functional')"
|
||||
class="header-bottom" :to="'/' + beaseUrl + '/plan/create'" v-permission="['test_user','test_manager']">
|
||||
class="header-bottom" :to="'/' + beaseUrl + '/test/create'" v-permission="['test_user','test_manager']">
|
||||
<el-button type="primary" size="small">{{$t('load_test.create')}}</el-button>
|
||||
</router-link>
|
||||
|
||||
|
@ -89,7 +89,7 @@
|
|||
|
||||
<script>
|
||||
|
||||
import PerformanceRecentTestPlan from "../../performance/plan/PerformanceRecentTestPlan";
|
||||
import PerformanceRecentTestPlan from "../../performance/test/PerformanceRecentTestPlan";
|
||||
import FunctionalRecentTestPlan from "../../functional/plan/FunctionalRecentTestPlan";
|
||||
import PerformanceRecentProject from "../../performance/project/PerformanceRecentProject";
|
||||
import FunctionalRecentProject from "../../functional/project/FunctionalRecentProject";
|
||||
|
|
|
@ -3,8 +3,8 @@ import VueRouter from 'vue-router'
|
|||
import RouterSidebar from "./RouterSidebar";
|
||||
import Setting from "../../settings/Setting";
|
||||
import User from "../../settings/system/User";
|
||||
import EditPerformanceTestPlan from "../../performance/plan/EditPerformanceTestPlan";
|
||||
import PerformanceTestPlan from "../../performance/plan/PerformanceTestPlan";
|
||||
import EditPerformanceTestPlan from "../../performance/test/EditPerformanceTestPlan";
|
||||
import PerformanceTestPlan from "../../performance/test/PerformanceTestPlan";
|
||||
import Organization from "../../settings/system/Organization";
|
||||
import OrganizationMember from "../../settings/organization/OrganizationMember";
|
||||
import Member from "../../settings/workspace/WorkspaceMember";
|
||||
|
@ -147,12 +147,12 @@ const router = new VueRouter({
|
|||
component: PerformanceTestHome,
|
||||
},
|
||||
{
|
||||
path: 'plan/create',
|
||||
path: 'test/create',
|
||||
name: "createPerTest",
|
||||
component: EditPerformanceTestPlan,
|
||||
},
|
||||
{
|
||||
path: "plan/edit/:testId",
|
||||
path: "test/edit/:testId",
|
||||
name: "editPerTest",
|
||||
component: EditPerformanceTestPlan,
|
||||
props: {
|
||||
|
@ -164,7 +164,7 @@ const router = new VueRouter({
|
|||
}
|
||||
},
|
||||
{
|
||||
path: "plan/:projectId",
|
||||
path: "test/:projectId",
|
||||
name: "perPlan",
|
||||
component: PerformanceTestPlan
|
||||
},
|
||||
|
|
|
@ -48,9 +48,9 @@
|
|||
result: {},
|
||||
testPlan: {},
|
||||
listProjectPath: "/project/listAll",
|
||||
savePath: "/functional/plan/save",
|
||||
editPath: "/functional/plan/edit",
|
||||
runPath: "/functional/plan/run",
|
||||
savePath: "/functional/test/save",
|
||||
editPath: "/functional/test/edit",
|
||||
runPath: "/functional/test/run",
|
||||
projects: [],
|
||||
active: '0',
|
||||
tabs: [{
|
||||
|
@ -73,7 +73,7 @@
|
|||
}
|
||||
let testId = to.path.split('/')[4]; // find testId
|
||||
if (testId) {
|
||||
this.$get('/functional/plan/get/' + testId, response => {
|
||||
this.$get('/functional/test/get/' + testId, response => {
|
||||
this.testPlan = response.data;
|
||||
});
|
||||
}
|
||||
|
@ -83,7 +83,7 @@
|
|||
created() {
|
||||
let testId = this.$route.path.split('/')[4];
|
||||
if (testId) {
|
||||
this.$get('/functional/plan/get/' + testId, response => {
|
||||
this.$get('/functional/test/get/' + testId, response => {
|
||||
this.testPlan = response.data;
|
||||
});
|
||||
}
|
||||
|
@ -109,7 +109,7 @@
|
|||
type: 'success'
|
||||
});
|
||||
this.$refs.runtimeConfig.cancelAllEdit();
|
||||
this.$router.push({path: '/functional/plan/all'})
|
||||
this.$router.push({path: '/functional/test/all'})
|
||||
});
|
||||
},
|
||||
saveAndRun() {
|
||||
|
@ -163,7 +163,7 @@
|
|||
};
|
||||
},
|
||||
cancel() {
|
||||
this.$router.push({path: '/functional/plan/all'})
|
||||
this.$router.push({path: '/functional/test/all'})
|
||||
},
|
||||
validTestPlan() {
|
||||
if (!this.testPlan.name) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<i class="el-icon-time"/>
|
||||
{{$t('load_test.recent')}}
|
||||
</div>
|
||||
<el-menu-item :key="t.id" v-for="t in recentTestPlans" :index="'/functional/plan/edit/' + t.id">
|
||||
<el-menu-item :key="t.id" v-for="t in recentTestPlans" :index="'/functional/test/edit/' + t.id">
|
||||
{{ t.name }}
|
||||
</el-menu-item>
|
||||
</el-menu>
|
||||
|
|
|
@ -81,8 +81,8 @@
|
|||
data() {
|
||||
return {
|
||||
result: {},
|
||||
queryPath: "/functional/plan/list",
|
||||
deletePath: "/functional/plan/delete",
|
||||
queryPath: "/functional/test/list",
|
||||
deletePath: "/functional/test/delete",
|
||||
condition: "",
|
||||
projectId: null,
|
||||
tableData: [],
|
||||
|
@ -139,7 +139,7 @@
|
|||
},
|
||||
handleEdit(testPlan) {
|
||||
this.$router.push({
|
||||
path: '/functional/plan/edit/' + testPlan.id,
|
||||
path: '/functional/test/edit/' + testPlan.id,
|
||||
})
|
||||
},
|
||||
handleDelete(testPlan) {
|
||||
|
|
|
@ -61,9 +61,9 @@
|
|||
data() {
|
||||
return {
|
||||
result: {},
|
||||
getFileMetadataPath: "/functional/plan/file/metadata",
|
||||
jmxDownloadPath: '/functional/plan/file/download',
|
||||
jmxDeletePath: '/functional/plan/file/delete',
|
||||
getFileMetadataPath: "/functional/test/file/metadata",
|
||||
jmxDownloadPath: '/functional/test/file/download',
|
||||
jmxDeletePath: '/functional/test/file/delete',
|
||||
fileList: [],
|
||||
tableData: [],
|
||||
};
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</div>
|
||||
|
||||
<el-menu-item :key="p.id" v-for="p in recentProjects"
|
||||
:index="'/performance/plan/' + p.id" :route="{name:'perPlan', params:{projectId:p.id, projectName:p.name}}">
|
||||
:index="'/performance/test/' + p.id" :route="{name:'perPlan', params:{projectId:p.id, projectName:p.name}}">
|
||||
{{ p.name }}
|
||||
</el-menu-item>
|
||||
</el-menu>
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
type: 'success'
|
||||
});
|
||||
this.$refs.advancedConfig.cancelAllEdit();
|
||||
this.$router.push({path: '/performance/plan/all'})
|
||||
this.$router.push({path: '/performance/test/all'})
|
||||
});
|
||||
},
|
||||
saveAndRun() {
|
||||
|
@ -188,7 +188,7 @@
|
|||
};
|
||||
},
|
||||
cancel() {
|
||||
this.$router.push({path: '/performance/plan/all'})
|
||||
this.$router.push({path: '/performance/test/all'})
|
||||
},
|
||||
validTestPlan() {
|
||||
if (!this.testPlan.name) {
|
|
@ -4,7 +4,7 @@
|
|||
<i class="el-icon-time"/>
|
||||
{{$t('load_test.recent')}}
|
||||
</div>
|
||||
<el-menu-item :key="t.id" v-for="t in recentTestPlans" :index="'/performance/plan/edit/' + t.id">
|
||||
<el-menu-item :key="t.id" v-for="t in recentTestPlans" :index="'/performance/test/edit/' + t.id">
|
||||
{{ t.name }}
|
||||
</el-menu-item>
|
||||
</el-menu>
|
|
@ -139,7 +139,7 @@
|
|||
},
|
||||
handleEdit(testPlan) {
|
||||
this.$router.push({
|
||||
path: '/performance/plan/edit/' + testPlan.id,
|
||||
path: '/performance/test/edit/' + testPlan.id,
|
||||
})
|
||||
},
|
||||
handleDelete(testPlan) {
|
|
@ -4,7 +4,7 @@
|
|||
<i class="el-icon-time"/>
|
||||
{{$t('load_test.recent')}}
|
||||
</div>
|
||||
<el-menu-item :key="t.id" v-for="t in recentTestPlans" :index="'/performance/plan/edit/' + t.id">
|
||||
<el-menu-item :key="t.id" v-for="t in recentTestPlans" :index="'/performance/test/edit/' + t.id">
|
||||
{{ t.name }}
|
||||
</el-menu-item>
|
||||
</el-menu>
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
},
|
||||
getNodeTree() {
|
||||
if (this.planId) {
|
||||
this.$get("/case/node/list/plan/" + this.planId, response => {
|
||||
this.$get("/case/node/list/test/" + this.planId, response => {
|
||||
this.treeNodes = response.data;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
let param = {};
|
||||
Object.assign(param, this.form);
|
||||
param.workspaceId = localStorage.getItem(WORKSPACE_ID);
|
||||
this.$post('/test/plan/' + this.operationType, param, () => {
|
||||
this.$post('/test/test/' + this.operationType, param, () => {
|
||||
this.$message.success(this.$t('commons.save_success'));
|
||||
this.dialogFormVisible = false;
|
||||
this.$emit("refresh");
|
||||
|
|
|
@ -134,8 +134,8 @@
|
|||
data() {
|
||||
return {
|
||||
result: {},
|
||||
queryPath: "/test/plan/list",
|
||||
deletePath: "/test/plan/delete",
|
||||
queryPath: "/test/test/list",
|
||||
deletePath: "/test/test/delete",
|
||||
condition: "",
|
||||
tableData: [],
|
||||
multipleSelection: [],
|
||||
|
@ -196,7 +196,7 @@
|
|||
},
|
||||
_handleDelete(testPlan) {
|
||||
let testPlanId = testPlan.id;
|
||||
this.$post('/test/plan/delete/' + testPlanId, {}, () => {
|
||||
this.$post('/test/test/delete/' + testPlanId, {}, () => {
|
||||
this.initTableData();
|
||||
this.$message({
|
||||
message: this.$t('commons.delete_success'),
|
||||
|
@ -205,7 +205,7 @@
|
|||
});
|
||||
},
|
||||
intoPlan(row, event, column) {
|
||||
this.$router.push('/track/plan/view/' + row.id);
|
||||
this.$router.push('/track/test/view/' + row.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</div>
|
||||
|
||||
<el-menu-item :key="p.id" v-for="p in recentProjects"
|
||||
:index="'/performance/plan/' + p.id" :route="{name:'perPlan', params:{projectId:p.id, projectName:p.name}}">
|
||||
:index="'/performance/test/' + p.id" :route="{name:'perPlan', params:{projectId:p.id, projectName:p.name}}">
|
||||
{{ p.name }}
|
||||
</el-menu-item>
|
||||
</el-menu>
|
||||
|
|
Loading…
Reference in New Issue