Authored by 王涛

文档管理

@@ -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%;"> 15 <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"> 16 + <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">
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()?'60px':'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>
1 <cm-document :isView="true" 1 <cm-document :isView="true"
2 :viewTypeId="docType" 2 :viewTypeId="docType"
3 - :fileIds="[docType]"  
4 :viewTypeName="docTypeName" 3 :viewTypeName="docTypeName"
5 :types="[docType,'user']" 4 :types="[docType,'user']"
6 :checkAuth="false" 5 :checkAuth="false"