Commit 03b9666a by liuyong

修改画布

1 parent af48f36b
Showing with 63 additions and 4 deletions
......@@ -16,12 +16,71 @@ function lookCurrentDetailsMenuAction(editorUi, graph) {//下钻数据按钮点
var cells = graph.getSelectionCells();
if(cells.length == 1) {
const mockFile = {
data: `<mxGraphModel dx="1177" dy="690" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
data: `<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="localhost" modified="2024-01-25T01:38:55.223Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0" etag="Jj3tz59PongmzpeU5rfP" version="@DRAWIO-VERSION@" type="device">
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">
<mxGraphModel dx="1335" dy="569" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="WIyWlLk6GJQsqaUBKTNV-3" value="" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="30" y="180" width="770" height="220" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-1" value="&lt;font style=&quot;font-size: 16px;&quot;&gt;业务能力视图&lt;/font&gt;" style="text;strokeColor=none;fillColor=none;html=1;fontSize=16;fontStyle=1;verticalAlign=middle;align=center;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="350" y="190" width="100" height="20" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-3" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#007FFF;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="60" y="220" width="710" height="150" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-4" value="业务域" style="text;strokeColor=none;fillColor=none;html=1;fontSize=16;fontStyle=1;verticalAlign=middle;align=center;fontColor=#ffffff;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="350" y="220" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-5" value="生产检修" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="80" y="260" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-8" value="财力资源" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="180" y="260" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-9" value="物力资源" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="280" y="260" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-10" value="规划计划" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="375" y="260" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-11" value="电网建设" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="470" y="260" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-12" value="电力营销" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="570" y="260" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-13" value="调度运行" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="670" y="260" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-16" value="电力交易" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="80" y="310" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-17" value="产业业务" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="180" y="310" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-18" value="金融业务" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="280" y="310" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-19" value="国际业务" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="375" y="310" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-20" value="科研业务" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="470" y="310" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-21" value="协同办公" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="570" y="310" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="8R2J-Gmg41mkb3V32hNC-22" value="综合管理" style="rounded=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="670" y="310" width="80" height="40" as="geometry" />
</mxCell>
</root>
</mxGraphModel>`,
</mxGraphModel>
</diagram>
</mxfile>`,
title: '下钻数据'
}
editorUi.editor.setStatus('');
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!