| | |
| | | console.log(this.$attrs.value) |
| | | if (this.$attrs.value === 'feiqi') { |
| | | this.tableData = this.$attrs.getWasteGasDetails |
| | | console.log(this.$attrs.getWasteGasDetails) |
| | | } else if (this.$attrs.getWasteWaterMonitoringDetails) { |
| | | // console.log(this.$attrs.getWasteGasDetails) |
| | | } else if (this.$attrs.value === 'feishui') { |
| | | this.tableData = this.$attrs.getWasteWaterMonitoringDetails |
| | | console.log(this.$attrs.getWasteWaterMonitoringDetails) |
| | | // console.log(this.$attrs.getWasteWaterMonitoringDetails) |
| | | } |
| | | } |
| | | } |
| | |
| | | <public-table v-if="value === 'gufei'" |
| | | :displayContentTable="displayContentTable"></public-table> |
| | | <public-chart v-else :getWasteGasDetails="getWasteGasDetails" |
| | | :getWasteWaterMonitoring="getWasteWaterMonitoring"></public-chart> |
| | | :value="value" |
| | | :getWasteWaterMonitoring="getWasteWaterMonitoring" |
| | | :getWasteWaterMonitoringDetails="getWasteWaterMonitoringDetails |
| | | "></public-chart> |
| | | </div> |
| | | </div> |
| | | <div class="public-bounced-content-right"> |
| | |
| | | // 定义类型 用来区分数据 |
| | | const ContrLevel = data[i].ContrLevel |
| | | var iconUrl = this.differentTypes(ContrLevel) |
| | | |
| | | const marker = L.marker.magic([positionX, positionY], { |
| | | // const marker = L.canvasMarker([positionX, positionY], { |
| | | // img: { |
| | | // // url: 'assets/images/map/marker-icon.png', |
| | | // url: iconUrl, |
| | | // size: STYLES.ICON_SIZE |
| | | // } |
| | | const marker = L.marker([positionX, positionY], { |
| | | test: data[i], |
| | | icon: L.icon({ |
| | | iconUrl: iconUrl, |
| | | iconSize: [50, 50], |
| | | iconAnchor: [25, 25] |
| | | iconSize: [20, 35], |
| | | iconAnchor: [10, 20] |
| | | }) |
| | | }) |
| | | layer.addLayer(marker) |