1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 12:01:57 +08:00

Bugfix/procces error (#540)

* Correcting errors in the processes and reports
The process was successful but it was throwing undefined Uuid error

* delete console.log

Co-authored-by: elsiosanchez <elsiosanches@gmial.com>
This commit is contained in:
Elsio Sanchez 2020-11-11 17:49:29 -04:00 committed by GitHub
parent b5ffa87141
commit fdc81386fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -74,10 +74,11 @@ const reportControl = {
processId,
processUuid,
instanceUuid,
printFormatUuid
printFormatUuid,
tableName
}) {
return new Promise(resolve => {
requestListReportsViews({ processUuid })
requestListReportsViews({ processUuid, tableName })
.then(reportViewResponse => {
const reportViewList = reportViewResponse.reportViewsList.map(reportViewItem => {
return {

View File

@ -1,3 +1,4 @@
import { isEmptyValue } from '../valueUtils.js'
import { convertReportOutput } from './report.js'
export function convertProcessLog(processLogToConvert) {
@ -13,6 +14,6 @@ export function convertProcessLog(processLogToConvert) {
// return convertEntity(parameter)
// }),
paramenters: [],
output: convertReportOutput(processLogToConvert.output)
output: isEmptyValue(processLogToConvert.output) ? {} : convertReportOutput(processLogToConvert.output)
}
}