修改目录结构

This commit is contained in:
chenjianxing 2020-03-12 17:04:27 +08:00
parent d16839ec68
commit 5ca19b55f8
53 changed files with 56 additions and 54 deletions

View File

@ -18,10 +18,10 @@
</template> </template>
<script> <script>
import MsTopMenus from "./components/HeaderTopMenus"; import MsTopMenus from "./components/common/head/HeaderTopMenus";
import MsView from "./components/router/View"; import MsView from "./components/common/router/View";
import MsUser from "./components/HeaderUser"; import MsUser from "./components/common/head/HeaderUser";
import MsWebSocket from "./components/websocket/WebSocket"; import MsWebSocket from "./components/common/websocket/WebSocket";
export default { export default {
name: 'app', name: 'app',

View File

@ -60,13 +60,13 @@
<script> <script>
import PerformanceRecentTestPlan from "./testPlan/PerformanceRecentTestPlan"; import PerformanceRecentTestPlan from "../../performance/testPlan/PerformanceRecentTestPlan";
import FunctionalRecentTestPlan from "./testPlan/FunctionalRecentTestPlan"; import FunctionalRecentTestPlan from "../../functional/testPlan/FunctionalRecentTestPlan";
import PerformanceRecentProject from "./project/PerformanceRecentProject"; import PerformanceRecentProject from "../../performance/project/PerformanceRecentProject";
import FunctionalRecentProject from "./project/FunctionalRecentProject"; import FunctionalRecentProject from "../../functional/project/FunctionalRecentProject";
import PerformanceRecentReport from "./report/PerformanceRecentReport"; import PerformanceRecentReport from "../../performance/report/PerformanceRecentReport";
import FunctionalRecentReport from "./report/FunctionalRecentReport"; import FunctionalRecentReport from "../../functional/report/FunctionalRecentReport";
import {checkoutCurrentWorkspace} from "../../common/utils"; import {checkoutCurrentWorkspace} from "../../../../common/utils";
export default { export default {
name: "MsMenus", name: "MsMenus",

View File

@ -42,8 +42,8 @@
</template> </template>
<script> <script>
import {ROLE_ORG_ADMIN, ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER, TokenKey} from '../../common/constants'; import {ROLE_ORG_ADMIN, ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER, TokenKey} from '../../../../common/constants';
import {hasRoles} from "../../common/utils"; import {hasRoles} from "../../../../common/utils";
export default { export default {
name: "MsUser", name: "MsUser",

View File

@ -1,28 +1,28 @@
import Vue from "vue"; import Vue from "vue";
import VueRouter from 'vue-router' import VueRouter from 'vue-router'
import RouterSidebar from "./RouterSidebar"; import RouterSidebar from "./RouterSidebar";
import Setting from "../settings/Setting"; import Setting from "../../settings/Setting";
import User from "../settings/system/User"; import User from "../../settings/system/User";
import EditPerformanceTestPlan from "../testPlan/EditPerformanceTestPlan"; import EditPerformanceTestPlan from "../../performance/testPlan/EditPerformanceTestPlan";
import PerformanceTestPlan from "../testPlan/PerformanceTestPlan"; import PerformanceTestPlan from "../../performance/testPlan/PerformanceTestPlan";
import Organization from "../settings/system/Organization"; import Organization from "../../settings/system/Organization";
import OrganizationMember from "../settings/organization/OrganizationMember"; import OrganizationMember from "../../settings/organization/OrganizationMember";
import Member from "../settings/workspace/WorkspaceMember"; import Member from "../../settings/workspace/WorkspaceMember";
import TestResourcePool from "../settings/system/TestResourcePool"; import TestResourcePool from "../../settings/system/TestResourcePool";
import MsProject from "../project/MsProject"; import MsProject from "../../project/MsProject";
import OrganizationWorkspace from "../settings/organization/OrganizationWorkspace"; import OrganizationWorkspace from "../../settings/organization/OrganizationWorkspace";
import PersonSetting from "../settings/personal/PersonSetting"; import PersonSetting from "../../settings/personal/PersonSetting";
import SystemWorkspace from "../settings/system/SystemWorkspace"; import SystemWorkspace from "../../settings/system/SystemWorkspace";
import PerformanceChart from "../project/PerformanceChart"; import PerformanceChart from "../../performance/report/components/PerformanceChart";
import PerformanceTestReport from "../report/PerformanceTestReport"; import PerformanceTestReport from "../../performance/report/PerformanceTestReport";
import FunctionalTestReport from "../report/FunctionalTestReport"; import FunctionalTestReport from "../../functional/report/FunctionalTestReport";
import FunctionalTest from "../testPlan/FunctionalTest"; import FunctionalTest from "../../functional/FunctionalTest";
import PerformanceTest from "../testPlan/PerformanceTest"; import PerformanceTest from "../../performance/PerformanceTest";
import EditFunctionalTestPlan from "../testPlan/EditFunctionalTestPlan"; import EditFunctionalTestPlan from "../../functional/testPlan/EditFunctionalTestPlan";
import PerformanceTestHome from "../testPlan/PerformanceTestHome"; import PerformanceTestHome from "../../performance/home/PerformanceTestHome";
import FunctionalTestPlan from "../testPlan/FunctionalTestPlan"; import FunctionalTestPlan from "../../functional/testPlan/FunctionalTestPlan";
import FunctionalTestHome from "../testPlan/FunctionalTestHome"; import FunctionalTestHome from "../../functional/home/FunctionalTestHome";
import PerformanceReportView from "../report/PerformanceReportView"; import PerformanceReportView from "../../performance/report/PerformanceReportView";
Vue.use(VueRouter); Vue.use(VueRouter);

View File

@ -12,7 +12,7 @@
</template> </template>
<script> <script>
import HeaderMenus from "../HeaderMenus"; import HeaderMenus from "../common/head/HeaderMenus";
export default { export default {
name: "FunctionalTest", name: "FunctionalTest",

View File

@ -14,8 +14,8 @@
<script> <script>
import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../common/constants"; import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../../common/constants";
import {hasRoles} from "../../../common/utils"; import {hasRoles} from "../../../../common/utils";
export default { export default {
name: "FunctionalRecentProject", name: "FunctionalRecentProject",

View File

@ -12,7 +12,7 @@
</template> </template>
<script> <script>
import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../common/constants"; import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../../common/constants";
export default { export default {
name: "PerformanceRecentReport", name: "PerformanceRecentReport",

View File

@ -11,8 +11,8 @@
</template> </template>
<script> <script>
import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../common/constants"; import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../../common/constants";
import {hasRoles} from "../../../common/utils"; import {hasRoles} from "../../../../common/utils";
export default { export default {
name: "PerformanceRecentTestPlan", name: "PerformanceRecentTestPlan",

View File

@ -13,7 +13,7 @@
<script> <script>
import HeaderMenus from "../HeaderMenus"; import HeaderMenus from "../common/head/HeaderMenus";
export default { export default {
name: "PerformanceTest", name: "PerformanceTest",

View File

@ -14,8 +14,8 @@
<script> <script>
import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../common/constants"; import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../../common/constants";
import {hasRoles} from "../../../common/utils"; import {hasRoles} from "../../../../common/utils";
export default { export default {
name: "PerformanceRecentProject", name: "PerformanceRecentProject",

View File

@ -12,8 +12,8 @@
</template> </template>
<script> <script>
import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../common/constants"; import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../../common/constants";
import {hasRoles} from "../../../common/utils"; import {hasRoles} from "../../../../common/utils";
export default { export default {
name: "PerformanceRecentReport", name: "PerformanceRecentReport",

View File

@ -11,7 +11,7 @@
</template> </template>
<script> <script>
import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../common/constants"; import {ROLE_TEST_MANAGER, ROLE_TEST_USER, ROLE_TEST_VIEWER} from "../../../../common/constants";
export default { export default {
name: "PerformanceRecentTestPlan", name: "PerformanceRecentTestPlan",

View File

@ -96,7 +96,8 @@
} }
}, },
mounted() { mounted() {
if (this.$route.path.split('/')[3] === 'create') { if (this.$route.path.split('/')[2] === 'project' &&
this.$route.path.split('/')[3] === 'create') {
this.create(); this.create();
this.$router.push( '/' + this.beaseUrl + '/project/all'); this.$router.push( '/' + this.beaseUrl + '/project/all');
} }
@ -104,7 +105,8 @@
}, },
watch: { watch: {
'$route'(to) { '$route'(to) {
if (to.path.split('/')[3] === 'create') { if (this.$route.path.split('/')[2] === 'project' &&
to.path.split('/')[3] === 'create') {
this.create(); this.create();
this.$router.push('/' + this.beaseUrl + '/project/all'); this.$router.push('/' + this.beaseUrl + '/project/all');
} }

View File

@ -5,7 +5,7 @@ import icon from "../common/icon";
import filters from "../common/filter"; import filters from "../common/filter";
import ajax from "../common/ajax"; import ajax from "../common/ajax";
import App from './App.vue'; import App from './App.vue';
import router from "./components/router/router"; import router from "./components/common/router/router";
import './permission' // permission control import './permission' // permission control
import i18n from "../i18n/i18n"; import i18n from "../i18n/i18n";
import store from "./store"; import store from "./store";

View File

@ -1,4 +1,4 @@
import router from './components/router/router' import router from './components/common/router/router'
import {TokenKey} from '../common/constants'; import {TokenKey} from '../common/constants';
const whiteList = ['/login']; // no redirect whitelist const whiteList = ['/login']; // no redirect whitelist

View File

@ -12,9 +12,9 @@ module.exports = {
} }
}, },
pages: { pages: {
performance: { business: {
entry: "src/performance/main.js", entry: "src/business/main.js",
template: "src/performance/index.html", template: "src/business/index.html",
filename: "index.html" filename: "index.html"
}, },
login: { login: {