From 632fd0f725c76a8b54ca5dba312123fb2aa8d37e Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Wed, 11 Mar 2026 11:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A8=A1=E5=9E=8B=E8=AE=AD?= =?UTF-8?q?=E7=BB=83=E6=A8=A1=E5=9D=97=EF=BC=8C=E7=B1=BB=E5=9E=8B=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=92=8C=E6=A8=A1=E5=9E=8B=E7=AE=A1=E7=90=86=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E6=9B=B4=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/assets/table/annotation.png | Bin 0 -> 579 bytes .../src/components/antvx6/connectingwire.vue | 7 +- .../frontend/src/components/antvx6/index.vue | 54 ++- .../algorithm/index.vue | 0 .../algorithmModel/index.vue | 0 .../modelTrainTask/index.vue | 439 ++++++++++++++++++ 6 files changed, 482 insertions(+), 18 deletions(-) create mode 100644 business-css/frontend/src/assets/table/annotation.png rename business-css/frontend/src/views/business/{ => algorithmManagement}/algorithm/index.vue (100%) rename business-css/frontend/src/views/business/{ => algorithmManagement}/algorithmModel/index.vue (100%) create mode 100644 business-css/frontend/src/views/business/algorithmManagement/modelTrainTask/index.vue diff --git a/business-css/frontend/src/assets/table/annotation.png b/business-css/frontend/src/assets/table/annotation.png new file mode 100644 index 0000000000000000000000000000000000000000..7b0b93b2126b35ffed0b31c08c36629cc4f00685 GIT binary patch literal 579 zcmV-J0=)f+P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0oX}IK~y+Tl~d14 zRACgo=W7;58y78F%tAqM(?Y>$Q@nv(6eMm62@BLganY`J65$^ZxU|MmB!XJCsAZCG zRZxMTOF@xY%(8`uP<^L!zj-4l4(fr&z2CX-o_BwI4<=+Q><0OfX7BQ;u;g4PWJ_@t z!Nv$Y$|unb1>a+aiq!5D=Z;YFsK0B`uKPI&NNI!Qh|wxujdQ0Vd&!baAC1#_6NwKsss6%BheuZ9KZT3e{aK7I9vk_VN%>s%*f zZ( { - +
颜色
+ 取 消 diff --git a/business-css/frontend/src/components/antvx6/index.vue b/business-css/frontend/src/components/antvx6/index.vue index c764228..d2813e0 100644 --- a/business-css/frontend/src/components/antvx6/index.vue +++ b/business-css/frontend/src/components/antvx6/index.vue @@ -186,15 +186,15 @@ onMounted(() => { rowHeight: 120, }, }, - { - collapsable: false, - title: '管线', - name: 'group3', - graphHeight: 400, - layoutOptions: { - rowHeight: 120, - }, - }, + // { + // collapsable: false, + // title: '管线', + // name: 'group3', + // graphHeight: 400, + // layoutOptions: { + // rowHeight: 120, + // }, + // }, ], layoutOptions: { @@ -416,17 +416,32 @@ onMounted(() => { // 删除节点上的文字 // node.attr('text/text', '') // node.attr('label/text', '') - - - - - isAdddevice.value = true } }) + + graph.on('edge:selected', ({ edge }) => { + + edge.addTools({ + name: 'button-remove', + args: { + x: 0, + y: 0, + offset: { x: 10, y: 10 }, + }, + }) + + + }); + graph.on('edge:unselected', ({ edge }) => { + edge.removeTools() + }) + + + // #endregion // #region 快捷键与事件 @@ -933,12 +948,15 @@ function preWork() { } const left = ref(0) const top = ref(0) -const isMenuShow = ref(false) +const isMenuShow = ref(false) // 是否显示右键菜单 const selectedNode:any = ref(null) function deleteNode() { // 删除节点 graph.removeNode(selectedNode.value) isMenuShow.value = false } + + + function copyNode() { // 复制节点 if (selectedNode.value) { try { @@ -1001,9 +1019,12 @@ const connectingwireInfo:any = ref({ strokeDasharray: "0", arrow: "1", strokeWidth: 1, + color: "#a2b1c3", }) +const lineLine:any = ref( "#a2b1c3") function closeConnectingwireModel(e:any){ // 关闭连接线弹窗 if(e != false){ + lineLine.value = e.color let lineStyle:any = { strokeDasharray: 0, targetMarker: {}, @@ -1046,7 +1067,7 @@ function closeConnectingwireModel(e:any){ // 关闭连接线弹窗 return new Shape.Edge({ attrs: { line: { - stroke: '#A2B1C3', + stroke: lineLine.value, strokeWidth: e.strokeWidth, strokeDasharray: lineStyle.strokeDasharray, targetMarker: lineStyle.targetMarker, @@ -1446,6 +1467,7 @@ function saveDesign() { // 保存设计 图标 +
diff --git a/business-css/frontend/src/views/business/algorithm/index.vue b/business-css/frontend/src/views/business/algorithmManagement/algorithm/index.vue similarity index 100% rename from business-css/frontend/src/views/business/algorithm/index.vue rename to business-css/frontend/src/views/business/algorithmManagement/algorithm/index.vue diff --git a/business-css/frontend/src/views/business/algorithmModel/index.vue b/business-css/frontend/src/views/business/algorithmManagement/algorithmModel/index.vue similarity index 100% rename from business-css/frontend/src/views/business/algorithmModel/index.vue rename to business-css/frontend/src/views/business/algorithmManagement/algorithmModel/index.vue diff --git a/business-css/frontend/src/views/business/algorithmManagement/modelTrainTask/index.vue b/business-css/frontend/src/views/business/algorithmManagement/modelTrainTask/index.vue new file mode 100644 index 0000000..8532af5 --- /dev/null +++ b/business-css/frontend/src/views/business/algorithmManagement/modelTrainTask/index.vue @@ -0,0 +1,439 @@ + + + + + + + + \ No newline at end of file