|
@@ -719,6 +719,7 @@ export default {
|
|
|
const spaceName = ref()
|
|
|
const isDept = ref(false)// 是否管理员
|
|
|
const loadingUpload = ref(false);//文件上传加载
|
|
|
+ let fileBig = ref(0);
|
|
|
const maxFileSize = ref()//能上传的最大size
|
|
|
const scannerList = ref() // 扫描仪数据
|
|
|
const checkScanId = ref() // 选中的scan的id
|
|
@@ -1134,6 +1135,14 @@ export default {
|
|
|
// 确认上传
|
|
|
function sureUpload() {
|
|
|
loadingUpload.value = true;
|
|
|
+ if (useSpace.value * 1024 * 1024 + fileBig.value / 1024 > allSpace.value * 1024 * 1024) {
|
|
|
+ ElMessage({
|
|
|
+ message: "超过最大容量,请联系管理员扩容",
|
|
|
+ type: "error",
|
|
|
+ })
|
|
|
+ loadingUpload.value = false;
|
|
|
+ return
|
|
|
+ }
|
|
|
if (fileArr.value.length > 0) {
|
|
|
for (var i = 1; i <= fileArr.value.length; i++) {
|
|
|
myfile.uploadFile({
|
|
@@ -1162,6 +1171,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
function onSuccess(files, val) {
|
|
|
+ fileBig.value = files.file.size
|
|
|
fileArr.value.push(files.file)
|
|
|
}
|
|
|
//关闭文件上传
|
|
@@ -1639,6 +1649,7 @@ export default {
|
|
|
// console.log(222);
|
|
|
getAllTop()
|
|
|
}
|
|
|
+ getSpaceList()
|
|
|
}
|
|
|
//star收藏事件
|
|
|
const collectByStar = (row,isfolder)=>{
|
|
@@ -2272,7 +2283,8 @@ export default {
|
|
|
inputTitle,
|
|
|
isCode,
|
|
|
sureCode,
|
|
|
- upFileData
|
|
|
+ upFileData,
|
|
|
+ fileBig
|
|
|
}
|
|
|
},
|
|
|
watch: {
|