diff --git a/src/utils/gis.js b/src/utils/gis.js index 03a0a09..7dad4e5 100644 --- a/src/utils/gis.js +++ b/src/utils/gis.js @@ -184,7 +184,7 @@ class GisUtils { } - getFeature3 (item) { + getFeature3 (item, fill, stroke) { let feature = new Feature({ geometry: new MultiPolygon(JSON.parse(item.theGeom).coordinates), // name: item.centerName, @@ -192,19 +192,19 @@ class GisUtils { level: 'resource', detail: item }) - feature.setStyle(this.createMultiPolygonFeatureStyle()); + feature.setStyle(this.createMultiPolygonFeatureStyle(fill, stroke)); return feature; } - createMultiPolygonFeatureStyle () { + createMultiPolygonFeatureStyle (fill, stroke) { return new Style({ fill: new Fill({ //矢量图层填充颜色,以及透明度 - color: "rgba(255, 255, 0, 0.3)", + color: fill, }), stroke: new Stroke({ //边界样式 - color: "#ffff00", + color: stroke, width: 2, }) }); diff --git a/src/views/resources/main-gis/close.png b/src/views/resources/main-gis/close.png new file mode 100644 index 0000000..0a8337d Binary files /dev/null and b/src/views/resources/main-gis/close.png differ diff --git a/src/views/resources/main-gis/index.html b/src/views/resources/main-gis/index.html index b876b7b..e751d10 100644 --- a/src/views/resources/main-gis/index.html +++ b/src/views/resources/main-gis/index.html @@ -7,9 +7,86 @@ + +
资产编码
+{{permanentDetail.code}}
+资产名称
+{{permanentDetail.name}}
+资产类别
+{{permanentDetail.assetType}}
+经营属性
+{{permanentDetail.operationType}}
+增加方式
+{{permanentDetail.addType}}
+购建时间
+{{permanentDetail.buildTime}}
+使用情况
+{{permanentDetail.useType}}
+资产状态
+{{permanentDetail.assetStatus}}
+数量/面积
+{{permanentDetail.quantity}}
+计量单位
+{{permanentDetail.unit}}
+原值(元)
+{{permanentDetail.originalValue}}
+折旧方式
+{{permanentDetail.depreciationType}}
+附件
+
+
+
+
+