Browse Source

[Fix][UI Next] Fix build error.

3.0.0/version-upgrade
labbomb 2 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
.filter((r) => !!r.preTaskCode)
.forEach((c) => {
const edge = buildEdge(c.preTaskCode + '', c.postTaskCode, c.name)
const edge = buildEdge(c.preTaskCode + '', c.postTaskCode + '', c.name)
edges.push(edge)
})
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 { Graph } from '@antv/x6'
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 { 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
*/
function appendTask(code: number, type: TaskType, coordinate: Coordinate) {
addNode(code + '', type, '', coordinate)
addNode(code + '', type, '', 'YES', coordinate)
taskDefinitions.value.push({
code,
taskType: type,

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

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

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

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

Loading…
Cancel
Save