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