| | |
| | | export default { |
| | | name: "classifyAuthDialog.vue", |
| | | props: { |
| | | // 当前点击节点的顶层节点 |
| | | classifyData: { |
| | | type: "Object", |
| | | default: "", |
| | |
| | | type: "Boolean", |
| | | default: false, |
| | | }, |
| | | // 当前点击的节点 |
| | | TreeNode:{ |
| | | type:Object |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | let form = { |
| | | classifyAuthList: [], |
| | | isCLear: false, //默认是清空 |
| | | classifyId: this.classifyData.oid, |
| | | classifyId: this.TreeNode.oid, |
| | | }; |
| | | let isRepeat = false; |
| | | if(this.classifyAuthData.length > 0){ |
| | |
| | | let data = { |
| | | oid: item.oid, |
| | | roleId: item.roleData, |
| | | classifyId: this.classifyData.oid, |
| | | classifyId: this.TreeNode.oid, |
| | | buttonIds: itemButtonList.join(","), |
| | | authType: "classify_auth", |
| | | }; |
| | |
| | | }); |
| | | // 获取该分类下已授权的分类授权信息 |
| | | getClassifyAuthList({ |
| | | classifyId: this.classifyData.oid, |
| | | classifyId: this.TreeNode.oid, |
| | | authType: "classify_auth", |
| | | }).then((res) => { |
| | | //console.log(res.data.data); |