Skip to content

Commit

Permalink
Merge pull request #10490 from terlinhe/feat_varsort
Browse files Browse the repository at this point in the history
feat: pac ui编辑流水线 issue #8125
  • Loading branch information
bkci-bot authored Jun 6, 2024
2 parents 1986add + d440688 commit ebcdf1e
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,21 @@
},
subPipelineOption () {
return SUB_PIPELINE_OPTION
},
isRemoteSelect () {
return this.param?.payload?.type === 'remote'
}
},
created () {
if (this.isSelectorParam(this.param.type) && !this.isRemoteSelect) {
this.transformOpt(this.param.options || [])
this.selectDefautVal = this.param.defaultValue
this.setSelectorDefaultVal(this.param)
}
this.setRemoteParamOption(this.param.payload)
if (this.isSelectorParam(this.param.type)) {
if (!this.isRemoteSelect) {
this.transformOpt(this.param.options || [])
this.setSelectorDefaultVal(this.param)
} else {
this.selectDefautVal = isMultipleParam(this.param.type) ? this.param?.defaultValue?.split(',') : this.param?.defaultValue
}
}
},
methods: {
isTextareaParam,
Expand Down

0 comments on commit ebcdf1e

Please sign in to comment.