| | |
| | | { key: 5, label: `状态`, visible: true }, |
| | | { key: 6, label: `创建时间`, visible: true } |
| | | ], |
| | | radioSelected: 0, // 单选框传值 |
| | | selectUserList: [] // 回显数据传值 |
| | | }; |
| | | }, |
| | |
| | | handler(newVal) { |
| | | if (newVal) { |
| | | this.$nextTick(() => { |
| | | this.$refs.dataTable.clearSelection(); |
| | | if (! this.innerSelected) { |
| | | newVal.forEach(item => { |
| | | if (this.innerSelected.userId === item.userId) { |
| | | this.innerSelected = item |
| | | this.$refs.dataTable.toggleRowSelection(item) |
| | | } |
| | | }) |
| | | if (this.$refs.dataTable) { |
| | | if (! this.innerSelected) { |
| | | newVal.forEach(item => { |
| | | if (this.innerSelected.userId === item.userId) { |
| | | this.innerSelected = item |
| | | this.$refs.dataTable.toggleRowSelection(item) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }); |
| | | } else { |