添加清空回收站进度

This commit is contained in:
RenCheng 2025-04-21 00:24:13 +08:00
parent c57323efb7
commit 4738f5744d
4 changed files with 106 additions and 12 deletions

View File

@ -967,7 +967,7 @@ textarea,
} }
.result-wrapper { .result-wrapper {
background: rgb(15, 41, 61) !important; background: #fff !important;
border: none !important; border: none !important;
height: 360px; height: 360px;

View File

@ -461,7 +461,7 @@ export default {
} }
.quarter-div { .quarter-div {
min-width: 200px; min-width: 196px;
height: 130px; height: 130px;
float: left; float: left;
margin-right: 12px; margin-right: 12px;

View File

@ -0,0 +1,92 @@
<template>
<a-modal
v-model:visible="visible"
title="任务进度"
:footer="null"
:closable="false"
:mask="false"
:maskClosable="false"
class="progress-modal"
:dialog-style="{ top: '800px' ,left :'620px'}"
>
<!-- 自定义关闭按钮 -->
<div
class="close-btn"
type="text"
@click="handleClose"
>
×
</div>
<a-progress
:percent="percent"
status="active"
:stroke-color="'#0D9C54'"
/>
</a-modal>
</template>
<script>
export default {
name: "deleteFileModal",
components: {
},
data () {
return {
visible: false,
percent:0
}
},
created () {
},
methods: {
open () {
this.rangeTime=[];
this.visible =true;
setInterval(() => {
if (this.percent < 100) {
this.percent += 10;
} else {
clearInterval(intervalId);
}
}, 500);
},
handleClose(){
this.visible =false;
}
}
}
</script>
<style scoped>
/* 隐藏默认模态框头部 */
.progress-modal :deep(.ant-modal-header) {
display: none;
}
/* 调整内容区域 */
.progress-modal :deep(.ant-modal-body) {
padding: 40px 16px 16px;
min-height: 60px;
position: relative;
}
/* 自定义关闭按钮 */
.close-btn {
width: 22px;
height: 22px;
background: rgba(4,60,89,0.43);
border: 1px solid #D6DAE3;
position: absolute;
top: 16px;
right: 18px;
text-align: center;
color: #ffffff;
z-index: 1;
}
.close-btn:hover {
color: #666;
}
</style>

View File

@ -11,14 +11,17 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-col :md="6" :sm="24" > <a-col :md="6" :sm="8" >
<a-button type="primary" style="left: 10px" @click="loadData" icon="search">查询</a-button> <a-button type="primary" style="left: 10px" @click="loadData" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px;left: 10px">重置</a-button> <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px;left: 10px">重置</a-button>
</a-col> </a-col>
</span> </span>
<a-col :md="15" :sm="24" style="text-align: right;">
<a-button type="primary" @click="alldelete" icon="delete" style="background-color: brown;">清空回收站</a-button>
</a-col>
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
<!-- table区域-begin --> <!-- table区域-begin -->
<div style="height:900px;overflow-y:auto;"> <div style="height:900px;overflow-y:auto;">
@ -50,12 +53,13 @@
<!-- table区域-end --> <!-- table区域-end -->
<!-- 表单区域 --> <!-- 表单区域 -->
<uploadModal ref="modalForm" @ok="loadData"></uploadModal> <deleteFileModal ref="modalForm"></deleteFileModal>
</a-card> </a-card>
</template> </template>
<script> <script>
import uploadModal from './modules/uploadModal' import deleteFileModal from './modules/deleteFileModal'
import { getlist, import { getlist,
deleteFile, deleteFile,
recoverFile } from '@/api/recycleBin' recoverFile } from '@/api/recycleBin'
@ -66,7 +70,7 @@
name: "recycling", name: "recycling",
mixins:[JeecgListMixin], mixins:[JeecgListMixin],
components: { components: {
uploadModal, deleteFileModal,
JEllipsis, JEllipsis,
VNodes: { VNodes: {
functional: true, functional: true,
@ -174,11 +178,9 @@
} }
}); });
}, },
handleAdd() { alldelete(){
this.$refs.modalForm.add(); this.$refs.modalForm.open();
this.$refs.modalForm.title = "文件上传"; }
this.$refs.modalForm.dataLinkType=this.queryParam.dataLinkType;
},
} }
} }
</script> </script>