Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
weiye committed Jun 14, 2020
1 parent 7c62564 commit 6404944
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/views/datax/jobInfo/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ export default {
})
},
updateData() {
this.jobJson = typeof (this.jobJson) !== 'string' ? JSON.stringify(this.jobJson) : this.jobJson
if (this.temp.glueType === 'BEAN' && !isJSON(this.jobJson)) {
this.temp.jobJson = typeof (this.jobJson) !== 'string' ? JSON.stringify(this.jobJson) : this.jobJson
if (this.temp.glueType === 'BEAN' && !isJSON(this.temp.jobJson)) {
this.$notify({
title: 'Fail',
message: 'json格式错误',
Expand All @@ -650,7 +650,6 @@ export default {
this.temp.childJobId = auth.toString()
}
this.temp.executorHandler = this.temp.glueType === 'BEAN' ? 'executorJobHandler' : ''
this.temp.jobJson = typeof (this.jobJson) !== 'string' ? JSON.stringify(this.jobJson) : this.jobJson
this.temp.glueSource = this.glueSource
if (this.partitionField) this.temp.partitionInfo = this.partitionField + ',' + this.timeOffset + ',' + this.timeFormatType
job.updateJob(this.temp).then(() => {
Expand Down

0 comments on commit 6404944

Please sign in to comment.