Skip to content

Commit

Permalink
117 anms fun bld 010 state based rule no limits (#122)
Browse files Browse the repository at this point in the history
* adding multiprocessing

* updated table display and processing

* uncommented code

* upadting submodules

* updated submodules to latest

* removing old code

---------

Co-authored-by: linkodm1 <[email protected]>
  • Loading branch information
d-linko and linkodm1 authored Aug 16, 2024
1 parent 80bf11e commit aad7dce
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 26 deletions.
37 changes: 14 additions & 23 deletions anms-ui/public/app/components/management/agents/reports.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,20 @@ export default {
this.loading = true;
this.tableHeaders = [];
this.tableItems = [];
if (this.reports[this.selected] == undefined) {
this.loading = true;
let rpt_name = this.rptts[this.selected].name;
let rpt_adm = this.rptts[this.selected].adm;
await api.methods.apiEntriesForReport(this.agentName, rpt_adm, rpt_name)
.then(res => {
this.processReport(res.data);
this.reports[this.selected] = this.tableItems;
this.reportsHeader[this.selected] = this.tableHeaders;
}).catch(error => {
// handle error
console.error("reports error", error);
console.info("error obj:", error);
});
} else{
this.tableHeaders = this.reportsHeader[this.selected];
this.tableItems = this.reports[this.selected];
}
this.loading = true;
let rpt_name = this.rptts[this.selected].name;
let rpt_adm = this.rptts[this.selected].adm;
await api.methods.apiEntriesForReport(this.agentName, rpt_adm, rpt_name)
.then(res => {
this.processReport(res.data);
this.reports[this.selected] = this.tableItems;
this.reportsHeader[this.selected] = this.tableHeaders;
}).catch(error => {
// handle error
console.error("reports error", error);
console.info("error obj:", error);
});
this.loading = false;
},
processReport(report) {
Expand All @@ -93,14 +88,10 @@ export default {
},
mounted() {
this.loading = true;
// this.title = this.adm + "." + this.reportName
this.rptts.forEach((rpt, index) => {
api.methods.apiEntriesForReport(this.agentName, rpt.adm, rpt.name)
.then(res => {
this.reports[index] = res.data
// this.headers = this.reports.shift()
}).catch(error => {
// handle error
console.error("reports error", error);
Expand Down
2 changes: 1 addition & 1 deletion ion/src
Submodule src updated from 6e95a2 to 040584

0 comments on commit aad7dce

Please sign in to comment.