Browse Source

bug fix.

pull/26/head
huolongshe 3 months ago
parent
commit
5467e0b401
2 changed files with 14 additions and 9 deletions
  1. +1
    -1
      webapp/src/app/home/deploy/deploy.component.html
  2. +13
    -8
      webapp/src/app/home/deploy/deploy.component.ts

+ 1
- 1
webapp/src/app/home/deploy/deploy.component.html View File

@@ -86,7 +86,7 @@
<div class="p-mr-3" style="font-size: 24px; color: red">
模型部署失败
</div>
<p-button styleClass="p-button-outlined" (onClick)="reloadPage()">部署新模型</p-button>
<p-button styleClass="p-button-outlined" (onClick)="redoDeploy()">部署新模型</p-button>
</div>
</p-card>
</p-card>


+ 13
- 8
webapp/src/app/home/deploy/deploy.component.ts View File

@@ -60,17 +60,15 @@ export class DeployComponent implements OnInit, OnDestroy {
this.principal.updateCurrentAccount().then(() => {
this.userLogin = this.principal.getLogin();
this.isOperator = this.principal.getAuthorities().includes('ROLE_OPERATOR');
this.subscription = this.route.params.subscribe((params) => {
this.openMode = params['openMode'];
this.solutionUuid = params['uuid'];
});
this.doDeploy();
});

}

doDeploy() {
this.subscription = this.route.params.subscribe((params) => {
this.openMode = params['openMode'];
this.solutionUuid = params['uuid'];
});

if (this.openMode === 'deploy') {
this.ummClient.get_solutions({
'uuid': this.solutionUuid,
@@ -292,8 +290,15 @@ export class DeployComponent implements OnInit, OnDestroy {
window.location.href = '/ms/popen/#/ability/' + this.solutionUuid;
}

reloadPage() {
location.reload();
redoDeploy() {
this.openMode = 'deploy';
this.taskStarted = false;
this.taskSteps = [];
this.currentTaskStep = null;
this.statusCreateTaskError = false;
this.taskSuccess = false;
this.taskFail = false;
this.doDeploy();
}

}

Loading…
Cancel
Save