|
@@ -25,15 +25,12 @@
|
|
|
<a-input v-model:value="fileName" placeholder="请输入文件名称" />
|
|
|
<a-button type="primary" preIcon="ant-design:search-outlined" @click="onSearch">查询</a-button>
|
|
|
<a-button type="primary" style="float: right; margin-right: 20px" @click="openModal(true)">文件上传</a-button>
|
|
|
- <!-- <a-upload :before-upload="beforeUpload" :remove="handleRemove" :multiple="false" :file-list="fileList">
|
|
|
- <a-button type="primary" preIcon="ant-design:cloud-upload-outlined">文件上传</a-button>
|
|
|
- </a-upload> -->
|
|
|
</div>
|
|
|
<div class="list">
|
|
|
- <div class="bd-t"></div>
|
|
|
+ <!-- <div class="bd-t"></div> -->
|
|
|
<NormalTable v-if="alive" :searchParam="fileName" :nodeParam="nodeParam" :columns="columns" :list="getTree"
|
|
|
:deleteById="deleteById" :downLoad="downLoad" designScope="file-detail" title="文件详情" />
|
|
|
- <div class="bd-b"></div>
|
|
|
+ <!-- <div class="bd-b"></div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -85,7 +82,7 @@ let formState = reactive({//上传文件类型,是否审批
|
|
|
})
|
|
|
let startUpload:any=ref(null)
|
|
|
|
|
|
-//lxh tree
|
|
|
+//lxh 当前选中树节点
|
|
|
let selected = reactive<any>({
|
|
|
id: null,
|
|
|
pid: null,
|
|
@@ -93,28 +90,9 @@ let selected = reactive<any>({
|
|
|
isFolder: false,
|
|
|
});
|
|
|
//左侧菜单列表
|
|
|
-// const listArr = reactive(list);
|
|
|
let listArr = reactive<any[]>([]);
|
|
|
|
|
|
-//递归遍历左侧菜单数据
|
|
|
-// let list2tree = (list) => {
|
|
|
-// list.forEach((child) => {
|
|
|
-// const pid = child.parentId;
|
|
|
-// if (pid) {
|
|
|
-// list.forEach((parent) => {
|
|
|
-// if (parent.id === pid) {
|
|
|
-// parent.children = parent.children || [];
|
|
|
-// parent.isFolder = true;
|
|
|
-// parent.title = parent.fileName;
|
|
|
-// parent.pid = parent.parentId;
|
|
|
-// parent.children.push({ id: child.id, isFolder: true, title: child.fileName, pid: child.parentId });
|
|
|
-// }
|
|
|
-// });
|
|
|
-// }
|
|
|
-// });
|
|
|
-// console.log(list, '999999999');
|
|
|
-// return list.filter((n) => n.parentId == 'root');
|
|
|
-// };
|
|
|
+
|
|
|
//上传文件
|
|
|
let openModal = (val) => {
|
|
|
formState.isApprove=false
|
|
@@ -174,6 +152,10 @@ let getTreeList = async () => {
|
|
|
console.log(list, 'list');
|
|
|
listArr.push(...list);
|
|
|
console.log(listArr, '树节点数据');
|
|
|
+ selected.id=listArr[0].id
|
|
|
+ selected.pid=listArr[0].pid
|
|
|
+ selected.title=listArr[0].title
|
|
|
+ selected.isFolder=listArr[0].isFolder
|
|
|
};
|
|
|
|
|
|
//点击目录
|
|
@@ -260,7 +242,7 @@ onMounted(() => {
|
|
|
height: 100%;
|
|
|
padding: 15px;
|
|
|
position: relative;
|
|
|
- background: url(../../../../assets/images/files/homes/bd.png) no-repeat center;
|
|
|
+ // background: url(../../../../assets/images/files/homes/bd.png) no-repeat center;
|
|
|
|
|
|
.content {
|
|
|
width: 100%;
|
|
@@ -275,10 +257,14 @@ onMounted(() => {
|
|
|
height: calc(100% - 20px);
|
|
|
margin-bottom: 20px;
|
|
|
padding: 20px;
|
|
|
- border: 2px solid #268bc1;
|
|
|
- box-shadow: 0px 0px 20px 7px rgba(30, 119, 186, 0.7) inset;
|
|
|
- -moz-box-shadow: 0px 0px 20px 7px rgba(30, 119, 186, 0.7) inset;
|
|
|
- -webkit-box-shadow: 0px 0px 20px 7px rgba(30, 119, 186, 0.7) inset;
|
|
|
+ border: 1px solid #91e9fe;
|
|
|
+ box-shadow: 0px 0px 20px 7px rgba(145, 233, 254, 0.7) inset;
|
|
|
+ -moz-box-shadow: 0px 0px 20px 7px rgba(145, 233, 254, 0.7) inset;
|
|
|
+ -webkit-box-shadow: 0px 0px 20px 7px rgba(145, 233, 254, 0.7) inset;
|
|
|
+ // border: 2px solid #268bc1;
|
|
|
+ // box-shadow: 0px 0px 20px 7px rgba(30, 119, 186, 0.7) inset;
|
|
|
+ // -moz-box-shadow: 0px 0px 20px 7px rgba(30, 119, 186, 0.7) inset;
|
|
|
+ // -webkit-box-shadow: 0px 0px 20px 7px rgba(30, 119, 186, 0.7) inset;
|
|
|
|
|
|
// lxh
|
|
|
.iconfont {
|