Browse Source

[Fix-7103] Fix the issue with the sqoop task missing the verification of props. (#7119)

* add the verification of parameters for the sqoop task
3.0.0/version-upgrade
Hua Jiang 3 years ago committed by GitHub
parent
commit
6beae191e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue
  2. 2
      dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js

5
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue

@ -951,10 +951,15 @@
* verification
*/
_verification () {
// localParams Subcomponent verification
if (!this.$refs.refLocalParams._verifProp()) {
return false
}
let sqoopParams = {
jobType: this.jobType,
localParams: this.localParams
}
if (this.jobType === 'CUSTOM') {
if (!shellEditor.getValue()) {
this.$message.warning(`${i18n.$t('Please enter Custom Shell(required)')}`)

2
dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js

@ -257,7 +257,7 @@ export default {
'prop(required)': 'prop(必填)',
'value(optional)': 'value(选填)',
'value(required)': 'value(必填)',
'prop is empty': 'prop不能为空',
'prop is empty': '自定义参数prop不能为空',
'value is empty': 'value不能为空',
'prop is repeat': 'prop中有重复',
'Start Time': '开始时间',

Loading…
Cancel
Save