parent
a905301736
commit
e1c0f69432
|
@ -1,49 +1,66 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="menu-bar" v-if="isRouterAlive">
|
<div id="menu-bar" v-if="isRouterAlive">
|
||||||
<el-row type="flex">
|
<el-row type="flex">
|
||||||
<project-switch :project-name="currentProject"/>
|
<project-switch :project-name="currentProject" />
|
||||||
<el-col :span="14">
|
<el-col :span="14">
|
||||||
<el-menu class="header-menu" :unique-opened="true" mode="horizontal" router :default-active='$route.path'>
|
<el-menu
|
||||||
|
class="header-menu"
|
||||||
|
:unique-opened="true"
|
||||||
|
mode="horizontal"
|
||||||
|
router
|
||||||
|
:default-active="$route.path"
|
||||||
|
>
|
||||||
<el-menu-item
|
<el-menu-item
|
||||||
:index="'/report/project-statistics'"
|
:index="'/report/project-statistics'"
|
||||||
v-permission="['PROJECT_REPORT_ANALYSIS:READ', 'PROJECT_REPORT_ANALYSIS:READ+EXPORT',
|
v-permission="[
|
||||||
'PROJECT_REPORT_ANALYSIS:READ+UPDATE', 'PROJECT_REPORT_ANALYSIS:READ+CREATE']">
|
'PROJECT_REPORT_ANALYSIS:READ',
|
||||||
|
'PROJECT_REPORT_ANALYSIS:READ+EXPORT',
|
||||||
|
'PROJECT_REPORT_ANALYSIS:READ+UPDATE',
|
||||||
|
'PROJECT_REPORT_ANALYSIS:READ+CREATE',
|
||||||
|
]"
|
||||||
|
>
|
||||||
{{ $t("commons.report_statistics.menu.project_statistics") }}
|
{{ $t("commons.report_statistics.menu.project_statistics") }}
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item
|
<el-menu-item
|
||||||
:index="'/report/project-report'" v-xpack
|
:index="'/report/project-report'"
|
||||||
v-permission="['PROJECT_ENTERPRISE_REPORT:READ+EXPORT', 'PROJECT_ENTERPRISE_REPORT:READ+CREATE',
|
v-permission="[
|
||||||
'PROJECT_ENTERPRISE_REPORT:READ+DELETE', 'PROJECT_ENTERPRISE_REPORT:READ+COPY',
|
'PROJECT_ENTERPRISE_REPORT:READ+EXPORT',
|
||||||
'PROJECT_ENTERPRISE_REPORT:READ+SCHEDULE', 'PROJECT_ENTERPRISE_REPORT:READ+EDIT']">
|
'PROJECT_ENTERPRISE_REPORT:READ+CREATE',
|
||||||
|
'PROJECT_ENTERPRISE_REPORT:READ+DELETE',
|
||||||
|
'PROJECT_ENTERPRISE_REPORT:READ+COPY',
|
||||||
|
'PROJECT_ENTERPRISE_REPORT:READ+SCHEDULE',
|
||||||
|
'PROJECT_ENTERPRISE_REPORT:READ+EDIT',
|
||||||
|
]"
|
||||||
|
>
|
||||||
{{ $t("commons.report_statistics.menu.project_report") }}
|
{{ $t("commons.report_statistics.menu.project_report") }}
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
|
|
||||||
</el-menu>
|
</el-menu>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<ms-header-right-menus/>
|
<ms-header-right-menus />
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import ProjectSwitch from "metersphere-frontend/src/components/head/ProjectSwitch";
|
import ProjectSwitch from "metersphere-frontend/src/components/head/ProjectSwitch";
|
||||||
import {hasLicense, hasPermission} from "metersphere-frontend/src/utils/permission";
|
import {
|
||||||
|
hasLicense,
|
||||||
|
hasPermission,
|
||||||
|
} from "metersphere-frontend/src/utils/permission";
|
||||||
import MsHeaderRightMenus from "metersphere-frontend/src/components/layout/HeaderRightMenus";
|
import MsHeaderRightMenus from "metersphere-frontend/src/components/layout/HeaderRightMenus";
|
||||||
import {PROJECT_NAME} from "metersphere-frontend/src/utils/constants";
|
import { PROJECT_NAME } from "metersphere-frontend/src/utils/constants";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ReportStatisticsHeaderMenus",
|
name: "ReportStatisticsHeaderMenus",
|
||||||
components: {ProjectSwitch, MsHeaderRightMenus},
|
components: { ProjectSwitch, MsHeaderRightMenus },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
licenseCheck: false,
|
licenseCheck: false,
|
||||||
isProjectActivation: true,
|
isProjectActivation: true,
|
||||||
isRouterAlive: true,
|
isRouterAlive: true,
|
||||||
apiTestProjectPath: '',
|
apiTestProjectPath: "",
|
||||||
currentProject: sessionStorage.getItem(PROJECT_NAME),
|
currentProject: sessionStorage.getItem(PROJECT_NAME),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -57,21 +74,19 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {},
|
||||||
},
|
|
||||||
created() {
|
created() {
|
||||||
if (this.hasLicense()) {
|
if (this.hasLicense()) {
|
||||||
this.licenseCheck = true;
|
this.licenseCheck = true;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
#menu-bar {
|
#menu-bar {
|
||||||
border-bottom: 1px solid #E6E6E6;
|
border-bottom: 1px solid #e6e6e6;
|
||||||
background-color: #FFF;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-divider {
|
.menu-divider {
|
||||||
|
@ -82,7 +97,7 @@ export default {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.deactivation :deep( .el-submenu__title ) {
|
.deactivation :deep(.el-submenu__title) {
|
||||||
border-bottom: white !important;
|
border-bottom: white !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue