Jelajahi Sumber

'图标选中加阴影,图例名字保存错误问题修改'

zhangyu 4 tahun lalu
induk
melakukan
bc1f131c8d

+ 1 - 1
package.json

@@ -9,7 +9,7 @@
   },
   "dependencies": {
     "@saga-web/base": "2.1.22",
-    "@saga-web/big": "1.0.72",
+    "@saga-web/big": "1.0.73",
     "@saga-web/draw": "2.1.100",
     "@saga-web/feng-map": "1.0.20",
     "@saga-web/graph": "2.1.105",

+ 3 - 3
src/components/edit/attr_select.vue

@@ -113,7 +113,7 @@
     <div class="attr-select" v-show="type =='Image'|| type == 'Line' || type == 'Zone'">
       <div v-if="type =='Image'|| type == 'Line'">
         <div class="row">
-          <div class="row-tit">名称显示</div>
+          <div class="row-tit">显示名称</div>
           <a-button type="link" class="edit-option-btn" @click="OpenEditStatus">{{editStatus[type]}}</a-button>
         </div>
         <div class="row">
@@ -162,7 +162,7 @@
             <swatches @input="fhfqchangefillColor" :swatches="swatchess" v-model="fillColor" inline></swatches>
           </div>
           <div class="row">
-            <div class="row-tit">名称显示</div>
+            <div class="row-tit">显示名称</div>
             <a-button
               type="link"
               class="edit-option-btn"
@@ -543,7 +543,7 @@ export default {
           newval.itemType == "Line" ||
           newval.itemType == "Image"
         ) {
-          this.lengedName = Item.data.Name;
+          this.lengedName = Item.name;
           this.borderColor = Item.strokeColor ? Item.strokeColor.value : "";
           this.fillColor = Item.fillColor ? Item.fillColor.value : "";
           this.itemExplain = "";

+ 2 - 1
src/components/mapClass/EditScence.ts

@@ -660,6 +660,7 @@ export class EditScence extends SGraphScene {
             const newMsg = val;
             const oldMsg = this.focusItem.text;
             this.focusItem.text = val;
+            this.focusItem.name = val;
             this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "text", oldMsg, newMsg));
             this.scenceUpdate(this);
         }
@@ -712,7 +713,7 @@ export class EditScence extends SGraphScene {
             const item = this.focusItem;
             this.selectContainer.clear();
             this.selectContainer.toggleItem(item);
-            
+
             // 图标绑定工程信息化数据后设置状态
             if (item instanceof SImageLegendItem) {
                 if (item.data.AttachObjectIds && item.data.AttachObjectIds.length) {

+ 1 - 1
src/lib/items/SFHFQZoneLegendItem.ts

@@ -172,7 +172,7 @@ export class SFHFQZoneLegendItem extends SPolygonItem {
 
     toData(): any {
         this.data.Pos = { X: this.x, Y: this.y };
-        this.data.Name = this.text;
+        this.data.Name = this.name;
         this.data.Properties.FillColor = this.fillColor.value;
         this.data.Properties.StrokeColor = this.strokeColor.value;
         this.data.Properties.LineWidth = this.lineWidth;

+ 1 - 1
src/lib/items/SSCPZZoneLegendItem.ts

@@ -180,7 +180,7 @@ export class SSCPZZoneLegendItem extends SPolygonItem {
 
     toData(): any {
         this.data.Pos = { X: this.x, Y: this.y };
-        this.data.Name = this.text;
+        this.data.Name = this.name;
         this.data.Properties.FillColor = this.fillColor.value;
         this.data.Properties.StrokeColor = this.strokeColor.value;
         this.data.Properties.LineWidth = this.lineWidth;

+ 1 - 0
src/lib/items/TipelineItem.ts

@@ -148,6 +148,7 @@ export class TipelineItem extends SPolylineItem {
     });
 
     if (this.data) {
+      this.data.Name = this.name;
       this.data.PointList = pointList;
       this.data.Properties.LineWidth = this.lineWidth;
       // this.data.Properties.LineDash = this.LineDash;