bug修复

This commit is contained in:
BianLzhaoMin 2025-11-27 09:25:21 +08:00
parent 6b77e1a3f4
commit a449394a07
1 changed files with 11 additions and 6 deletions

View File

@ -761,17 +761,22 @@ export default {
return
}
if (
this.acthType == 2 ||
this.authType == 'otherShare' ||
this.authType == 'myShare'
) {
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)
.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) {
this.$modal.msgWarning(
`序号为${auth1Indexes.join(