| | |
| | | url:`/api/platform/catalog/del`, |
| | | params: { |
| | | id: id, |
| | | platformId: this.platformId, |
| | | } |
| | | }) |
| | | .then((res) => { |
| | |
| | | console.log("移除成功") |
| | | node.parent.loaded = false |
| | | node.parent.expand(); |
| | | if(this.defaultCatalogId === id) { |
| | | this.defaultCatalogId = this.platformId; |
| | | if (res.data.data) { |
| | | this.defaultCatalogId = res.data.data; |
| | | } |
| | | } |
| | | }) |
| | |
| | | disabled: node.level === 1, |
| | | divided: true, |
| | | onClick: () => { |
| | | this.removeCatalog(data.id, node) |
| | | this.$confirm('确定删除?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.removeCatalog(data.id, node) |
| | | }).catch(() => { |
| | | |
| | | }); |
| | | } |
| | | }, |
| | | { |