You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by li...@apache.org on 2022/05/09 03:37:21 UTC
[dolphinscheduler] 01/01: prettier front-end code
This is an automated email from the ASF dual-hosted git repository.
liudongkai pushed a commit to branch flink_test_sql
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
commit 91a83c089d6fed9d6e91f000cb894a6795555b22
Author: devosend <de...@gmail.com>
AuthorDate: Mon May 9 11:37:00 2022 +0800
prettier front-end code
---
.../projects/task/components/node/fields/use-flink.ts | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-flink.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-flink.ts
index c60d8230a4..ac8f4f0850 100644
--- a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-flink.ts
+++ b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-flink.ts
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import { computed, ref, watchEffect} from 'vue'
+import { computed, ref, watchEffect } from 'vue'
import { useI18n } from 'vue-i18n'
import { useCustomParams, useDeployMode, useMainJar, useResources } from '.'
import type { IJsonItem } from '../types'
@@ -22,15 +22,17 @@ import type { IJsonItem } from '../types'
export function useFlink(model: { [field: string]: any }): IJsonItem[] {
const { t } = useI18n()
const mainClassSpan = computed(() =>
- (model.programType === 'PYTHON' || model.programType === 'SQL') ? 0 : 24
+ model.programType === 'PYTHON' || model.programType === 'SQL' ? 0 : 24
)
- const mainArgsSpan = computed(() => model.programType === 'SQL' ? 0 : 24)
+ const mainArgsSpan = computed(() => (model.programType === 'SQL' ? 0 : 24))
- const scriptSpan = computed(() => model.programType === 'SQL' ? 24 : 0)
+ const scriptSpan = computed(() => (model.programType === 'SQL' ? 24 : 0))
const flinkVersionOptions = computed(() =>
- model.programType === 'SQL' ? [{label: '>=1.13', value: '>=1.13'}] : FLINK_VERSIONS
+ model.programType === 'SQL'
+ ? [{ label: '>=1.13', value: '>=1.13' }]
+ : FLINK_VERSIONS
)
const taskManagerNumberSpan = computed(() =>
@@ -73,7 +75,11 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
trigger: ['input', 'blur'],
required: model.programType !== 'PYTHON' && model.programType !== 'SQL',
validator(validate: any, value: string) {
- if (model.programType !== 'PYTHON' && !value && model.programType !== 'SQL') {
+ if (
+ model.programType !== 'PYTHON' &&
+ !value &&
+ model.programType !== 'SQL'
+ ) {
return new Error(t('project.node.main_class_tips'))
}
}