| | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //添加 “查看全部禁用条件” |
| | | if (this.classifyAuthData.authButton) { |
| | | if (this.classifyAuthData) { |
| | | this.classifyAuthData.forEach((classkey, classIndex) => { |
| | | if (classkey.authButton.classify_view) { |
| | | this.$set(this.classifyAuthData[classIndex].authButton,"allDisabled",true); |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //强制刷新表格 |
| | | this.itemKey = uuidv4(); |
| | | }); |
| | |
| | | }); |
| | | } |
| | | } |
| | | |
| | | |
| | | this.itemKey = uuidv4(); // 强制刷新表格 |
| | | }); |
| | | }); |
| | |
| | | Vue.set(item, data, true); |
| | | }); |
| | | this.classifyAuthData.push(item); |
| | | this.addIndex = this.classifyAuthData.length - 1; //添加行下标等于classifyAuthData的长度-1 |
| | | this.addIndex = this.classifyAuthData.length - 1; //添加行下标等于classifyAuthData的长度-1 |
| | | this.roleHandlerMethods(authData.roleId, 'create', index) |
| | | }) |
| | | } |
| | |
| | | }); |
| | | |
| | | //添加‘查看’禁用 |
| | | if (this.classifyAuthData.authButton) { |
| | | if (this.classifyAuthData) { |
| | | this.classifyAuthData.forEach((classkey, classIndex) => { |
| | | if (classkey.authButton.classify_view) { |
| | | this.$set(this.classifyAuthData[classIndex].authButton,"allDisabled",true); |