| | |
| | | { 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} 个用户成功!` |
| | | }); |
| | | } |
| | | }) |
| | | } |
| | |
| | | if (res.success) { |
| | | this.loadData() |
| | | this.handleClearSelection() |
| | | this.$message.success(`彻底删除 ${userIds.length} 个用户成功!`) |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:`彻底删除 ${userIds.length} 个用户成功!` |
| | | }); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }); |
| | | }, |