From 56eed12688049764c8f2ba8ec25e7d6dd774e632 Mon Sep 17 00:00:00 2001 From: zhousq Date: Fri, 12 Apr 2024 13:54:39 +0800 Subject: [PATCH] =?UTF-8?q?2024-4-12=20=E5=B7=A5=E8=89=BA=E8=B7=AF?= =?UTF-8?q?=E7=BA=BF=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/processroute/components/configDialog.vue | 7 +++++-- src/views/mes/processroute/index.vue | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/mes/processroute/components/configDialog.vue b/src/views/mes/processroute/components/configDialog.vue index 8502fbcbf..0b89f8423 100644 --- a/src/views/mes/processroute/components/configDialog.vue +++ b/src/views/mes/processroute/components/configDialog.vue @@ -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(null) defineOptions({ name: 'ProcessRouteConfig' }) const isShowDrawer = ref(false) @@ -215,8 +216,9 @@ const deleteNode=(row)=>{ } //初始化图形组件 const graph = ref() -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']) +