| | |
| | | handleSubmit() { |
| | | let that = this; |
| | | if(!that.departId){ |
| | | this.$message.warning('请点击选择一个部门!') |
| | | // this.$message.warning('请点击选择一个部门!') |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:"请点击选择一个部门" |
| | | }); |
| | | } |
| | | let checkedKeys = [...that.checkedKeys, ...that.halfCheckedKeys] |
| | | const permissionIds = checkedKeys.join(",") |
| | |
| | | that.loading = true; |
| | | saveDepartPermission(params).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | // that.$message.success(res.message); |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | that.loading = false; |
| | | that.loadData(); |
| | | }else { |
| | | that.$message.error(res.message); |
| | | // that.$message.error(res.message); |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | that.loading = false; |
| | | } |
| | | }) |