...
|
...
|
@@ -12,11 +12,11 @@ |
|
|
<el-tree ref="tree" style="padding:6px;" :props="props" :data="treeData" node-key="id"
|
|
|
:expand-on-click-node="false" :expand-on-click-node="true" :default-expanded-keys="defaultExpandedKeys">
|
|
|
<template #default="{ node, data }">
|
|
|
<div style="display: flex;flex-direction: row;width: 100%;">
|
|
|
<div :style="{'width':isAdmin() ? 'calc(100% - 85px)':'100%','max-width':isAdmin() ? 'calc(100% - 85px)':'100%'}" style="overflow: hidden;text-overflow: ellipsis;text-align: left;" @click="nodeClick(node, data)" :title="node.label">
|
|
|
<div style="display: flex;flex-direction: row;flex: 1;overflow: hidden">
|
|
|
<div style="overflow: hidden;text-overflow: ellipsis;text-align: left;flex:1" @click="nodeClick(node, data)" :title="node.label">
|
|
|
{{node.label }}
|
|
|
</div>
|
|
|
<div v-if="isAdmin()" :style="{'width':isAdmin()?'60px':'0px'}">
|
|
|
<div v-if="isAdmin()" :style="{'width':isAdmin()?'70px':'0px'}">
|
|
|
<a @click="editType(data)" v-if="!data.root" style="margin-right: 10px;">
|
|
|
<i class="el-icon-edit"></i>
|
|
|
</a>
|
...
|
...
|
|