修改细节

This commit is contained in:
unknown 2023-09-18 18:15:58 +08:00
parent 614405bb6f
commit fd0bab1801
1 changed files with 10 additions and 10 deletions

View File

@ -179,20 +179,20 @@ export default {
if (val.length > maxSelect) {
this.$message({
type: 'warning',
message: `最多只能选择 ${maxSelect}`
message: `您选择的专家数量超过 ${maxSelect} 个,将生成多个表格`
})
// selection Vue
// maxSelect
const newSelections = val.slice(0, maxSelect)
// 使 nextTick DOM
this.$nextTick(() => {
this.$refs.table.clearSelection()
newSelections.forEach(row => {
this.$refs.table.toggleRowSelection(row, true)
})
})
// const newSelections = val.slice(0, maxSelect)
//
// // 使 nextTick DOM
// this.$nextTick(() => {
// this.$refs.table.clearSelection()
// newSelections.forEach(row => {
// this.$refs.table.toggleRowSelection(row, true)
// })
// })
}
this.exportList = val