| | |
| | | return { |
| | | // 对话框显示控制 |
| | | isShowDialog: this.visible, |
| | | isLoading: false, |
| | | isLoading: true, |
| | | tableHeight: "calc(100vh - 550px)", |
| | | classifyAuthData: [], |
| | | //列头 |
| | |
| | | //添加 “查看全部禁用条件” |
| | | if (item.code === "classify_view") { |
| | | this.$set(this.classifyAuthData[index].authButton, "allDisabled", true); |
| | | console.log(this.classifyAuthData[index].authButton.allDisabled) |
| | | // console.log(this.classifyAuthData[index].authButton.allDisabled) |
| | | } |
| | | |
| | | } else { |
| | |
| | | classifyAuthList: [], |
| | | isCLear: false, //默认是清空 |
| | | classifyId: this.TreeNode.oid, |
| | | authType: 'classify_auth', |
| | | }; |
| | | let isRepeat = false; |
| | | // console.log(this.classifyAuthData); |
| | | if(this.classifyAuthData.length > 0){ |
| | | // 遍历数组,比较后面的对象的roleData是否与前面的对象相等 |
| | | for (let i = 0; i < this.classifyAuthData.length - 1; i++) { |
| | |
| | | // 加载授权列表 |
| | | loadAuthPage() { |
| | | return new Promise((resolve, reject) => { |
| | | this.isLoading = true; |
| | | getButtonByParentCode({ code: "classifyTree" }) |
| | | .then((res) => { |
| | | // 记录按钮数据 |
| | |
| | | }); |
| | | } |
| | | }); |
| | | this.isLoading = false; |
| | | }); |
| | | }, |
| | | }, |