|
@@ -1,75 +1,69 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <div class="box flexBetween">
|
|
|
- <!-- 左侧树结构 -->
|
|
|
- <div
|
|
|
- :style="{'width':threessW+'px'}"
|
|
|
- ref="rulesss"
|
|
|
- >
|
|
|
- <div
|
|
|
- class="box flexStar"
|
|
|
- style="width:100%;backgroundColor:#fff;border-radius:3px;padding:10px 0px 0px 8px;box-sizing: border-box;border: 1px solid #EBEEF5;overflow:hidden;"
|
|
|
+ <div
|
|
|
+ style="height:100%;"
|
|
|
+ class="flexStar"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="boxswai"
|
|
|
+ style="width:26%;padding-left:0px;"
|
|
|
+ >
|
|
|
+ <div class="boxnei">
|
|
|
+ <!-- 树结构 -->
|
|
|
+ <el-tree
|
|
|
+ style="width:100%;"
|
|
|
+ ref="trees"
|
|
|
+ :loading="loading"
|
|
|
+ :load="treeLoad"
|
|
|
+ lazy
|
|
|
+ :data="data"
|
|
|
+ :props="defaultProps"
|
|
|
+ @node-click="nodeClick"
|
|
|
+ node-key="id"
|
|
|
+ :expand-on-click-node="false"
|
|
|
>
|
|
|
- <!-- 树结构 -->
|
|
|
- <el-tree
|
|
|
- ref="trees"
|
|
|
- :style="{width:'100%',height:heightss-20+'px','box-sizing': 'border-box',overflow:'hidden'}"
|
|
|
- :loading="loading"
|
|
|
- :load="treeLoad"
|
|
|
- lazy
|
|
|
- :data="data"
|
|
|
- :props="defaultProps"
|
|
|
- @node-click="nodeClick"
|
|
|
- node-key="id"
|
|
|
- :expand-on-click-node="false"
|
|
|
+ <span
|
|
|
+ class="custom-tree-node"
|
|
|
+ slot-scope="{ data ,node }"
|
|
|
+ @mouseover.stop="mouseOver(data)"
|
|
|
+ @mouseleave.stop="mouseLeave(data)"
|
|
|
+ style="box-sizing: border-box;padding-right:70px!important;;"
|
|
|
>
|
|
|
- <span
|
|
|
- class="custom-tree-node"
|
|
|
- slot-scope="{ data ,node }"
|
|
|
- @mouseover.self="mouseOver(data)"
|
|
|
- @mouseleave.self="mouseLeave(data)"
|
|
|
- style="box-sizing: border-box;width:100%;"
|
|
|
- >
|
|
|
- <div>
|
|
|
- <span style="text-overflow: ellipsis;width:70%;"> {{ data.name }} </span>
|
|
|
- <!-- <span> {{ node}} </span> -->
|
|
|
- <!-- 添加 -->
|
|
|
- <span v-show="data.moreShow">
|
|
|
- <i
|
|
|
- class="el-icon-circle-plus-outline marleft10"
|
|
|
- @click.stop="addExcel(data)"
|
|
|
- v-if="data.fileType!=3"
|
|
|
- ></i>
|
|
|
- <!-- 编辑 -->
|
|
|
- <i
|
|
|
- class="el-icon-edit marleft10"
|
|
|
- @click.stop="editExcel(data)"
|
|
|
- v-if="data.fileType!=1"
|
|
|
- ></i>
|
|
|
- <!-- 删除 -->
|
|
|
- <i
|
|
|
- class="el-icon-delete marleft10"
|
|
|
- @click.stop="deleteExcelM(data,node)"
|
|
|
- v-if="!data.hasChildren&&data.fileType!=1"
|
|
|
- ></i>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </span>
|
|
|
- </el-tree>
|
|
|
- <div
|
|
|
- style="border-left:8px solid rgba(255,255,255,0);z-index:999;cursor: e-resize;"
|
|
|
- @mousedown="mousedown1()"
|
|
|
- ></div>
|
|
|
- </div>
|
|
|
+ <div style="width:100%;">
|
|
|
+ <span style="text-overflow: ellipsis;"> {{ data.name }} </span>
|
|
|
+ <!-- <span> {{ node}} </span> -->
|
|
|
+ <!-- 添加 -->
|
|
|
+ <span v-show="data.moreShow">
|
|
|
+ <i
|
|
|
+ class="el-icon-circle-plus-outline marleft10"
|
|
|
+ @click.stop="addExcel(data)"
|
|
|
+ v-if="data.fileType!=3"
|
|
|
+ ></i>
|
|
|
+ <!-- 编辑 -->
|
|
|
+ <i
|
|
|
+ class="el-icon-edit marleft10"
|
|
|
+ @click.stop="editExcel(data)"
|
|
|
+ v-if="data.fileType!=1"
|
|
|
+ ></i>
|
|
|
+ <!-- 删除 -->
|
|
|
+ <i
|
|
|
+ class="el-icon-delete marleft10"
|
|
|
+ @click.stop="deleteExcelM(data,node)"
|
|
|
+ v-if="!data.hasChildren&&data.fileType!=1"
|
|
|
+ ></i>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </span>
|
|
|
+ </el-tree>
|
|
|
</div>
|
|
|
- <!-- 右侧 -->
|
|
|
- <div
|
|
|
- class="rightBox box"
|
|
|
- style="height: 100%;"
|
|
|
- >
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="boxswai"
|
|
|
+ style="width:74%;padding-left:0px;padding-right:0px;"
|
|
|
+ >
|
|
|
+ <div class="boxnei">
|
|
|
<div
|
|
|
- style="width:calc(100% - 10px);backgroundColor:#fff;border-radius:3px;padding:10px 10px 0px 8px;box-sizing: border-box;border: 1px solid #EBEEF5;"
|
|
|
class="marleft10"
|
|
|
+ style="height:100%;"
|
|
|
>
|
|
|
<!-- 上传、删除、下载操作栏 -->
|
|
|
<div
|
|
@@ -110,7 +104,6 @@
|
|
|
>下载EXCEL</el-link>
|
|
|
</div>
|
|
|
<div
|
|
|
- :style="{width:'100%',height:heightss-13 +'px'}"
|
|
|
class="rightHeader"
|
|
|
v-show="from.checkd&&!from.fileUrl"
|
|
|
>
|
|
@@ -130,13 +123,14 @@
|
|
|
</el-upload>
|
|
|
</div>
|
|
|
<el-empty
|
|
|
- :style="{width:'100%',height:heightss-13 +'px'}"
|
|
|
+ style="height:80%;"
|
|
|
v-show="!from.checkd"
|
|
|
description="该目录为根目录没有EXCEL文件"
|
|
|
></el-empty>
|
|
|
<div
|
|
|
+ class="martop20"
|
|
|
v-if="from.fileUrl"
|
|
|
- :style="{ 'margin-top': '20px', 'height':heightss-60+'px','box-sizing': 'border-box','padding-bottom': '15px',}"
|
|
|
+ style="height:94%;"
|
|
|
>
|
|
|
<iframe
|
|
|
:src="excelSrc"
|
|
@@ -147,7 +141,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
<!-- 弹出框 -->
|
|
|
<el-dialog
|
|
|
:title="dialogTapType"
|
|
@@ -749,26 +742,12 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//#endregion
|
|
|
-
|
|
|
- //#region 树结构拉事件
|
|
|
- mousedown1 () {//鼠标按下事件
|
|
|
- document.onmousemove = (va) => {
|
|
|
- if (1000 > va.clientX - 240 && va.clientX - 240 > 200) {
|
|
|
- this.threessW = va.clientX - 240
|
|
|
- }
|
|
|
- }
|
|
|
- document.onmouseup = () => {
|
|
|
- document.onmousemove = null;
|
|
|
- document.onmouseup = null;
|
|
|
- }
|
|
|
- },
|
|
|
- //#endregion
|
|
|
},
|
|
|
created () {
|
|
|
this.excelType()//清表类型
|
|
|
},
|
|
|
mounted () {
|
|
|
- this.heightss = this.$refs.rulesss.clientHeight
|
|
|
+ // this.heightss = this.$refs.rulesss.clientHeight
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -784,18 +763,10 @@ export default {
|
|
|
color: rgb(0, 82, 217);
|
|
|
}
|
|
|
|
|
|
-.box {
|
|
|
- height: 800px;
|
|
|
-}
|
|
|
-
|
|
|
.el-scrollbar {
|
|
|
height: 100%;
|
|
|
}
|
|
|
|
|
|
-.box .el-scrollbar__wrap {
|
|
|
- overflow: scroll;
|
|
|
-}
|
|
|
-
|
|
|
.rightHeader {
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|