Browse Source

global

master
zeus 4 years ago
parent
commit
f77a4ce8cc
  1. 12
      swarmlab-app/src/run/app.js

12
swarmlab-app/src/run/app.js

@ -211,8 +211,16 @@ global.pipelines=[];
//resdata.data.pathlogfile = 'test' //resdata.data.pathlogfile = 'test'
var resob = {} var resob = {}
resob.pathlogfile = pathfileval resob.pathlogfile = pathfileval
resob.data = resdata.data[0].res25swarmlabname var resobarray = []
resob.user = resdata.data[0].res25user for (let i in resdata.data) {
var resob1 = {}
resob1.data = resdata.data[i].res25swarmlabname
resob1.user25user = resdata.data[i].res25user
resob1.res25creator = resdata.data[i].res25creator
resob1.res25fileforce = resdata.data[i].res25fileforce
resobarray.push(resob1)
}
resob.data = resobarray
//var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data[0].res25swarmlabname); //var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data[0].res25swarmlabname);
var indexfind = global.pipelines.findIndex(x => x.pathlogfile==pathfileval); var indexfind = global.pipelines.findIndex(x => x.pathlogfile==pathfileval);

Loading…
Cancel
Save