fix flink web ui bug (#3079)

* fix bug

Delete invalid field: executorcores

Modify verification prompt

* fix bug

Delete invalid field: executorcores

Modify verification prompt

* fix bug

Delete invalid field: executorcores

Modify verification prompt

* dag  add close button

* reset last version

* reset last version

* Update dag.vue

Co-authored-by: dailidong <dailidong66@gmail.com>
This commit is contained in:
BoYiZhang 2020-07-09 17:59:20 +08:00 committed by GitHub
parent bf3cc0d00e
commit ae902e2308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 28 deletions

View File

@ -86,7 +86,7 @@
:disabled="isDetails" :disabled="isDetails"
type="input" type="input"
v-model="jobManagerMemory" v-model="jobManagerMemory"
:placeholder="$t('Please enter the number of Executor')" :placeholder="$t('Please enter jobManager memory')"
style="width: 200px;" style="width: 200px;"
autocomplete="off"> autocomplete="off">
</x-input> </x-input>
@ -97,7 +97,7 @@
:disabled="isDetails" :disabled="isDetails"
type="input" type="input"
v-model="taskManagerMemory" v-model="taskManagerMemory"
:placeholder="$t('Please enter the Executor memory')" :placeholder="$t('Please enter the taskManager memory')"
style="width: 186px;" style="width: 186px;"
autocomplete="off"> autocomplete="off">
</x-input> </x-input>
@ -110,7 +110,7 @@
:disabled="isDetails" :disabled="isDetails"
type="input" type="input"
v-model="slot" v-model="slot"
:placeholder="$t('Please enter driver core number')" :placeholder="$t('Please enter solt number')"
style="width: 200px;" style="width: 200px;"
autocomplete="off"> autocomplete="off">
</x-input> </x-input>
@ -122,7 +122,7 @@
:disabled="isDetails" :disabled="isDetails"
type="input" type="input"
v-model="taskManager" v-model="taskManager"
:placeholder="$t('Please enter driver memory use')" :placeholder="$t('Please enter taskManager number')"
style="width: 186px;" style="width: 186px;"
autocomplete="off"> autocomplete="off">
</x-input> </x-input>
@ -210,12 +210,10 @@
slot: 1, slot: 1,
// Driver Number of memory // Driver Number of memory
taskManager: '2', taskManager: '2',
// Executor Number // jobManager Memory
jobManagerMemory: '1G', jobManagerMemory: '1G',
// Executor Number of memory // taskManager Memory
taskManagerMemory: '2G', taskManagerMemory: '2G',
// Executor Number of cores
executorCores: 2,
// Command line argument // Command line argument
mainArgs: '', mainArgs: '',
// Other parameters // Other parameters
@ -290,22 +288,17 @@
} }
if (!this.jobManagerMemory) { if (!this.jobManagerMemory) {
this.$message.warning(`${i18n.$t('Please enter the number of Executor')}`) this.$message.warning(`${i18n.$t('Please enter jobManager memory')}`)
return false return false
} }
if (!Number.isInteger(parseInt(this.jobManagerMemory))) { if (!Number.isInteger(parseInt(this.jobManagerMemory))) {
this.$message.warning(`${i18n.$t('The number of Executors should be a positive integer')}`) this.$message.warning(`${i18n.$t('Memory should be a positive integer')}`)
return false return false
} }
if (!this.taskManagerMemory) { if (!this.taskManagerMemory) {
this.$message.warning(`${i18n.$t('Please enter the Executor memory')}`) this.$message.warning(`${i18n.$t('Please enter the taskManager memory')}`)
return false
}
if (!this.taskManagerMemory) {
this.$message.warning(`${i18n.$t('Please enter the Executor memory')}`)
return false return false
} }
@ -314,16 +307,6 @@
return false return false
} }
if (!this.executorCores) {
this.$message.warning(`${i18n.$t('Please enter ExecutorPlease enter Executor core number')}`)
return false
}
if (!Number.isInteger(parseInt(this.executorCores))) {
this.$message.warning(`${i18n.$t('Core number should be positive integer')}`)
return false
}
// noRes // noRes
if (this.noRes.length>0) { if (this.noRes.length>0) {
this.$message.warning(`${i18n.$t('Please delete all non-existent resources')}`) this.$message.warning(`${i18n.$t('Please delete all non-existent resources')}`)
@ -351,7 +334,6 @@
taskManager: this.taskManager, taskManager: this.taskManager,
jobManagerMemory: this.jobManagerMemory, jobManagerMemory: this.jobManagerMemory,
taskManagerMemory: this.taskManagerMemory, taskManagerMemory: this.taskManagerMemory,
executorCores: this.executorCores,
mainArgs: this.mainArgs, mainArgs: this.mainArgs,
others: this.others, others: this.others,
programType: this.programType programType: this.programType
@ -482,7 +464,6 @@
taskManager: this.taskManager, taskManager: this.taskManager,
jobManagerMemory: this.jobManagerMemory, jobManagerMemory: this.jobManagerMemory,
taskManagerMemory: this.taskManagerMemory, taskManagerMemory: this.taskManagerMemory,
executorCores: this.executorCores,
mainArgs: this.mainArgs, mainArgs: this.mainArgs,
others: this.others, others: this.others,
programType: this.programType programType: this.programType

View File

@ -113,6 +113,10 @@ export default {
'Memory should be a positive integer': 'Memory should be a positive integer', 'Memory should be a positive integer': 'Memory should be a positive integer',
'Please enter ExecutorPlease enter Executor core number': 'Please enter ExecutorPlease enter Executor core number', 'Please enter ExecutorPlease enter Executor core number': 'Please enter ExecutorPlease enter Executor core number',
'Core number should be positive integer': 'Core number should be positive integer', 'Core number should be positive integer': 'Core number should be positive integer',
'Please enter jobManager memory': 'Please enter jobManager memory',
'Please enter the taskManager memory': 'Please enter the taskManager memory',
'Please enter solt number': 'Please enter solt number',
'Please enter taskManager number': 'Please enter taskManager number',
'SQL Type': 'SQL Type', 'SQL Type': 'SQL Type',
Title: 'Title', Title: 'Title',
'Please enter the title of email': 'Please enter the title of email', 'Please enter the title of email': 'Please enter the title of email',

View File

@ -114,6 +114,10 @@ export default {
'Memory should be a positive integer': '内存数为数字', 'Memory should be a positive integer': '内存数为数字',
'Please enter ExecutorPlease enter Executor core number': '请填写Executor内核数', 'Please enter ExecutorPlease enter Executor core number': '请填写Executor内核数',
'Core number should be positive integer': '内核数为正整数', 'Core number should be positive integer': '内核数为正整数',
'Please enter jobManager memory': '请输入JobManager内存数',
'Please enter the taskManager memory': '请输入TaskManager内存数',
'Please enter solt number': '请输入solt数量',
'Please enter taskManager number': '请输入taskManager数量',
'SQL Type': 'sql类型', 'SQL Type': 'sql类型',
Title: '主题', Title: '主题',
'Please enter the title of email': '请输入邮件主题', 'Please enter the title of email': '请输入邮件主题',