瀏覽代碼

修改流程图

林倩 3 年之前
父節點
當前提交
4c3190c56b

+ 2 - 3
src/pages/permission-selfhelp-manage/component/flow-chart/index.vue

@@ -514,7 +514,7 @@ export default {
       let { myDiagram } = this;
 
       myDiagram = $(go.Diagram, 'myDiagramDiv', {
-        initialContentAlignment: go.Spot.Left,
+        // initialContentAlignment: go.Spot.Left,
         allowCopy: false,
         allowDelete: false
       });
@@ -561,7 +561,6 @@ export default {
           go.Panel,
           'Spot',
           { desiredSize: new go.Size(45, 45) },
-          new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
           $(
             go.Shape,
             'Circle',
@@ -628,7 +627,6 @@ export default {
           go.Panel,
           'Spot',
           { desiredSize: new go.Size(40, 40) },
-          new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
           // 最外层
           $(
             go.Shape,
@@ -782,6 +780,7 @@ export default {
           // curve: go.Link.JumpOver,
           corner: 5
         },
+         new go.Binding('points').makeTwoWay(),
         $(
           go.Shape, // the link path shape
           { isPanelMain: true, strokeWidth: 1 },

+ 1 - 1
src/pages/permission-selfhelp-manage/index.vue

@@ -144,7 +144,7 @@ export default {
           type: 'detail'
         },
         content: require('./component/detail.vue'),
-        area: ['1280px', '800px'],
+        area: ['1280px', '900px'],
         on: {
           success(params) {
             layer.close(layer.dialogIndex);