|
|
|
@ -457,10 +457,22 @@
|
|
|
|
|
// Watch the cacheParams |
|
|
|
|
cacheParams (val) { |
|
|
|
|
this.$emit('on-cache-params', val) |
|
|
|
|
}, |
|
|
|
|
resourceIdArr (arr) { |
|
|
|
|
let result = [] |
|
|
|
|
arr.forEach(item => { |
|
|
|
|
this.allNoResources.forEach(item1 => { |
|
|
|
|
if (item.id === item1.id) { |
|
|
|
|
// resultBool = true |
|
|
|
|
result.push(item1) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
this.noRes = result |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
cacheParams () { |
|
|
|
|
resourceIdArr () { |
|
|
|
|
let isResourceId = [] |
|
|
|
|
let resourceIdArr = [] |
|
|
|
|
if (this.resourceList.length > 0) { |
|
|
|
@ -475,23 +487,16 @@
|
|
|
|
|
return { id: item.id, name: item.name, res: item.fullName } |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
let result = [] |
|
|
|
|
resourceIdArr.forEach(item => { |
|
|
|
|
this.allNoResources.forEach(item1 => { |
|
|
|
|
if (item.id === item1.id) { |
|
|
|
|
// resultBool = true |
|
|
|
|
result.push(item1) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
this.noRes = result |
|
|
|
|
return resourceIdArr |
|
|
|
|
}, |
|
|
|
|
cacheParams () { |
|
|
|
|
return { |
|
|
|
|
mainClass: this.mainClass, |
|
|
|
|
mainJar: { |
|
|
|
|
id: this.mainJar |
|
|
|
|
}, |
|
|
|
|
deployMode: this.deployMode, |
|
|
|
|
resourceList: resourceIdArr, |
|
|
|
|
resourceList: this.resourceIdArr, |
|
|
|
|
localParams: this.localParams, |
|
|
|
|
driverCores: this.driverCores, |
|
|
|
|
driverMemory: this.driverMemory, |
|
|
|
|