mirror of
https://gitee.com/anji-plus/report.git
synced 2026-04-13 10:38:34 +08:00
路线图结构调整
This commit is contained in:
@@ -129,8 +129,8 @@ export default {
|
||||
return this.stackChartFn(params.chartProperties, data)
|
||||
} else if (chartType == "widget-coord") {
|
||||
return this.coordChartFn(params.chartProperties, data)
|
||||
} else if (chartType == "widget-mapline") {
|
||||
return this.maplineChartFn(params.chartProperties, data)
|
||||
} else if (chartType == "widget-linemap") {
|
||||
return this.linemapChartFn(params.chartProperties, data)
|
||||
} else {
|
||||
return data
|
||||
}
|
||||
@@ -251,7 +251,7 @@ export default {
|
||||
return ananysicData;
|
||||
},
|
||||
// 中国地图。路线图数据解析,适合source、target、value
|
||||
maplineChartFn(chartProperties, data) {
|
||||
linemapChartFn(chartProperties, data) {
|
||||
const ananysicData = [];
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
const obj = {};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* @Descripttion: 气泡地图json
|
||||
* @version:
|
||||
* @version:
|
||||
* @Author: qianlishi
|
||||
* @Date: 2021-08-29 07:35:32
|
||||
* @LastEditors: qianlishi
|
||||
@@ -20,7 +20,7 @@ export const widgetAirbubbleMap = {
|
||||
name: 'layerName',
|
||||
required: false,
|
||||
placeholder: '',
|
||||
value: '气泡地图',
|
||||
value: '中国地图-气泡图',
|
||||
},
|
||||
{
|
||||
type: 'vue-color',
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
export const widgetMap = {
|
||||
code: 'widget-map',
|
||||
type: 'chart',
|
||||
label: '中国地图',
|
||||
label: '路线地图',
|
||||
icon: 'iconzhongguoditu',
|
||||
options: {
|
||||
setup: [
|
||||
@@ -19,7 +19,7 @@ export const widgetMap = {
|
||||
name: 'layerName',
|
||||
required: false,
|
||||
placeholder: '',
|
||||
value: '路线图',
|
||||
value: '中国地图-路线图',
|
||||
},
|
||||
{
|
||||
type: 'vue-color',
|
||||
@@ -266,7 +266,7 @@ export const widgetMap = {
|
||||
required: false,
|
||||
placeholder: '',
|
||||
relactiveDom: 'dataType',
|
||||
chartType: 'widget-mapline',
|
||||
chartType: 'widget-linemap',
|
||||
dictKey: 'SOUTAR_PROPERTIES',
|
||||
relactiveDomValue: 'dynamicData',
|
||||
value: '',
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import "../../../../../node_modules/echarts/map/js/china.js";
|
||||
import "echarts/map/js/china.js";
|
||||
|
||||
let geoCoordMap = {
|
||||
上海: [121.4648, 31.2891],
|
||||
@@ -28,7 +28,7 @@ import WidgetFunnel from "./widgetFunnel.vue";
|
||||
import WidgetGauge from "./percent/widgetGauge.vue";
|
||||
import WidgetPieNightingaleRoseArea from "./pie/widgetPieNightingaleRose";
|
||||
import widgetTable from "./widgetTable.vue";
|
||||
import widgetMap from "./widgetMap.vue";
|
||||
import widgetMap from "./map/widgetLineMap.vue";
|
||||
import widgetPiePercentageChart from "./percent/widgetPiePercentageChart";
|
||||
import widgetAirBubbleMap from "./map/widgetAirBubbleMap";
|
||||
import widgetBarStackChart from "./bar/widgetBarStackChart";
|
||||
|
||||
@@ -39,7 +39,7 @@ import WidgetFunnel from "./widgetFunnel.vue";
|
||||
import WidgetGauge from "./percent/widgetGauge.vue";
|
||||
import WidgetPieNightingaleRoseArea from "./pie/widgetPieNightingaleRose";
|
||||
import widgetTable from "./widgetTable.vue";
|
||||
import widgetMap from "./widgetMap.vue";
|
||||
import widgetMap from "./map/widgetLineMap.vue";
|
||||
import widgetPiePercentageChart from "./percent/widgetPiePercentageChart";
|
||||
import widgetAirBubbleMap from "./map/widgetAirBubbleMap";
|
||||
import widgetBarStackChart from "./bar/widgetBarStackChart";
|
||||
|
||||
Reference in New Issue
Block a user