| | |
| | | if (code === "classify_view") { |
| | | row.checkTheStatus = check; |
| | | } else if (!row.checkTheStatus) { |
| | | this.$message.warning('清先勾选查看按钮!'); |
| | | this.$message.warning('请先勾选查看按钮!'); |
| | | // 在条件不满足时将多选框状态设置为false |
| | | row[id] = false; |
| | | } |
| | |
| | | classifyAuthList: [], |
| | | isCLear: false, //默认是清空 |
| | | classifyId: this.TreeNode.oid, |
| | | authType: 'classify_auth', |
| | | }; |
| | | console.log('classifyAuthData',this.classifyAuthData); |
| | | let isRepeat = false; |
| | | if (this.classifyAuthData.length > 0) { |
| | | // 遍历数组,比较后面的对象的roleData是否与前面的对象相等 |
| | |
| | | let itemButtonList = []; |
| | | //筛选出按钮勾选为true的列 |
| | | for (let key in item) { |
| | | if (item[key] === true) { |
| | | if (item[key] === true && key !== 'checkTheStatus') { |
| | | itemButtonList.push(key); |
| | | } |
| | | } |