summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views
diff options
context:
space:
mode:
authorzoulingli128 <zll_1208@126.com>2022-09-23 15:29:46 +0800
committerzoulingli128 <zll_1208@126.com>2022-09-23 15:29:46 +0800
commit8673d020994a66bb98b456130f887a2ee822bd37 (patch)
tree8eff6e5bacca097573a2245807549020d2d36d71 /usecaseui-portal/src/app/views
parent7bdeb7cc89a8d60e4c3199f1922a6bf73a9d83c1 (diff)
Joint debugging interface of front and rear platform
Issue-ID: USECASEUI-730 Signed-off-by: zoulingli128 <zll_1208@126.com> Change-Id: Ibffb8a81cae041d09a079034db6766c071202886
Diffstat (limited to 'usecaseui-portal/src/app/views')
-rw-r--r--usecaseui-portal/src/app/views/intent-management/input-intent-management/input-intent-management.component.ts20
-rw-r--r--usecaseui-portal/src/app/views/intent-management/intent-management.component.ts4
2 files changed, 17 insertions, 7 deletions
diff --git a/usecaseui-portal/src/app/views/intent-management/input-intent-management/input-intent-management.component.ts b/usecaseui-portal/src/app/views/intent-management/input-intent-management/input-intent-management.component.ts
index 180afcad..1a6b95e2 100644
--- a/usecaseui-portal/src/app/views/intent-management/input-intent-management/input-intent-management.component.ts
+++ b/usecaseui-portal/src/app/views/intent-management/input-intent-management/input-intent-management.component.ts
@@ -67,12 +67,12 @@ export class InputIntentManagementComponent implements OnInit {
this.modalOpreation.emit({ "cancel": true });
}
handleOk(): void {
- this.showModel = false;
if(JSON.stringify(this.editIntentTableData)==='{}'){
this.defaultParams['intentId']=this.Util.getUuid()
+ this.createIntentInstance()
+ }else{
+ this.editIntentInstanceData()
}
- this.createIntentInstance()
- this.modalOpreation.emit({ "cancel": false, "param": this.defaultParams });
this.clearIntentData()
}
clearIntentData(): void{
@@ -138,6 +138,7 @@ export class InputIntentManagementComponent implements OnInit {
...this.defaultParams
}).subscribe(
(response) => {
+ this.showModel = false;
this.modalOpreation.emit({ "cancel": false });
},
(err) => {
@@ -145,4 +146,17 @@ export class InputIntentManagementComponent implements OnInit {
}
)
}
+ editIntentInstanceData(): void {
+ let id = this.defaultParams['intentId'];
+ let obj = this.defaultParams;
+ this.myhttp.updateIntentManagementData(id,obj).subscribe(
+ (response) => {
+ this.showModel = false;
+ this.modalOpreation.emit({ "cancel": false});
+ },
+ (err) => {
+ console.log(err);
+ }
+ )
+ }
} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/views/intent-management/intent-management.component.ts b/usecaseui-portal/src/app/views/intent-management/intent-management.component.ts
index acd37ec9..7fc9f7e6 100644
--- a/usecaseui-portal/src/app/views/intent-management/intent-management.component.ts
+++ b/usecaseui-portal/src/app/views/intent-management/intent-management.component.ts
@@ -39,10 +39,6 @@ export class IntentManagementComponent implements OnInit {
if ($event.cancel) {
return;
}
- if(this.currentIndex>-1){
- this.listOfData[this.currentIndex]=$event.param
- this.currentIndex=-1
- }
this.getIntentManagementData()
}
editIntentList(data,i): void {