项目配置不显示图表后去除项目报表tab
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2026-01-07 11:31:37 +08:00
parent 8d1d5cb43a
commit 47798750a4
1 changed files with 21 additions and 13 deletions

View File

@ -2,10 +2,10 @@
<template>
<div class="trialsTab">
<el-tabs v-model="trialsTab" @tab-click="clickTab">
<el-tab-pane v-for="item of trialsRouter.children.find(v => { return v.name == 'TrialsPanel' }).children"
:key="`tab${item.path}`"
<template v-for="item of trialsRouter.children.find(v => { return v.name == 'TrialsPanel' }).children">
<el-tab-pane :key="`tab${item.path}`"
:disabled="TotalNeedSignTrialDocCount !== 0 && item.path !== '/trials/trials-panel/attachments'"
:label="$t(item.LanguageMark)" :name="item.path">
:label="$t(item.LanguageMark)" :name="item.path" v-if="isShowNode(item)">
<el-tabs v-if="!item.tabHiddn" v-model="trialsTabChild" @tab-click="clickTab"
style="background-color: #f5f7fa;">
<template v-for="item1 of item.children">
@ -15,6 +15,8 @@
</template>
</el-tabs>
</el-tab-pane>
</template>
</el-tabs>
<div style="position: absolute;top: 0;right: 0;display: flex;justify-content: space-between;align-items: center">
<trials-select />
@ -117,6 +119,12 @@ export default {
}
},
methods: {
isShowNode(item) {
if (item.path === '/trials/trials-panel/trial-summary' && item.children.length === 1 && item.children[0].path === '/trials/trials-panel/trial-summary/report-forms' && !this.$store.state.trials.config.IsExternalViewTrialChart && this.hasPermi(['role:cmm', 'role:cpm', 'role:ea', 'role:mc', 'role:smm', 'role:spm'])) {
return false
}
return true
},
isShow: function (path) {
var isShow = true
let chartList = [