|
@@ -45,8 +45,8 @@
|
|
|
v-if="item.encryptLevel"
|
|
|
>
|
|
|
<template #content> 安全级别: {{ item.encryptLevel == 'L1'?'敏感':(item.encryptLevel == 'L2'?'涉密':(item.encryptLevel == 'L3'?'机密':'绝密')) }} </template>
|
|
|
- <img :src="item.dirType=='1'?ordinaryList:fileStyle" style="width: 72px;height: 72px;"></el-tooltip>
|
|
|
- <img :src="item.dirType=='1'?ordinaryList:fileStyle" style="width: 72px;height: 72px;" v-else>
|
|
|
+ <img :src="item.dirType=='1'?ordinaryList:fileStyle" style="width: 72px;height: 72px;" class="shouzhi"></el-tooltip>
|
|
|
+ <img :src="item.dirType=='1'?ordinaryList:fileStyle" style="width: 72px;height: 72px;" class="shouzhi" v-else>
|
|
|
<el-tooltip
|
|
|
class="box-item tool-tip"
|
|
|
effect="dark"
|
|
@@ -54,7 +54,7 @@
|
|
|
> <template #content> <span>{{ item.dirName }}</span></template>
|
|
|
<p class="ellipsis-text shouzhi">{{ item.dirName }}</p>
|
|
|
</el-tooltip>
|
|
|
- <img class="levelImg" v-if="item.isEncrypt === 'Y'" :src="getLevelImg(item.encryptLevel)" alt="">
|
|
|
+ <img class="levelImg shouzhi" v-if="item.isEncrypt === 'Y'" :src="getLevelImg(item.encryptLevel)" alt="">
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -285,7 +285,7 @@
|
|
|
</el-collapse>
|
|
|
<div :class="{'setCli':!noMenuItem}" v-if="cliCC" :style="{ left: xz + 'px', top: yz -100 + 'px' }">
|
|
|
<template v-for="(item, index) in filterMouseCli()" :key="index">
|
|
|
- <p @click="chooseSet(item, index, 1)" v-if="!noMenuItem" class="chooseSet">
|
|
|
+ <p @click="chooseSet(item, index, 1)" v-if="!noMenuItem" class="chooseSet" style="cursor: pointer;">
|
|
|
<img :src="item.img" alt="">
|
|
|
{{ item.name }}
|
|
|
<span v-if="item.name == '在线编辑' || item.name == '协作' ? true : false"
|
|
@@ -329,8 +329,12 @@
|
|
|
</div>
|
|
|
<!-- 文件上传 -->
|
|
|
<div>
|
|
|
- <el-dialog v-model="uploadModal" title="文件上传" width="30%">
|
|
|
- <el-upload class="upload-demo" :file-list="fileArr" drag :http-request="onSuccess" multiple>
|
|
|
+ <el-dialog v-model="uploadModal" title="文件上传" width="30%" @close="closeUpload">
|
|
|
+ <el-upload class="upload-demo" :file-list="fileArr" drag :http-request="onSuccess" multiple
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ element-loading-text="上传中..."
|
|
|
+ element-loading-background="rgba(255, 255, 255, 0.8)"
|
|
|
+ v-loading="loadingUpload" >
|
|
|
<el-icon class="el-icon--upload"><upload-filled /></el-icon>
|
|
|
<div class="el-upload__text">拖入或<em>点击上传</em></div>
|
|
|
<template #tip>
|
|
@@ -339,7 +343,7 @@
|
|
|
</el-upload>
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
|
- <el-button @click="uploadModal = false">取消</el-button>
|
|
|
+ <el-button @click="closeUpload">取消</el-button>
|
|
|
<el-button type="primary" @click="sureUpload">确认</el-button>
|
|
|
</span>
|
|
|
</template>
|
|
@@ -508,6 +512,7 @@ export default {
|
|
|
const router = useRouter(); //注册路由
|
|
|
const route = useRoute(); //注册路由
|
|
|
const fileUserTreeData = reactive({ data: {} });
|
|
|
+ const loadingUpload = ref(false);//文件上传加载
|
|
|
let fileList = ref()
|
|
|
let menuList = ref([
|
|
|
{
|
|
@@ -982,6 +987,7 @@ export default {
|
|
|
}
|
|
|
// 确认上传
|
|
|
function sureUpload() {
|
|
|
+ loadingUpload.value = true;
|
|
|
if (fileArr.value.length > 0) {
|
|
|
for (var i = 1; i <= fileArr.value.length; i++) {
|
|
|
myfile.uploadFile({
|
|
@@ -996,16 +1002,30 @@ export default {
|
|
|
})
|
|
|
refreshFile()
|
|
|
uploadModal.value = false
|
|
|
+ loadingUpload.value = false;
|
|
|
fileArr.value = []
|
|
|
}
|
|
|
- }).catch(err=>{
|
|
|
- // console.log('UPerr',err);
|
|
|
+ }).catch(err => {
|
|
|
+ loadingUpload.value = false;
|
|
|
+ fileArr.value = []
|
|
|
})
|
|
|
}
|
|
|
+ } else {
|
|
|
+ loadingUpload.value = false;
|
|
|
+ return ElMessage({ message: "请选择文件", type: "error" })
|
|
|
}
|
|
|
}
|
|
|
function onSuccess(files, val) {
|
|
|
fileArr.value.push(files.file)
|
|
|
+ } //关闭文件上传
|
|
|
+ const closeUpload =() =>{
|
|
|
+ uploadModal.value = false;
|
|
|
+ fileArr.value = [];
|
|
|
+ loadingUpload.value = false
|
|
|
+ }
|
|
|
+ // 移除上传的某些文件
|
|
|
+ const handleRemove = (file,rawFile) => {
|
|
|
+ fileArr.value = [...rawFile]
|
|
|
}
|
|
|
// 筛选后缀图片
|
|
|
function getImage(file) {
|
|
@@ -1892,7 +1912,10 @@ export default {
|
|
|
upFolderData,
|
|
|
setTablelevel,
|
|
|
levelList,
|
|
|
- getLevelList
|
|
|
+ getLevelList,
|
|
|
+ closeUpload,
|
|
|
+ handleRemove,
|
|
|
+ loadingUpload
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -2154,6 +2177,7 @@ p {
|
|
|
line-height: 30px;
|
|
|
margin: 5px auto;
|
|
|
font-size: 13px;
|
|
|
+ cursor: pointer;
|
|
|
|
|
|
// display: flex;
|
|
|
// align-items: center;
|