Merge branch 'master-500-dev' of http://192.168.1.136:82/monitor_v3/hg-monitor-w…
…eb into master-500-dev-lushangqing
Showing
2 changed files
with
4 additions
and
10 deletions
@@ -2,7 +2,6 @@ | @@ -2,7 +2,6 @@ | ||
2 | <el-row :gutter="5"> | 2 | <el-row :gutter="5"> |
3 | <el-col :span="layout.left"> | 3 | <el-col :span="layout.left"> |
4 | <div style="border-radius: 3px;background-color: white" | 4 | <div style="border-radius: 3px;background-color: white" |
5 | - onmouseout="$('.tree-tools').hide();" | ||
6 | :style="{'height':height+'px','max-height':height + 'px','overflow':'auto'}"> | 5 | :style="{'height':height+'px','max-height':height + 'px','overflow':'auto'}"> |
7 | <div v-if="showTitle" style="text-align: left;padding-left: 10px;padding-top: 3px;font-weight: bold"> | 6 | <div v-if="showTitle" style="text-align: left;padding-left: 10px;padding-top: 3px;font-weight: bold"> |
8 | <slot name="title"> | 7 | <slot name="title"> |
@@ -10,18 +9,14 @@ | @@ -10,18 +9,14 @@ | ||
10 | </slot> | 9 | </slot> |
11 | </div> | 10 | </div> |
12 | <!----> | 11 | <!----> |
13 | - <el-tree ref="tree" style="padding:6px;width: 600px" :props="props" :data="treeData" node-key="id" | 12 | + <el-tree ref="tree" style="padding:6px;" :props="props" :data="treeData" node-key="id" |
14 | :expand-on-click-node="false" :expand-on-click-node="true" :default-expanded-keys="defaultExpandedKeys"> | 13 | :expand-on-click-node="false" :expand-on-click-node="true" :default-expanded-keys="defaultExpandedKeys"> |
15 | <template #default="{ node, data }"> | 14 | <template #default="{ node, data }"> |
16 | - <div style="display: flex;flex-direction: row;width: 100%;"> | ||
17 | - <div :style="{'width':isAdmin() ? 'calc(100% - 85px)':'100%','max-width':isAdmin() ? 'calc(100% - 85px)':'100%'}" | ||
18 | - onmouseover="$('.tree-tools').hide();$(this).next().show()" | ||
19 | - style="overflow: hidden;text-overflow: ellipsis;text-align: left;" @click="nodeClick(node, data)" :title="node.label"> | 15 | + <div style="display: flex;flex-direction: row;flex: 1;overflow: hidden"> |
16 | + <div style="overflow: hidden;text-overflow: ellipsis;text-align: left;flex:1" @click="nodeClick(node, data)" :title="node.label"> | ||
20 | {{node.label }} | 17 | {{node.label }} |
21 | </div> | 18 | </div> |
22 | - <div onmouseout="$(this).hide()" | ||
23 | - class="tree-tools" | ||
24 | - v-if="isAdmin()" :style="{'width':isAdmin()?'80px':'0px','position': 'fixed','left': '200px','display':'none','background':'#F2F6FC'}"> | 19 | + <div v-if="isAdmin()" :style="{'width':isAdmin()?'70px':'0px'}"> |
25 | <a @click="editType(data)" v-if="!data.root" style="margin-right: 10px;"> | 20 | <a @click="editType(data)" v-if="!data.root" style="margin-right: 10px;"> |
26 | <i class="el-icon-edit"></i> | 21 | <i class="el-icon-edit"></i> |
27 | </a> | 22 | </a> |
-
Please register or login to post a comment