Commit aa10ea99 authored by 沈翠玲's avatar 沈翠玲

mixin完善

parent 90815ae9
......@@ -2,6 +2,7 @@ export default {
data() {
return {
keepDown: false,
keyValue: 'workorderId',
// 按shfit键实现多选
startIndex: null
}
......@@ -51,7 +52,7 @@ export default {
this.startIndex = lastindex
}
this.ids = this.selectedRows.map(item => item.workorderId)
this.ids = this.selectedRows.map(item => item[this.keyValue])
this.single = this.selectedRows.length !== 1
this.multiple = !this.selectedRows.length
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment