|
@@ -1,20 +1,13 @@
|
|
|
<template>
|
|
|
- <div class="f_box">
|
|
|
- <div class="f_box_top">
|
|
|
+ <div class="f_box" :style="{'background': stype2 == 2 ? '#fff' :'','padding': stype2 == 2 ? '10px' :''}">
|
|
|
+ <!-- <div class="f_box_top" >
|
|
|
<div class="f_box_top_left">
|
|
|
<div class="f_box_top_title">
|
|
|
所有文件夹
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="f_box_top_right">
|
|
|
- <span v-if="checkArray.length" style="margin-right: 10px;color: #b0b0b0;font-size: 14px;">已选文件夹{{checkArray.length}}个</span>
|
|
|
- <el-button type="primary" size="small" @click="openAdd"
|
|
|
- >新建文件夹</el-button>
|
|
|
- <el-button type="danger" size="small" @click="deleteFolder"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+
|
|
|
+ </div> -->
|
|
|
<div class="f_box_top">
|
|
|
<div class="f_box_top_left">
|
|
|
<el-select
|
|
@@ -68,17 +61,34 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="f_box_top_right">
|
|
|
- <div class="input">
|
|
|
+ <div>
|
|
|
+ <div class="left" style="display: flex;justify-content: flex-end;padding: 10px 12px;">
|
|
|
+ <span class="list" :class="{ active: stype2 == 1 }" @click="checkStype2(1)"></span>
|
|
|
+ <span class="table" :class="{ active: stype2 == 2 }" @click="checkStype2(2)"></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="input" style="margin-right: 12px;">
|
|
|
+ <div class="serch"></div>
|
|
|
<input
|
|
|
type="text"
|
|
|
v-model="fileName"
|
|
|
placeholder="请输入你需要搜索的文件夹名字"
|
|
|
@input="debouncedSearch"
|
|
|
/>
|
|
|
- <div class="serch"></div>
|
|
|
+ </div>
|
|
|
+ <div class="f_box_top_right">
|
|
|
+ <el-button type="primary"
|
|
|
+ style="background-color: #3370FF;height: 38px;" size="small" @click="openAdd"
|
|
|
+ icon="el-icon-plus"
|
|
|
+ >新建文件夹</el-button>
|
|
|
+ <el-button style="height: 38px;margin-right: 12px;" type="danger" v-if="checkArray.length && stype2 == 2" size="small" @click="deleteFolder"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
+ <span v-if="checkArray.length && stype2 == 2" style="margin-right: 10px;color: #b0b0b0;font-size: 14px;">已选文件夹{{checkArray.length}}个</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="none_box" v-if="fileArray.length == 0">
|
|
|
暂无文件夹
|
|
|
</div>
|
|
@@ -87,12 +97,126 @@
|
|
|
v-else-if="stype == '2' && fileArray.length"
|
|
|
v-loading.body="isLoading"
|
|
|
>
|
|
|
- <div class="list_file_box">
|
|
|
+
|
|
|
+ <!-- 切换样式 -->
|
|
|
+ <div v-if="stype2 == 1" class="listBlockS" :style="{'grid-template-columns': `repeat(${lisTnum}, 1fr)`}">
|
|
|
+ <div class="listBlock" @click="editFile(item.id, item.folderid)" v-for="(item,index) in fileArray" :key="index">
|
|
|
+ <div class="listBlockTit">
|
|
|
+ <div class="listBlockTit">
|
|
|
+ <img style="width: 28px;height: 28px;" src="../../../assets/listfolder2.svg" alt="">
|
|
|
+ <div class="listBlockTitZ" style="margin-left: 5px;color: #111824;">{{ item.name }}</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="listDetail">
|
|
|
+ <span v-if="!item.detail">暂无描述~</span>
|
|
|
+ <div class="listDetail2" v-else>
|
|
|
+ {{ item.detail }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="listBlockTit">
|
|
|
+ <div class="owerCon" >
|
|
|
+ <div style="display: flex;align-items: center;margin-right: 10px;">
|
|
|
+ <img src="../../../assets/owerlogo.png" alt="">
|
|
|
+ {{ item.username }}
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;align-items: center;margin-right: 10px;flex-shrink: 0;">
|
|
|
+ <img v-if="item.juri == 1" style="width: 13px;" src="../../../assets/siyou1.svg" alt="">
|
|
|
+ <img v-if="item.juri == 2" style="width: 13px;" src="../../../assets/siyou2.svg" alt="">
|
|
|
+ <img v-if="item.juri == 3" style="width: 13px;" src="../../../assets/siyou3.svg" alt="">
|
|
|
+ {{ getJuri(item.juri) }}
|
|
|
+ </div>
|
|
|
+ <div class="listTag">
|
|
|
+ {{ item.subTagName }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div >
|
|
|
+ <el-popover
|
|
|
+ placement="bottom-start"
|
|
|
+ trigger="hover"
|
|
|
+ popper-class="custom-popover"
|
|
|
+ visible-arrow
|
|
|
+ width="100px"
|
|
|
+ >
|
|
|
+ <div class="BtnHP" >
|
|
|
+ <div class="BtnHPDel">
|
|
|
+ <!-- <el-button
|
|
|
+ @click="editFile(item.id, item.folderid)"
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ @mouseover="isHover = true"
|
|
|
+ @mouseleave="isHover = false"
|
|
|
+ > -->
|
|
|
+
|
|
|
+ <div class="btnBh"
|
|
|
+ @click="editFile(item.id, item.folderid)"
|
|
|
+ @mouseover="isHover = true"
|
|
|
+ @mouseleave="isHover = false">
|
|
|
+ <img
|
|
|
+ :src="isHover ? look2 : look1"
|
|
|
+
|
|
|
+ >
|
|
|
+ <span :class="isHover ? 'lookHp2' : 'lookHp1'">查看</span>
|
|
|
+ </div>
|
|
|
+ <!-- </el-button
|
|
|
+ > -->
|
|
|
+ <!-- <el-button
|
|
|
+ @click="copyFolder(item)"
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ v-if="item.isMo == '2'"
|
|
|
+ > -->
|
|
|
+ <div class="btnBh"
|
|
|
+ v-if="item.isMo == '2'"
|
|
|
+ @click="copyFolder(item)"
|
|
|
+ @mouseover="isHover2 = true"
|
|
|
+ @mouseleave="isHover2 = false">
|
|
|
+ <img
|
|
|
+ :src="isHover2 ? copy1 : copy2"
|
|
|
+ alt="">
|
|
|
+ <span :class="isHover2 ? 'lookHp2' : 'lookHp1'">复制</span>
|
|
|
+ </div>
|
|
|
+ <!-- </el-button > -->
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div v-if="item.userid == userid && item.isMo == '2'"
|
|
|
+ style="background-color: #e7e7e7;width: 100%;height: .5px;margin: 5px 0;">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="BtnHPDel1">
|
|
|
+ <!-- <el-button
|
|
|
+ @click="deleteFile(item.id, item.folderid)"
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ style="color: #DE4C41;"
|
|
|
+ v-if="item.userid == userid && item.isMo == '2'"
|
|
|
+ > -->
|
|
|
+ <div class="btnBh2"
|
|
|
+ @click="deleteFile(item.id, item.folderid,1)"
|
|
|
+ v-if="item.userid == userid && item.isMo == '2'">
|
|
|
+ <img src="../../../assets/listdel.svg" alt="">
|
|
|
+ <span style="color: #DE4C41;">删除</span>
|
|
|
+ </div>
|
|
|
+ <!-- </el-button
|
|
|
+ > -->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-button slot="reference" class="BtnH" style="border: none;padding: 5px;">
|
|
|
+ <i class="el-icon-more"></i>
|
|
|
+ </el-button>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div v-else class="list_file_box">
|
|
|
<el-table
|
|
|
ref="myTable"
|
|
|
:data="fileArray"
|
|
|
border
|
|
|
- stripe
|
|
|
style="width: 100%"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
:row-key="row => row.id"
|
|
@@ -118,20 +242,22 @@
|
|
|
<el-table-column
|
|
|
prop="fileCount"
|
|
|
label="文件数"
|
|
|
- width="80px"
|
|
|
+ align="center"
|
|
|
+ width="100px"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
prop="username"
|
|
|
label="拥有者"
|
|
|
+ align="center"
|
|
|
show-overflow-tooltip
|
|
|
min-width="10"
|
|
|
></el-table-column>
|
|
|
- <el-table-column label="标签" show-overflow-tooltip min-width="10">
|
|
|
+ <el-table-column label="标签" align="center" show-overflow-tooltip min-width="10">
|
|
|
<template slot-scope="scope">
|
|
|
{{ getTag(scope.row) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="公开权限" width="80px">
|
|
|
+ <el-table-column label="公开权限" align="center" width="120px">
|
|
|
<template slot-scope="scope">
|
|
|
{{ getJuri(scope.row.juri) }}
|
|
|
</template>
|
|
@@ -141,34 +267,94 @@
|
|
|
label="编辑时间"
|
|
|
min-width="15"
|
|
|
></el-table-column>
|
|
|
- <el-table-column label="操作" width="280px">
|
|
|
+ <el-table-column align="center" width="100px">
|
|
|
<template slot-scope="scope">
|
|
|
- <div>
|
|
|
- <el-button
|
|
|
- @click="editFile(scope.row.id, scope.row.folderid)"
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- >查看</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- @click="copyFolder(scope.row)"
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- v-if="scope.row.isMo == '2'"
|
|
|
- >复制</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- @click="deleteFile(scope.row.id, scope.row.folderid)"
|
|
|
- type="danger"
|
|
|
- size="small"
|
|
|
- v-if="scope.row.userid == userid && scope.row.isMo == '2'"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ <div >
|
|
|
+ <el-popover
|
|
|
+ placement="bottom-start"
|
|
|
+ trigger="hover"
|
|
|
+ popper-class="custom-popover"
|
|
|
+ visible-arrow
|
|
|
+ width="100px"
|
|
|
+ >
|
|
|
+ <div class="BtnHP" >
|
|
|
+ <div class="BtnHPDel">
|
|
|
+ <div class="btnBh"
|
|
|
+ @click="editFile(scope.row.id, scope.row.folderid)"
|
|
|
+ @mouseover="isHover = true"
|
|
|
+ @mouseleave="isHover = false">
|
|
|
+ <img
|
|
|
+ :src="isHover ? look2 : look1"
|
|
|
+
|
|
|
+ >
|
|
|
+ <span :class="isHover ? 'lookHp2' : 'lookHp1'">查看</span>
|
|
|
+ </div>
|
|
|
+ <!-- <el-button
|
|
|
+ @click="editFile(scope.row.id, scope.row.folderid)"
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ >查看</el-button
|
|
|
+ > -->
|
|
|
+
|
|
|
+ <div class="btnBh"
|
|
|
+ v-if="scope.row.isMo == '2'"
|
|
|
+ @click="copyFolder(scope.row)"
|
|
|
+ @mouseover="isHover2 = true"
|
|
|
+ @mouseleave="isHover2 = false">
|
|
|
+ <img
|
|
|
+ :src="isHover2 ? copy1 : copy2"
|
|
|
+ alt="">
|
|
|
+ <span :class="isHover2 ? 'lookHp2' : 'lookHp1'">复制</span>
|
|
|
+ </div>
|
|
|
+ <!-- <el-button
|
|
|
+ @click="copyFolder(scope.row)"
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ v-if="scope.row.isMo == '2'"
|
|
|
+ >复制</el-button
|
|
|
+ > -->
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div v-if="scope.row.userid == userid && scope.row.isMo == '2'"
|
|
|
+ style="background-color: #e7e7e7;width: 100%;height: .5px;margin: 5px 0;">
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="BtnHPDel1">
|
|
|
+ <div class="btnBh2"
|
|
|
+ @click="deleteFile(scope.row.id, scope.row.folderid)"
|
|
|
+ v-if="scope.row.userid == userid && scope.row.isMo == '2'">
|
|
|
+ <img src="../../../assets/listdel.svg" alt="">
|
|
|
+ <span style="color: #DE4C41;">删除</span>
|
|
|
+ </div>
|
|
|
+ <!-- <el-button
|
|
|
+ @click="deleteFile(scope.row.id, scope.row.folderid)"
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ style="color: #DE4C41;"
|
|
|
+ v-if="scope.row.userid == userid && scope.row.isMo == '2'"
|
|
|
+ >删除</el-button
|
|
|
+ > -->
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <el-button slot="reference" class="BtnH" style="border: none;background: none;padding: 5px;">
|
|
|
+ <i class="el-icon-more"></i>
|
|
|
+ </el-button>
|
|
|
+
|
|
|
+ </el-popover>
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<el-pagination
|
|
|
class="pageBox"
|
|
|
style="margin-top: 10px;"
|
|
@@ -221,6 +407,14 @@ import wVideo from "../test/file/wVideo.vue";
|
|
|
import wpdf from "../test/file/wPdf2.vue";
|
|
|
import wOffice from "../test/file/wOffice.vue";
|
|
|
|
|
|
+// 导入SVG组件
|
|
|
+import look1 from '../../../assets/look1.svg';
|
|
|
+import look2 from '../../../assets/look2.svg';
|
|
|
+import copy2 from '../../../assets/copy2.svg';
|
|
|
+import copy1 from '../../../assets/copy1.svg';
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
import JSZip from "jszip";
|
|
|
import FileSaver from "file-saver";
|
|
|
|
|
@@ -303,6 +497,12 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ look1:look1,
|
|
|
+ look2:look2,
|
|
|
+ copy2:copy2,
|
|
|
+ copy1:copy1,
|
|
|
+ isHover:false,
|
|
|
+ isHover2:false,
|
|
|
isLoading: false,
|
|
|
proVisible: false,
|
|
|
stype: 2,
|
|
@@ -335,10 +535,20 @@ export default {
|
|
|
tagData3: [],
|
|
|
check1: [],
|
|
|
check2: [],
|
|
|
- check3: []
|
|
|
+ check3: [],
|
|
|
+ stype2: 1,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
+ lisTnum(){
|
|
|
+ if (this.fileArray.length>=9 || this.fileArray.length>2) {
|
|
|
+ return 4;
|
|
|
+ }else if (this.fileArray.length<=2) {
|
|
|
+ return 2;
|
|
|
+ }else if (this.fileArray.length<=1) {
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+ },
|
|
|
retrunType() {
|
|
|
return function(item) {
|
|
|
if (item.type == 1) {
|
|
@@ -375,6 +585,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ checkStype2(type) {
|
|
|
+ if (this.stype2 != type) {
|
|
|
+ this.checkArray=[]
|
|
|
+ this.stype2 = type
|
|
|
+ }
|
|
|
+ },
|
|
|
getTagArray(type) {
|
|
|
const tagLoadings = [
|
|
|
this.tagLoading1,
|
|
@@ -460,7 +676,8 @@ export default {
|
|
|
folderid: row.folderid
|
|
|
}));
|
|
|
},
|
|
|
- deleteFile(id, folderid) {
|
|
|
+ deleteFile(id, folderid,val) {
|
|
|
+
|
|
|
this.$confirm("确定删除文件夹吗?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -477,7 +694,9 @@ export default {
|
|
|
});
|
|
|
this.checkArray = [];
|
|
|
this.checkArray2 = [];
|
|
|
- this.$refs.myTable.clearSelection();
|
|
|
+ if (val != 1) {
|
|
|
+ this.$refs.myTable.clearSelection();
|
|
|
+ }
|
|
|
this.getData();
|
|
|
})
|
|
|
.catch(err => {
|
|
@@ -575,18 +794,95 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
+
|
|
|
+.listBlockS{
|
|
|
+ display: grid;
|
|
|
+ font-family: PingFang;
|
|
|
+ gap: 20px;
|
|
|
+ -webkit-box-align: stretch;
|
|
|
+ align-items: stretch;
|
|
|
+}
|
|
|
+.listBlock{
|
|
|
+ flex: 1;
|
|
|
+ min-width: 250px;
|
|
|
+ user-select: none;
|
|
|
+ height: 150px;
|
|
|
+ cursor: pointer;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border:1px solid #DFE2EA;
|
|
|
+ /* margin-top: 1.25rem; */
|
|
|
+ border-radius: 0.75rem;
|
|
|
+ background-color: #fff;
|
|
|
+ box-shadow: 0px 4px 4px 0px rgba(19, 51, 107, 0.05), 0px 0px 1px 0px rgba(19, 51, 107, 0.08);
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 20px 20px 12px;
|
|
|
+}
|
|
|
+
|
|
|
+.listBlock:hover{
|
|
|
+ border-color: #94B5FF;
|
|
|
+ box-shadow: 0px 1px 2px 0px rgba(19, 51, 107, 0.10), 0px 0px 1px 0px rgba(19, 51, 107, 0.15);
|
|
|
+}
|
|
|
+.listBlockTit{
|
|
|
+ display: flex;
|
|
|
+ font-size: 16px;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ overflow: hidden;
|
|
|
+
|
|
|
+}
|
|
|
+.listBlockTitZ{
|
|
|
+ min-width: 100px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
+.owerCon{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #667085;
|
|
|
+ width: 80%;
|
|
|
+}
|
|
|
+
|
|
|
+.owerCon img{
|
|
|
+ width: 16px;
|
|
|
+ margin-right: 5px;
|
|
|
+}
|
|
|
+.listDetail{
|
|
|
+ /* height: 100%; */
|
|
|
+ height: 45px;
|
|
|
+ font-size: 12.8px;
|
|
|
+ color: #667085;
|
|
|
+ padding: 12px 0;
|
|
|
+
|
|
|
+}
|
|
|
+.listDetail2{
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+}
|
|
|
.f_box {
|
|
|
width: 100%;
|
|
|
/* height: 100%; */
|
|
|
+ height: calc(100% - 58px);
|
|
|
+ margin-top: 16px;
|
|
|
+ border-radius: 8px;
|
|
|
+ padding-bottom: 0 !important;
|
|
|
+ box-sizing: border-box;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.f_box_top {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- padding: 10px;
|
|
|
+ padding: 0;
|
|
|
width: 100%;
|
|
|
box-sizing: border-box;
|
|
|
+ padding-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.f_box_top_left {
|
|
@@ -595,7 +891,12 @@ export default {
|
|
|
}
|
|
|
|
|
|
.f_box_top_title {
|
|
|
- font-size: 16px;
|
|
|
+ /* font-size: 16px; */
|
|
|
+ color: rgba(8, 13, 30, .9);
|
|
|
+ font-size: 20px;
|
|
|
+ font-style: normal;
|
|
|
+ font-weight: 500;
|
|
|
+ /* line-height: 32px; */
|
|
|
/* font-weight: bold; */
|
|
|
}
|
|
|
|
|
@@ -646,7 +947,18 @@ export default {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
-
|
|
|
+.f_box_top_right >>> .el-icon-plus:before {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 600;
|
|
|
+ /* vertical-align: middle; */
|
|
|
+}
|
|
|
+.f_box_top_right >>> .el-button{
|
|
|
+ height: 38px !important;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+.f_box_top_right >>>.el-button--primary:focus,.f_box_top_right>>> .el-button--primary:hover{
|
|
|
+ filter: brightness(120%);
|
|
|
+}
|
|
|
.f_box_top_right > .input {
|
|
|
position: relative;
|
|
|
width: 280px;
|
|
@@ -658,7 +970,7 @@ export default {
|
|
|
height: 100%;
|
|
|
border: 1px solid #dcdfe6;
|
|
|
border-radius: 5px;
|
|
|
- padding: 0 45px 0 15px;
|
|
|
+ padding: 0 15px 0 45px;
|
|
|
box-sizing: border-box;
|
|
|
font-size: 14px;
|
|
|
outline: none;
|
|
@@ -672,7 +984,7 @@ export default {
|
|
|
background-image: url("../../../assets/icon/sourceFile/search.png");
|
|
|
background-size: 100% 100%;
|
|
|
position: absolute;
|
|
|
- right: 13px;
|
|
|
+ left: 13px;
|
|
|
top: 50%;
|
|
|
transform: translateY(-50%);
|
|
|
cursor: pointer;
|
|
@@ -860,7 +1172,10 @@ export default {
|
|
|
/* height: calc(100% - 55px); */
|
|
|
/* overflow: auto; */
|
|
|
width: 100%;
|
|
|
- padding: 10px;
|
|
|
+ padding: 10px 0;
|
|
|
+ padding-top: 0;
|
|
|
+ margin-top: 10px;
|
|
|
+ border-radius: 8px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
@@ -984,11 +1299,233 @@ export default {
|
|
|
.list_file_box {
|
|
|
width: 100%;
|
|
|
}
|
|
|
+.list_file_box>>> .el-table{
|
|
|
+ border-radius: 10px !important;
|
|
|
+ overflow: hidden !important;
|
|
|
+}
|
|
|
+
|
|
|
+.list_file_box >>>table th{
|
|
|
+ border:none !important;
|
|
|
+ background-color: #f2f3f6 !important; /* 浅灰色背景 */
|
|
|
+ color: #00000099 !important;
|
|
|
+}
|
|
|
+.list_file_box >>>table tr td{
|
|
|
+ border:none !important;
|
|
|
+ border-bottom: 1px solid #EBEEF5 !important;
|
|
|
+}
|
|
|
+
|
|
|
+.list_file_box >>>table tr {
|
|
|
+ border:1px #000 solid !important;
|
|
|
+}
|
|
|
+
|
|
|
+.list_file_box >>> .el-table__header-wrapper{
|
|
|
+ margin-bottom: 10px !important;
|
|
|
+}
|
|
|
+
|
|
|
+.list_file_box >>> .el-table__row{
|
|
|
+ border: 1px #ccc solid;
|
|
|
+}
|
|
|
+.list_file_box >>>table tr td:nth-child(1){
|
|
|
+ border-radius: 10px 0 0 10px !important;
|
|
|
+}
|
|
|
+.list_file_box >>>table tr td:nth-last-child(1){
|
|
|
+ border-radius: 0 10px 10px 0 !important;
|
|
|
+}
|
|
|
+
|
|
|
+.list_file_box >>>table tr th:nth-child(1){
|
|
|
+ border-radius: 10px 0 0 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.list_file_box >>>table tr th:nth-last-child(2){
|
|
|
+ border-radius: 0 10px 10px 0 !important;
|
|
|
+}
|
|
|
+.list_file_box >>>.el-table::before{
|
|
|
+ background-color: #fff;
|
|
|
+}
|
|
|
+.list_file_box >>>.el-table--border::after{
|
|
|
+ background-color: #fff;
|
|
|
+}
|
|
|
+.list_file_box >>> .el-table--border{
|
|
|
+ border: none;
|
|
|
+ border-bottom: 1px solid #EBEEF5;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+.BtnH >>> .el-button{
|
|
|
+ padding: 5px !important;
|
|
|
+ width: 30px !important;
|
|
|
+ color: #4C5567;
|
|
|
+}
|
|
|
+.BtnH >>> .el-button:focus,.BtnH >>> .el-button:hover{
|
|
|
+ background: #E8EBF0 !important;
|
|
|
+ color: #487FFF !important;
|
|
|
+}
|
|
|
+.BtnH >>> .el-button--small, .el-button--small.is-round{
|
|
|
+ border: none;
|
|
|
+ padding: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.BtnHP{
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
+
|
|
|
+.BtnHP >>> .el-button:focus, .BtnHP >>> .el-button:hover{
|
|
|
+ background-color: #487FFF;
|
|
|
+}
|
|
|
+
|
|
|
+.BtnHP >>>.el-popper .popper__arrow, .el-popper .popper__arrow::after{
|
|
|
+ display: none;
|
|
|
+}
|
|
|
+.BtnHP >>> .el-button--text{
|
|
|
+ color: #667095;
|
|
|
+}
|
|
|
+.BtnHP img{
|
|
|
+ width: 16px;
|
|
|
+}
|
|
|
+
|
|
|
+/* 删除 */
|
|
|
+.BtnHPDel1{
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ color: #DE4C41 !important;
|
|
|
+}
|
|
|
+.BtnHPDel1 >>> .el-button:focus, .BtnHPDel1 >>> .el-button:hover{
|
|
|
+ background: #FBEAE8 ;
|
|
|
+ color: #DE4C41 !important;
|
|
|
+}
|
|
|
+/* .BtnHPDel1{
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+} */
|
|
|
|
|
|
+.BtnHPDel{
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
+.BtnHPDel >>> .el-button+.el-button{
|
|
|
+ padding: 0;
|
|
|
+}
|
|
|
+.BtnHPDel >>> .el-button:focus,.BtnHPDel >>> .el-button:hover{
|
|
|
+ background: #E8EBF0 !important;
|
|
|
+}
|
|
|
+/* .BtnHPDel >>> .el-button:hover .lookHp{
|
|
|
+
|
|
|
+} */
|
|
|
+.lookHp2{
|
|
|
+ color: #6c6c6c;
|
|
|
+}
|
|
|
+.lookHp2{
|
|
|
+ color: #487FFF;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+.left {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-left: auto;
|
|
|
+}
|
|
|
+.left>span {
|
|
|
+ height: 25px;
|
|
|
+ width: 25px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ border-radius: 5px;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+.left>span+span {
|
|
|
+ margin-left: 10px;
|
|
|
+}
|
|
|
+.left>span.active {
|
|
|
+ background: #E0EAFB;
|
|
|
+}
|
|
|
+.left>span::before {
|
|
|
+ content: "";
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ background-size: 100% 100%;
|
|
|
+}
|
|
|
+.left>span.list::before {
|
|
|
+ background-image: url("../../../assets/test_list.png");
|
|
|
+}
|
|
|
+.left>span.table::before {
|
|
|
+ background-image: url("../../../assets/test_table.png");
|
|
|
+}
|
|
|
+
|
|
|
+.left>span.table.active::before {
|
|
|
+ background-image: url("../../../assets/test_table_active.png");
|
|
|
+}
|
|
|
+.left>span.list.active::before {
|
|
|
+ background-image: url("../../../assets/test_list_active.png");
|
|
|
+}
|
|
|
.pageBox{
|
|
|
display: flex;
|
|
|
}
|
|
|
.pageBox >>> .el-pagination__total{
|
|
|
margin-right: auto;
|
|
|
}
|
|
|
+.btnBh{
|
|
|
+ display: flex;
|
|
|
+ /* align-items: center; */
|
|
|
+ justify-content: center;
|
|
|
+ cursor: pointer;
|
|
|
+ /* height: 28px; */
|
|
|
+ padding: 4px 10px;
|
|
|
+
|
|
|
+ border-radius: 5px;
|
|
|
+}
|
|
|
+.btnBh:hover{
|
|
|
+ background: #F0F4FF;
|
|
|
+}
|
|
|
+.btnBh img{
|
|
|
+ margin-right: 5px;
|
|
|
+ width: 17px;
|
|
|
+}
|
|
|
+.btnBh2{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ cursor: pointer;
|
|
|
+ height: 28px;
|
|
|
+ padding: 0 10px;
|
|
|
+ border-radius: 5px;
|
|
|
+}
|
|
|
+.btnBh2 img{
|
|
|
+ width: 14px;
|
|
|
+ margin-right: 5px;
|
|
|
+}
|
|
|
+.btnBh2:hover{
|
|
|
+ background: #FBEAE8;
|
|
|
+}
|
|
|
+.listTag{
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+}
|
|
|
+.f_box_file_list >>> .el-table-column--selection .cell{
|
|
|
+ display: flex !important;
|
|
|
+ align-items: center !important;
|
|
|
+}
|
|
|
</style>
|
|
|
+
|
|
|
+<style>
|
|
|
+.custom-popover {
|
|
|
+ min-width: 18px !important;
|
|
|
+ width: auto !important;
|
|
|
+ padding: 8px;
|
|
|
+}
|
|
|
+.custom-popover2 {
|
|
|
+ min-width: 18px !important;
|
|
|
+ width: auto !important;
|
|
|
+ padding: 8px;
|
|
|
+ top: 414px !important;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+</style>
|