瀏覽代碼

修改字段

haojianlong 4 年之前
父節點
當前提交
94707d9f4c

+ 4 - 4
persagy-web-big/package.json

@@ -5,10 +5,10 @@
     "main": "lib/index.js",
     "types": "lib/index.d.js",
     "remote": {
-        "host": "47.94.89.44",
-        "path": "/opt/tomcat9/webapps/api/web/big",
-        "user": "user1",
-        "password": "@)!^sagacloud",
+        "host": "47.93.22.124",
+        "path": "/opt/web/doc/api/web/big",
+        "user": "doc",
+        "password": "saga2020(^cloud==",
         "local": "api"
     },
     "scripts": {

+ 3 - 3
persagy-web-big/src/items/SIconTextItem.ts

@@ -244,9 +244,9 @@ export class SIconTextItem extends SObjectItem {
         if (data && data.length) {
             anchorPoint = data.map(t => {
                 return {
-                    x: t.Pos.X,
-                    y: t.Pos.Y,
-                    id: t.ID
+                    x: t.pos.x,
+                    y: t.pos.y,
+                    id: t.id
                 };
             });
         } else {

+ 6 - 6
persagy-web-graph/src/items/SGraphSvgItem.ts

@@ -92,10 +92,10 @@ export class SGraphSvgItem extends SGraphShape {
      * @param   data    传入数据
      * */
     constructor(parent: SGraphItem | null, data: SGraphSvg) {
-        super(parent, data.Style);
-        if (data.Url) {
+        super(parent, data.style);
+        if (data.url) {
             this.img = new Image();
-            this.url = data.Url;
+            this.url = data.url;
             this.img.onload = (e): void => {
                 this.isLoadOver = true;
                 this.update();
@@ -106,9 +106,9 @@ export class SGraphSvgItem extends SGraphShape {
                 console.log("加载图片错误!", e);
             };
         }
-        this.width = data.Width;
-        this.height = data.Height;
-        this.moveTo(data.X, data.Y);
+        this.width = data.width;
+        this.height = data.height;
+        this.moveTo(data.x, data.y);
     } // Constructor
 
     /**