bug修复
This commit is contained in:
parent
63962b5936
commit
c53c18d76d
|
|
@ -67,6 +67,12 @@
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
style="width: 100%"
|
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 type="selection" width="55" align="center" />
|
||||||
|
|
||||||
<el-table-column label="名称" min-width="200">
|
<el-table-column label="名称" min-width="200">
|
||||||
|
|
@ -260,7 +266,7 @@
|
||||||
:total="total"
|
:total="total"
|
||||||
:page.sync="queryParams.pageNum"
|
:page.sync="queryParams.pageNum"
|
||||||
:limit.sync="queryParams.pageSize"
|
:limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getTableList"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -429,7 +435,7 @@ export default {
|
||||||
icon: 'el-icon-download',
|
icon: 'el-icon-download',
|
||||||
type: 'info',
|
type: 'info',
|
||||||
click: this.handleBatchDownload,
|
click: this.handleBatchDownload,
|
||||||
acthType: [0, '4'],
|
acthType: [0, '2', '4'],
|
||||||
authType: [],
|
authType: [],
|
||||||
// component: 'DownloadTags',
|
// component: 'DownloadTags',
|
||||||
},
|
},
|
||||||
|
|
@ -457,7 +463,7 @@ export default {
|
||||||
{
|
{
|
||||||
label: '下载',
|
label: '下载',
|
||||||
click: this.handleBatchDownload_1,
|
click: this.handleBatchDownload_1,
|
||||||
acthType: ['1', null, '4'],
|
acthType: ['2', null, '4'],
|
||||||
authType: [],
|
authType: [],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -613,14 +619,14 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
// 获取列表数据
|
// 获取列表数据
|
||||||
getList() {
|
// getList() {
|
||||||
this.loading = true
|
// this.loading = true
|
||||||
// 模拟API调用
|
// // 模拟API调用
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
this.total = 50 // 模拟总数
|
// this.total = 50 // 模拟总数
|
||||||
this.loading = false
|
// this.loading = false
|
||||||
}, 500)
|
// }, 500)
|
||||||
},
|
// },
|
||||||
|
|
||||||
// 选择变化
|
// 选择变化
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
|
|
@ -755,6 +761,22 @@ export default {
|
||||||
return
|
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) => ({
|
this.selectedFilesForDownload = this.selectedRows.map((row) => ({
|
||||||
id: row.id,
|
id: row.id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue