| | |
| | | if (code === "data_view") { |
| | | row.checkTheStatus = check; |
| | | } else if (!row.checkTheStatus) { |
| | | this.$message.warning('请确认是否配置查看按钮,如已配置请先勾选查看按钮!'); |
| | | this.$message.warning('请先勾选查看按钮!'); |
| | | // 在条件不满足时将多选框状态设置为false |
| | | row[id] = false; |
| | | } |
| | |
| | | Object.keys(this.classifyAuthData[index]).forEach((key) => { |
| | | this.$set(this.classifyAuthData[index].authButton, item.code, false); |
| | | }); |
| | | if (item.code === "data_view") { |
| | | if(item.code === "data_view"){ |
| | | this.classifyAuthData[index].authButton.allDisabled = false; |
| | | } |
| | | } |
| | |
| | | classifyAuthList: [], |
| | | isCLear: false, //默认是清空 |
| | | classifyId: this.TreeNode.oid, |
| | | authType: 'data_auth', |
| | | }; |
| | | let isRepeat = false; |
| | | if (this.classifyAuthData.length > 0) { |
| | |
| | | let itemButtonList = []; |
| | | //筛选出按钮勾选为true的列 |
| | | for (let key in item) { |
| | | if (item[key] === true) { |
| | | if (item[key] === true && key !== 'checkTheStatus') { |
| | | itemButtonList.push(key); |
| | | } |
| | | } |