代码更新

This commit is contained in:
2022-12-12 15:08:52 +08:00
parent 06af0f8c90
commit 43db0673a4
3 changed files with 46 additions and 19 deletions

View File

@@ -91,9 +91,8 @@ export default {
type: Boolean,
default: true
},
materOptCode: {
type: String,
default: '00'
users: {
type: Array
}
},
data() {
@@ -118,6 +117,16 @@ export default {
this.tableRadio = item
},
open() {
this.$nextTick(function() {
for (var k = 0; k < this.users.length; k++) {
for (var i = 0; i < this.crud.data.length; i++) {
if (this.crud.data[i].user_id == this.users[k].user_id) {
this.$refs.table.toggleRowSelection(this.crud.data[i], true)
break
}
}
}
})
},
handleSelectionChange(val, row) {
if (val.length > 1 && this.isSingle) {