perf: endpoint detail chart编辑页不展示panel
This commit is contained in:
@@ -163,8 +163,8 @@
|
||||
<el-form-item :label='$t("dashboard.panel.chartForm.chartName")' prop="title">
|
||||
<el-input maxlength="64" show-word-limit size="small" v-model="editChart.name" id="chart-box-title"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('dashboard.panel.title')" prop="panelName" v-if="showPanel.type != 'project' && showPanel.type != 'asset' && showPanel.type != 'model' && from!=='chartTemp'">
|
||||
<select-panel :filter-panel="filterPanel" :panel-lock="true" :disabled="showPanel.type==='dashboard'" :panelData="panelData" :placement="'bottom-start'" @selectPanel="selectPanel" ref="selectPanel">
|
||||
<el-form-item v-if="showPanel.type !== fromRoute.project && showPanel.type !== fromRoute.asset && showPanel.type !== fromRoute.endpoint && showPanel.type !== fromRoute.model && from!=='chartTemp'" :label="$t('dashboard.panel.title')" prop="panelName">
|
||||
<select-panel ref="selectPanel" :disabled="showPanel.type === 'dashboard'" :filter-panel="filterPanel" :panel-lock="true" :panelData="panelData" :placement="'bottom-start'" @selectPanel="selectPanel">
|
||||
<template v-slot:header>
|
||||
<div class="panel-select-header">
|
||||
<el-input id="chart-box-panelname" v-model="filterPanel" :placeholder="$t('overall.search')" clearable size="small" style="width: 340px; margin-right: 5px;"></el-input>
|
||||
@@ -448,7 +448,7 @@ import richTextEditor from '../../charts/richTextEditor'
|
||||
import selectPanel from '../../common/popBox/selectPanel'
|
||||
import nezhaColor from '../../common/nezhaColor'
|
||||
import i18n from '../../common/i18n'
|
||||
|
||||
import { fromRoute } from '@/components/common/js/constants'
|
||||
const rz = {
|
||||
methods: {
|
||||
rz (e) {
|
||||
@@ -472,6 +472,7 @@ export default {
|
||||
mixins: [rz],
|
||||
data () {
|
||||
return {
|
||||
fromRoute,
|
||||
optionBtn: {
|
||||
save: false
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user