| | |
| | | } |
| | | ).catch(() => resolve([])); |
| | | }, |
| | | // getPre() { |
| | | // axios({ |
| | | // url: '/blade-mdm/gkw/node/lazy-list', |
| | | // method: 'get', |
| | | // params: {nodeId: this.nodeId} |
| | | // }).then( |
| | | // res => { |
| | | // this.treeData = res.data.data; }); |
| | | // }, |
| | | handleNodeClick(a,b,c,d) { |
| | | console.og(a,b,c,d) |
| | | } |
| | | }, |
| | | mounted() { |
| | | //this.getPre(); |
| | | //判断版本 0:涉密网,1:工控网; |
| | | // axios({url: '/blade-mdm/system/param/getValue?paramKey=networkType',method: 'get'}).then(res => { |
| | | // if(res.data.data === "0") { |
| | | // this.isSM = true; |
| | | // }else { |
| | | // this.getPre(); |
| | | // } |
| | | // } |
| | | // ); |
| | | } |
| | | }; |
| | | </script> |