bug修复

This commit is contained in:
BianLzhaoMin 2025-11-24 17:30:30 +08:00
parent 63962b5936
commit c53c18d76d
1 changed files with 33 additions and 11 deletions

View File

@ -67,6 +67,12 @@
@selection-change="handleSelectionChange"
style="width: 100%"
>
<el-table-column
type="index"
label="序号"
width="55"
align="center"
/>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="名称" min-width="200">
@ -260,7 +266,7 @@
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
@pagination="getTableList"
/>
</div>
@ -429,7 +435,7 @@ export default {
icon: 'el-icon-download',
type: 'info',
click: this.handleBatchDownload,
acthType: [0, '4'],
acthType: [0, '2', '4'],
authType: [],
// component: 'DownloadTags',
},
@ -457,7 +463,7 @@ export default {
{
label: '下载',
click: this.handleBatchDownload_1,
acthType: ['1', null, '4'],
acthType: ['2', null, '4'],
authType: [],
},
{
@ -613,14 +619,14 @@ export default {
},
//
getList() {
this.loading = true
// API
setTimeout(() => {
this.total = 50 //
this.loading = false
}, 500)
},
// getList() {
// this.loading = true
// // API
// setTimeout(() => {
// this.total = 50 //
// this.loading = false
// }, 500)
// },
//
handleSelectionChange(selection) {
@ -755,6 +761,22 @@ export default {
return
}
if (this.acthType == 2 || this.authType == 'otherShare') {
// auth 1 1
const hasAuth1 = this.selectedRows.some((row) => row.auth == 1)
//
const auth1Indexes = this.selectedRows
.filter((row) => row.auth == 1)
.map((row, index) => index + 1)
if (hasAuth1) {
this.$modal.msgWarning(
`序号为${auth1Indexes.join(
',',
)}的共享文件或文档仅可查看不能下载`,
)
return
}
}
//
this.selectedFilesForDownload = this.selectedRows.map((row) => ({
id: row.id,