feat: 标准场景库隐藏删除库和一维表格
This commit is contained in:
@@ -7,7 +7,12 @@
|
||||
<el-button type="primary" icon="finished" @click="openAddApproveUserFun">
|
||||
{{ $t('工况库.提交评审') }}
|
||||
</el-button>
|
||||
<el-button type="danger" icon="delete" @click="openDelPoolFun">
|
||||
<el-button
|
||||
v-if="!enableConfigByTenant([TENANT_ENUM.LYRIC])"
|
||||
type="danger"
|
||||
icon="delete"
|
||||
@click="openDelPoolFun"
|
||||
>
|
||||
{{ $t('工况库.删除库') }}
|
||||
</el-button>
|
||||
<div class="pool-select select-form">
|
||||
@@ -68,6 +73,7 @@
|
||||
</div>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
v-if="!enableConfigByTenant([TENANT_ENUM.LYRIC])"
|
||||
:content="$t('工况库.切换至一维表格视图')"
|
||||
placement="top"
|
||||
:disabled="currentTableType !== TableViewType.CARD"
|
||||
@@ -153,7 +159,10 @@
|
||||
</div>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
v-if="currentTableType === TableViewType.TREE"
|
||||
v-if="
|
||||
currentTableType === TableViewType.TREE &&
|
||||
!enableConfigByTenant([TENANT_ENUM.LYRIC])
|
||||
"
|
||||
:content="$t('工况库.切换至一维表格视图')"
|
||||
placement="top"
|
||||
ref="switchFromTreeToListTooltipRef"
|
||||
@@ -330,6 +339,7 @@ import { TABLE_NAME } from '@/utils/enum/tableName';
|
||||
import { CommonStore } from '@/stores/common';
|
||||
import { useTaskStore } from '@/stores/taskPool';
|
||||
import { jumpPage } from '@/utils/common';
|
||||
import { enableConfigByTenant, TENANT_ENUM } from '@/tenants/tenant';
|
||||
|
||||
const commonStore = CommonStore();
|
||||
const taskStore = useTaskStore();
|
||||
|
||||
Reference in New Issue
Block a user