| | |
| | | { title: '账号', align: 'center', dataIndex: 'username' }, |
| | | { title: '姓名', align: 'center', dataIndex: 'realname', }, |
| | | { title: '头像', align: 'center', dataIndex: 'avatar', scopedSlots: { customRender: 'avatarslot' } }, |
| | | { title: '部门', align: 'center', dataIndex: 'orgCode' }, |
| | | // { title: '部门', align: 'center', dataIndex: 'orgCode' }, |
| | | { title: '车间', align: 'center', dataIndex: 'productionName' }, |
| | | { title: '操作', align: 'center', dataIndex: 'action', width: 200, scopedSlots: { customRender: 'action' } } |
| | | ], |
| | | url: { |
| | |
| | | if(res.success){ |
| | | this.handleOk() |
| | | this.handleClearSelection() |
| | | this.$message.success(`还原 ${userIds.length} 个用户成功!`) |
| | | // this.$message.success(`还原 ${userIds.length} 个用户成功!`) |
| | | this.$notification.success({ |
| | | message:'消息', |
| | | description:`还原 ${userIds.length} 个用户成功!` |
| | | }); |
| | | } |
| | | }) |
| | | } |
| | |
| | | title: '彻底删除用户', |
| | | content: (<div> |
| | | <p>您确定要彻底删除这 {userIds.length} 个用户吗?</p> |
| | | <p style="color:red;">注意:彻底删除后将无法恢复,请谨慎操作!</p> |
| | | </div>), |
| | | centered: true, |
| | | <p style="color:red;">注意:彻底删除后将无法恢复,请谨慎操作!</p> |
| | | </div>), |
| | | centered: true, |
| | | onOk: () => { |
| | | var that = this; |
| | | deleteAction(that.url.deleteRecycleBin, {userIds: userIds.join(',')}).then((res) => { |
| | | if (res.success) { |
| | | this.loadData() |
| | | this.handleClearSelection() |
| | | this.$message.success(`彻底删除 ${userIds.length} 个用户成功!`) |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }); |
| | | }, |
| | | }) |
| | | var that = this; |
| | | deleteAction(that.url.deleteRecycleBin, {userIds: userIds.join(',')}).then((res) => { |
| | | if (res.success) { |
| | | this.loadData() |
| | | this.handleClearSelection() |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:`彻底删除 ${userIds.length} 个用户成功!` |
| | | }); |
| | | } else { |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | }) |
| | | }, |
| | | handleRevertBatch() { |
| | | this.handleRevert(this.selectedRowKeys) |