feat(XPack): 报表分析,前端页面完成
This commit is contained in:
parent
445df3a281
commit
4aac690fc8
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
|
@ -18,6 +18,10 @@
|
|||
v-permission="['test_manager','test_user','test_viewer']">
|
||||
{{ $t('commons.performance') }}
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/reportForm" v-permission="['test_manager','test_user','test_viewer']" v-if="isReport">
|
||||
{{ $t('commons.report_statistics.title') }}
|
||||
</el-menu-item>
|
||||
|
||||
<el-menu-item index="/setting" onselectstart="return false">
|
||||
{{ $t('commons.system_setting') }}
|
||||
</el-menu-item>
|
||||
|
@ -25,11 +29,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/);
|
||||
const report = requireComponent.keys().length > 0 ? requireComponent("./report/ReportAnalysis.vue") : null;
|
||||
|
||||
export default {
|
||||
name: "MsTopMenus",
|
||||
data() {
|
||||
return {
|
||||
activeIndex: '/'
|
||||
activeIndex: '/',
|
||||
isReport: report
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
|
@ -5,6 +5,7 @@ import Setting from "@/business/components/settings/router";
|
|||
import API from "@/business/components/api/router";
|
||||
import Performance from "@/business/components/performance/router";
|
||||
import Track from "@/business/components/track/router";
|
||||
const requireContext = require.context('@/business/components/xpack/', true, /router\.js$/)
|
||||
|
||||
Vue.use(VueRouter);
|
||||
|
||||
|
@ -21,6 +22,7 @@ const router = new VueRouter({
|
|||
API,
|
||||
Performance,
|
||||
Track,
|
||||
...requireContext.keys().map(key => requireContext(key).report),
|
||||
]
|
||||
});
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 448f6ad1178b1c04df18b386df188974b781a7fd
|
||||
Subproject commit e8f074b11af55c44a43a413e239def2ddf58bd3c
|
Loading…
Reference in New Issue