old mode 100644
new mode 100755
| | |
| | | }, |
| | | methods: { |
| | | openDialog(catalogIdResult) { |
| | | console.log(this.chooseId) |
| | | this.showDialog = true |
| | | this.catalogIdResult = catalogIdResult |
| | | }, |
| | |
| | | |
| | | }, |
| | | loadNode: function(node, resolve){ |
| | | |
| | | |
| | | |
| | | if (node.level === 0) { |
| | | this.$axios({ |
| | | method:"get", |
| | |
| | | if (res.data.code === 0) { |
| | | this.platformName = res.data.data.name; |
| | | this.defaultCatalogId = res.data.data.catalogId; |
| | | this.defaultCatalogIdSign = res.data.data.catalogId; |
| | | this.chooseId = res.data.data.catalogId; |
| | | resolve([ |
| | | { |
| | | name: "未分配", |
| | | id: null, |
| | | type: -1 |
| | | },{ |
| | | { |
| | | name: this.platformName, |
| | | id: this.platformId, |
| | | id: res.data.data.deviceGBId, |
| | | type: 0 |
| | | } |
| | | ]); |
| | |
| | | this.chooseId = data.id; |
| | | }, |
| | | close: function() { |
| | | this.chooseId = null; |
| | | this.showDialog = false; |
| | | }, |
| | | submit: function() { |
| | | console.log(this.chooseId) |
| | | if (this.chooseId === null) { |
| | | this.$message({ |
| | | showClose: true, |
| | | message: '未选择任何节点,', |
| | | type: 'warning' |
| | | }); |
| | | return; |
| | | } |
| | | if (this.catalogIdResult)this.catalogIdResult(this.chooseId) |
| | | this.showDialog = false; |
| | | }, |