|
|
|
@ -171,7 +171,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
* 重大调整-主版本号增加 |
|
|
|
|
* 日期变更-日期版本号增加 |
|
|
|
|
*/ |
|
|
|
|
public VERSION = '1.4.2.20210325_rc'; |
|
|
|
|
public VERSION = '1.4.3.20210415_rc'; |
|
|
|
|
/** |
|
|
|
|
* 数据初始化 |
|
|
|
|
*/ |
|
|
|
@ -598,15 +598,15 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
const itemLegend = new Legend(axShape.assetData.Name, axShape.assetData.ImageUrl, 1); |
|
|
|
|
temp.addItem(itemLegend); |
|
|
|
|
// 设置新增图形的名称/编号
|
|
|
|
|
let Id = temp.shapeMap.get(axShape.assetData.Name).Count; |
|
|
|
|
let Id = temp.shapeMap.get(axShape.assetData.Name).Index; |
|
|
|
|
let index = "000"; |
|
|
|
|
// 检查Id的长度
|
|
|
|
|
if (Id < 10) { |
|
|
|
|
index = axShape.assetData.Id + "00" + Id; |
|
|
|
|
index = axShape.assetData.Name + "00" + Id; |
|
|
|
|
} else if (Id < 100) { |
|
|
|
|
index = axShape.assetData.Id + "0" + Id; |
|
|
|
|
index = axShape.assetData.Name + "0" + Id; |
|
|
|
|
} else { |
|
|
|
|
index = axShape.assetData.Id + Id; |
|
|
|
|
index = axShape.assetData.Name + Id; |
|
|
|
|
} |
|
|
|
|
(axShape.assetData.PropertyInfos.find(i => i.PropertyName == "名称/编号")).PropertyValue = index; |
|
|
|
|
} |
|
|
|
|