Browse Source

[Fix][UI Next] Fix build error.

3.0.0/version-upgrade
labbomb 3 years ago committed by GitHub
parent
commit
4a4acce2c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-custom-cell-builder.ts
  2. 2
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-dag-drag-drop.ts
  3. 2
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-task-edit.ts
  4. 1
      dolphinscheduler-ui-next/src/views/resource/file/create/index.tsx
  5. 9
      dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx

2
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-custom-cell-builder.ts

@ -129,7 +129,7 @@ export function useCustomCellBuilder() {
connects connects
.filter((r) => !!r.preTaskCode) .filter((r) => !!r.preTaskCode)
.forEach((c) => { .forEach((c) => {
const edge = buildEdge(c.preTaskCode + '', c.postTaskCode, c.name) const edge = buildEdge(c.preTaskCode + '', c.postTaskCode + '', c.name)
edges.push(edge) edges.push(edge)
}) })
return { return {

2
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-dag-drag-drop.ts

@ -19,7 +19,7 @@ import { ref } from 'vue'
import type { Ref } from 'vue' import type { Ref } from 'vue'
import type { Graph } from '@antv/x6' import type { Graph } from '@antv/x6'
import { genTaskCodeList } from '@/service/modules/task-definition' import { genTaskCodeList } from '@/service/modules/task-definition'
import { Dragged } from './types' import { Coordinate, Dragged } from './types'
import { TaskType } from '@/views/projects/task/constants/task-type' import { TaskType } from '@/views/projects/task/constants/task-type'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'

2
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-task-edit.ts

@ -53,7 +53,7 @@ export function useTaskEdit(options: Options) {
* Append a new task * Append a new task
*/ */
function appendTask(code: number, type: TaskType, coordinate: Coordinate) { function appendTask(code: number, type: TaskType, coordinate: Coordinate) {
addNode(code + '', type, '', coordinate) addNode(code + '', type, '', 'YES', coordinate)
taskDefinitions.value.push({ taskDefinitions.value.push({
code, code,
taskType: type, taskType: type,

1
dolphinscheduler-ui-next/src/views/resource/file/create/index.tsx

@ -97,7 +97,6 @@ export default defineComponent({
</NFormItem> </NFormItem>
<NFormItem label={t('resource.file.file_content')} path='content'> <NFormItem label={t('resource.file.file_content')} path='content'>
<div <div
class={styles.cont}
style={{ style={{
width: '90%' width: '90%'
}} }}

9
dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx

@ -76,14 +76,9 @@ export default defineComponent({
> >
<NFormItem path='content'> <NFormItem path='content'>
<div <div
class={styles.cont} style={{width: '90%'}}
style={{
width: '90%'
}}
> >
<MonacoEditor <MonacoEditor v-model={[this.resourceViewRef.value.content, 'value']} />
v-model={[this.resourceViewRef.value?.content, 'value']}
/>
</div> </div>
</NFormItem> </NFormItem>
{this.routeNameRef === 'resource-file-edit' && ( {this.routeNameRef === 'resource-file-edit' && (

Loading…
Cancel
Save