bug修复
This commit is contained in:
parent
6b77e1a3f4
commit
a449394a07
|
|
@ -761,17 +761,22 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (this.acthType == 2 || this.authType == 'otherShare') {
|
||||||
this.acthType == 2 ||
|
|
||||||
this.authType == 'otherShare' ||
|
|
||||||
this.authType == 'myShare'
|
|
||||||
) {
|
|
||||||
// 判断选择的文件中 有没有auth 为1的 为1时仅可查看 不能下载
|
// 判断选择的文件中 有没有auth 为1的 为1时仅可查看 不能下载
|
||||||
const hasAuth1 = this.selectedRows.some((row) => row.auth == 1)
|
const hasAuth1 = this.selectedRows.some((row) => row.auth == 1)
|
||||||
// 如果有多个则把多个的序号拼接起来
|
// 如果有多个则把多个的序号拼接起来
|
||||||
const auth1Indexes = this.selectedRows
|
const auth1Indexes = this.selectedRows
|
||||||
.filter((row) => row.auth == 1)
|
.filter((row) => row.auth == 1)
|
||||||
.map((row, index) => index + 1)
|
.map((row) => {
|
||||||
|
// 找到该行在 tableData 中的索引
|
||||||
|
const tableIndex = this.tableData.findIndex(
|
||||||
|
(item) => item.id === row.id,
|
||||||
|
)
|
||||||
|
// 返回表格中的序号(索引+1)
|
||||||
|
return tableIndex !== -1 ? tableIndex + 1 : null
|
||||||
|
})
|
||||||
|
.filter((index) => index !== null)
|
||||||
|
.sort((a, b) => a - b)
|
||||||
if (hasAuth1) {
|
if (hasAuth1) {
|
||||||
this.$modal.msgWarning(
|
this.$modal.msgWarning(
|
||||||
`序号为${auth1Indexes.join(
|
`序号为${auth1Indexes.join(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue