|
@@ -406,6 +406,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import { ArrowRight } from "@element-plus/icons-vue";
|
|
import { ArrowRight } from "@element-plus/icons-vue";
|
|
|
// import { number } from "echarts";
|
|
// import { number } from "echarts";
|
|
|
import * as qiniu from "qiniu-js";
|
|
import * as qiniu from "qiniu-js";
|
|
|
|
|
+import defultThumUrlimage from '@/assets/defultThumUrl.svg'
|
|
|
// import { switchCase } from "@babel/types";
|
|
// import { switchCase } from "@babel/types";
|
|
|
|
|
|
|
|
//===================
|
|
//===================
|
|
@@ -963,7 +964,8 @@ let breadcrumbList = ref([
|
|
|
},
|
|
},
|
|
|
]); // 面包屑
|
|
]); // 面包屑
|
|
|
let files = ref([]); // 文件数据列表
|
|
let files = ref([]); // 文件数据列表
|
|
|
-const defultThumUrl = ref("src/assets/defultThumUrl.svg"); // 默认文件夹的样式图片
|
|
|
|
|
|
|
+
|
|
|
|
|
+const defultThumUrl = ref(defultThumUrlimage); // 默认文件夹的样式图片
|
|
|
|
|
|
|
|
function clickBreadcrumb(breadcrumb, index) {
|
|
function clickBreadcrumb(breadcrumb, index) {
|
|
|
breadcrumbList.value = breadcrumbList.value.slice(0, index + 1);
|
|
breadcrumbList.value = breadcrumbList.value.slice(0, index + 1);
|
|
@@ -992,6 +994,13 @@ function dbClickOpenFile(file) {
|
|
|
createButtonVisible.value = false;
|
|
createButtonVisible.value = false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+import fileTypeDll from '@/assets/file_type_dll.svg'
|
|
|
|
|
+import fileTypeId from '@/assets/file_type_ld.png'
|
|
|
|
|
+import fileTypeApk from '@/assets/file_type_apk.svg'
|
|
|
|
|
+import fileTypeYeshen from '@/assets/file_type_yeshen.webp'
|
|
|
|
|
+import fileTypeOther from '@/assets/file_type_other.svg'
|
|
|
|
|
+
|
|
|
async function initMaterialPage(id = 0) {
|
|
async function initMaterialPage(id = 0) {
|
|
|
searchInfo.value.parent_id = id;
|
|
searchInfo.value.parent_id = id;
|
|
|
files.value = [];
|
|
files.value = [];
|
|
@@ -1030,19 +1039,19 @@ async function initMaterialPage(id = 0) {
|
|
|
};
|
|
};
|
|
|
switch (table.data.fileList[i].file_type) {
|
|
switch (table.data.fileList[i].file_type) {
|
|
|
case 1:
|
|
case 1:
|
|
|
- temp.thumUrl = "src/assets/file_type_dll.svg";
|
|
|
|
|
|
|
+ temp.thumUrl = fileTypeDll;
|
|
|
break;
|
|
break;
|
|
|
case 2:
|
|
case 2:
|
|
|
- temp.thumUrl = "src/assets/file_type_ld.svg";
|
|
|
|
|
|
|
+ temp.thumUrl = fileTypeId;
|
|
|
break;
|
|
break;
|
|
|
case 3:
|
|
case 3:
|
|
|
- temp.thumUrl = "src/assets/file_type_apk.svg";
|
|
|
|
|
|
|
+ temp.thumUrl = fileTypeApk;
|
|
|
break;
|
|
break;
|
|
|
case 4:
|
|
case 4:
|
|
|
- temp.thumUrl = "src/assets/file_type_yeshen.webp";
|
|
|
|
|
|
|
+ temp.thumUrl = fileTypeYeshen;
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
- temp.thumUrl = "src/assets/file_type_other.svg";
|
|
|
|
|
|
|
+ temp.thumUrl = fileTypeOther;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
files.value.push(temp);
|
|
files.value.push(temp);
|
|
@@ -1181,7 +1190,7 @@ initMaterialPage();
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
width: 80px;
|
|
width: 80px;
|
|
|
height: 80px;
|
|
height: 80px;
|
|
|
- background-image: url(../../assets/defultThumUrl.svg);
|
|
|
|
|
|
|
+ background-image: url("@/assets/defultThumUrl.svg");
|
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
|
}
|
|
}
|
|
|
.icon-thumb {
|
|
.icon-thumb {
|
|
@@ -1240,7 +1249,7 @@ initMaterialPage();
|
|
|
width: 20px;
|
|
width: 20px;
|
|
|
height: 20px;
|
|
height: 20px;
|
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
|
- background-image: url(../../assets/selected.svg);
|
|
|
|
|
|
|
+ background-image: url(@/assets/selected.svg);
|
|
|
opacity: 0;
|
|
opacity: 0;
|
|
|
}
|
|
}
|
|
|
.icon-file-selected:hover {
|
|
.icon-file-selected:hover {
|
|
@@ -1259,7 +1268,7 @@ initMaterialPage();
|
|
|
width: 20px;
|
|
width: 20px;
|
|
|
height: 20px;
|
|
height: 20px;
|
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
|
- background-image: url(../../assets/selected.svg);
|
|
|
|
|
|
|
+ background-image: url(@/assets/selected.svg);
|
|
|
opacity: 1;
|
|
opacity: 1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|