|
|
@ -375,10 +375,8 @@ |
|
|
|
resourceIdArr = isResourceId.map(item=>{ |
|
|
|
resourceIdArr = isResourceId.map(item=>{ |
|
|
|
return item.id |
|
|
|
return item.id |
|
|
|
}) |
|
|
|
}) |
|
|
|
Array.prototype.diff = function(a) { |
|
|
|
let diffSet |
|
|
|
return this.filter(function(i) {return a.indexOf(i) < 0;}); |
|
|
|
diffSet = _.xorWith(this.resourceList, resourceIdArr, _.isEqual) |
|
|
|
}; |
|
|
|
|
|
|
|
let diffSet = this.resourceList.diff(resourceIdArr); |
|
|
|
|
|
|
|
let optionsCmp = [] |
|
|
|
let optionsCmp = [] |
|
|
|
if(diffSet.length>0) { |
|
|
|
if(diffSet.length>0) { |
|
|
|
diffSet.forEach(item=>{ |
|
|
|
diffSet.forEach(item=>{ |
|
|
@ -477,7 +475,7 @@ |
|
|
|
// Non-null objects represent backfill |
|
|
|
// Non-null objects represent backfill |
|
|
|
if (!_.isEmpty(o)) { |
|
|
|
if (!_.isEmpty(o)) { |
|
|
|
this.mainClass = o.params.mainClass || '' |
|
|
|
this.mainClass = o.params.mainClass || '' |
|
|
|
if(o.params.mainJar.res) { |
|
|
|
if(!o.params.mainJar.id) { |
|
|
|
this.marjarId(o.params.mainJar.res) |
|
|
|
this.marjarId(o.params.mainJar.res) |
|
|
|
} else if(o.params.mainJar.res=='') { |
|
|
|
} else if(o.params.mainJar.res=='') { |
|
|
|
this.mainJar = '' |
|
|
|
this.mainJar = '' |
|
|
|