|
|
@@ -102,6 +102,7 @@ import archiveTray from "@/assets/images/archiveTray.png";
|
|
|
import {documentation}from "@/api/biz/actor.js"
|
|
|
import {getInfo}from "@/api/biz/info.js"
|
|
|
import elTableInfiniteScroll from 'el-table-infinite-scroll'
|
|
|
+import { setIcon } from "@/utils/index.js";
|
|
|
export default {
|
|
|
directives: {
|
|
|
'el-table-infinite-scroll': elTableInfiniteScroll
|
|
|
@@ -221,17 +222,7 @@ export default {
|
|
|
// console.log(data, e, 'tab');
|
|
|
}
|
|
|
function getImage(file) {
|
|
|
- if (file === '.txt') {
|
|
|
- return ImgFile.txt
|
|
|
- } else if (file === '.xlxs' || file === '.docx') {
|
|
|
- return ImgFile.xlxs
|
|
|
- } else if (file === '.pptx') {
|
|
|
- return ImgFile.pptx
|
|
|
- } else if (file === '.word') {
|
|
|
- return ImgFile.word
|
|
|
- } else if (file === '.pdf') {
|
|
|
- return ImgFile.pdf
|
|
|
- }
|
|
|
+ return setIcon(file);
|
|
|
}
|
|
|
function formatFileSize(fileSize) {
|
|
|
if (fileSize >= 1024 * 1024 * 1024) {
|
|
|
@@ -363,6 +354,10 @@ export default {
|
|
|
background-color: #F5F7F9;
|
|
|
position: relative;
|
|
|
}
|
|
|
+.juli{
|
|
|
+ width: 22px;
|
|
|
+ height: 22px;
|
|
|
+}
|
|
|
.preview {
|
|
|
width: 100%;
|
|
|
height: 100%;
|