| | |
| | | loadNode(node, resolve) { |
| | | let id = node.level === 0 ? '' : node.data.id |
| | | if (node.level === 0) { |
| | | return this.$HTTP.get(`/api/blade-cps/group/getRootNode?groupCategory=1&groupType=group_workstation`).then(res => { |
| | | return this.$HTTP.get(`/api/smis/group/getRootNode?groupCategory=1&groupType=group_workstation`).then(res => { |
| | | this.nodeClick(res.data) |
| | | resolve([res.data].map(v => { |
| | | return { |
| | |
| | | })) |
| | | }) |
| | | } else { |
| | | this.$HTTP.get(`/api/blade-cps/group/groupWorkstation/lazy?groupId=${id}`).then(res => { |
| | | this.$HTTP.get(`/api/smis/group/groupWorkstation/lazy?groupId=${id}`).then(res => { |
| | | resolve(res.data.map(v => { |
| | | return { |
| | | ...v, |