NEZ-1025 fix:panel name超长 限制 最大宽度 (补充显示 chartNum 以及 下拉框内显示 title)
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
node-key="id"
|
||||
ref="panelTree">
|
||||
<div class="tree--node" slot-scope="{ node, data }">
|
||||
<span>{{ node.label }}</span>
|
||||
<span :title="node.label + ' (' + data.chartNum +'charts )' ">{{ node.label }}</span>
|
||||
<!-- <span class="tree--operation" v-if="!panelLock">-->
|
||||
<!-- <span @click.stop="deletePanel(data)" class="panel-dropdown-btn panel-dropdown-btn-delete" v-has="'panel_delete'"><i class="nz-icon nz-icon-delete"></i></span>-->
|
||||
<!-- <span class="panel-dropdown-btn" @click.stop="editPanel(data)"><i v-has="'panel_edit'" class="nz-icon nz-icon-edit"></i></span>-->
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</template>
|
||||
<template v-slot:trigger>
|
||||
<i style="color: #BEBEBE" class="el-icon-menu"></i>
|
||||
<span :title="showPanel.name" class="show-panel-name">{{showPanel.name}}</span>
|
||||
<span :title="showPanel.name + ' (' + showPanel.chartNum +'charts )' " class="show-panel-name">{{showPanel.name}}</span>
|
||||
<i style="font-size: 12px;color: #BEBEBE;" class="nz-icon nz-icon-arrow-down"></i>
|
||||
</template>
|
||||
<template v-slot:tail>
|
||||
@@ -517,7 +517,7 @@ export default {
|
||||
this.panelData = response.data.list
|
||||
for (let i = 0; i < this.panelData.length; i++) {
|
||||
if (this.panelData[i].id == this.showPanel.id) {
|
||||
this.showPanel.name = this.panelData[i].name
|
||||
this.showPanel = this.panelData[i]
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user