|
|
@ -145,6 +145,7 @@ import { start_node, end_node, createGraph, getNewNode } from './graphbase.data' |
|
|
|
import {ProcessSearch} from '../../publicUtil/processSearch.data' |
|
|
|
import * as ProcessrouteApi from '@/api/mes/processroute' |
|
|
|
import { Graph } from '@antv/x6' |
|
|
|
import { get } from 'http' |
|
|
|
const graphContainer = ref<HTMLElement | null>(null) |
|
|
|
defineOptions({ name: 'ProcessRouteConfig' }) |
|
|
|
const isShowDrawer = ref(false) |
|
|
@ -215,8 +216,9 @@ const deleteNode=(row)=>{ |
|
|
|
} |
|
|
|
//初始化图形组件 |
|
|
|
const graph = ref<Graph>() |
|
|
|
const openDetail = async (rowData: any) => { |
|
|
|
const openDetail = (rowData: any) => { |
|
|
|
rowData.value = rowData |
|
|
|
console.log('rowData',rowData.value) |
|
|
|
titleNameRef.value = rowData.value.processrouteCode |
|
|
|
titleValueRef.value = rowData.value.processName |
|
|
|
processRouteId.value = rowData.value.id |
|
|
@ -351,7 +353,7 @@ const saveResult = async () => { |
|
|
|
return |
|
|
|
} |
|
|
|
if (graph.value.getNodes().length < 3) { |
|
|
|
message.info('除了开始结束节点外至少需要设置一个节点!') |
|
|
|
message.info('工艺至少配置一道工序!') |
|
|
|
return |
|
|
|
} |
|
|
|
let gdata = { |
|
|
@ -418,6 +420,7 @@ const deleteAnnexSuccess = async () => { |
|
|
|
// 验证图形 |
|
|
|
onUnmounted(() => {}) |
|
|
|
const emit = defineEmits(['close']) |
|
|
|
|
|
|
|
</script> |
|
|
|
<style lang="scss"> |
|
|
|
.el-drawer__body { |
|
|
|