| | |
| | | this.treeDataSource = res.result |
| | | this.generateList(res.result) |
| | | } else { |
| | | this.$message.warn(res.message) |
| | | // this.$message.warn(res.message) |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | |
| | | lastpermissionIds:that.defaultCheckedKeys.join(","), |
| | | }; |
| | | that.loading = true; |
| | | console.log("请求参数:",params); |
| | | saveRolePermission(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; |
| | | if (exit) { |
| | | that.close() |
| | | } |
| | | }else { |
| | | that.$message.error(res.message); |
| | | // that.$message.error(res.message); |
| | | that.$notification.error({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | that.loading = false; |
| | | if (exit) { |
| | | that.close() |
| | |
| | | this.checkedKeys = [...res.result]; |
| | | this.defaultCheckedKeys = [...res.result]; |
| | | this.expandedKeysss = this.allTreeKeys; |
| | | console.log(this.defaultCheckedKeys) |
| | | }) |
| | | }) |
| | | } |