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

mixin完善

parent 90815ae9
...@@ -2,6 +2,7 @@ export default { ...@@ -2,6 +2,7 @@ export default {
data() { data() {
return { return {
keepDown: false, keepDown: false,
keyValue: 'workorderId',
// 按shfit键实现多选 // 按shfit键实现多选
startIndex: null startIndex: null
} }
...@@ -51,7 +52,7 @@ export default { ...@@ -51,7 +52,7 @@ export default {
this.startIndex = lastindex 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.single = this.selectedRows.length !== 1
this.multiple = !this.selectedRows.length 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