路线图结构调整

qianming 3 years ago
parent 36e764afa5
commit 86ace5ecc1

@ -129,8 +129,8 @@ export default {
return this.stackChartFn(params.chartProperties, data) return this.stackChartFn(params.chartProperties, data)
} else if (chartType == "widget-coord") { } else if (chartType == "widget-coord") {
return this.coordChartFn(params.chartProperties, data) return this.coordChartFn(params.chartProperties, data)
} else if (chartType == "widget-mapline") { } else if (chartType == "widget-linemap") {
return this.maplineChartFn(params.chartProperties, data) return this.linemapChartFn(params.chartProperties, data)
} else { } else {
return data return data
} }
@ -251,7 +251,7 @@ export default {
return ananysicData; return ananysicData;
}, },
// 中国地图。路线图数据解析适合source、target、value // 中国地图。路线图数据解析适合source、target、value
maplineChartFn(chartProperties, data) { linemapChartFn(chartProperties, data) {
const ananysicData = []; const ananysicData = [];
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
const obj = {}; const obj = {};

@ -20,7 +20,7 @@ export const widgetAirbubbleMap = {
name: 'layerName', name: 'layerName',
required: false, required: false,
placeholder: '', placeholder: '',
value: '气泡图', value: '中国地图-气泡图',
}, },
{ {
type: 'vue-color', type: 'vue-color',

@ -9,7 +9,7 @@
export const widgetMap = { export const widgetMap = {
code: 'widget-map', code: 'widget-map',
type: 'chart', type: 'chart',
label: '中国地图', label: '路线地图',
icon: 'iconzhongguoditu', icon: 'iconzhongguoditu',
options: { options: {
setup: [ setup: [
@ -19,7 +19,7 @@ export const widgetMap = {
name: 'layerName', name: 'layerName',
required: false, required: false,
placeholder: '', placeholder: '',
value: '路线图', value: '中国地图-路线图',
}, },
{ {
type: 'vue-color', type: 'vue-color',
@ -266,7 +266,7 @@ export const widgetMap = {
required: false, required: false,
placeholder: '', placeholder: '',
relactiveDom: 'dataType', relactiveDom: 'dataType',
chartType: 'widget-mapline', chartType: 'widget-linemap',
dictKey: 'SOUTAR_PROPERTIES', dictKey: 'SOUTAR_PROPERTIES',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
value: '', value: '',

@ -4,7 +4,7 @@
</div> </div>
</template> </template>
<script> <script>
import "../../../../../node_modules/echarts/map/js/china.js"; import "echarts/map/js/china.js";
let geoCoordMap = { let geoCoordMap = {
上海: [121.4648, 31.2891], 上海: [121.4648, 31.2891],

@ -28,7 +28,7 @@ import WidgetFunnel from "./widgetFunnel.vue";
import WidgetGauge from "./percent/widgetGauge.vue"; import WidgetGauge from "./percent/widgetGauge.vue";
import WidgetPieNightingaleRoseArea from "./pie/widgetPieNightingaleRose"; import WidgetPieNightingaleRoseArea from "./pie/widgetPieNightingaleRose";
import widgetTable from "./widgetTable.vue"; import widgetTable from "./widgetTable.vue";
import widgetMap from "./widgetMap.vue"; import widgetMap from "./map/widgetLineMap.vue";
import widgetPiePercentageChart from "./percent/widgetPiePercentageChart"; import widgetPiePercentageChart from "./percent/widgetPiePercentageChart";
import widgetAirBubbleMap from "./map/widgetAirBubbleMap"; import widgetAirBubbleMap from "./map/widgetAirBubbleMap";
import widgetBarStackChart from "./bar/widgetBarStackChart"; import widgetBarStackChart from "./bar/widgetBarStackChart";

@ -39,7 +39,7 @@ import WidgetFunnel from "./widgetFunnel.vue";
import WidgetGauge from "./percent/widgetGauge.vue"; import WidgetGauge from "./percent/widgetGauge.vue";
import WidgetPieNightingaleRoseArea from "./pie/widgetPieNightingaleRose"; import WidgetPieNightingaleRoseArea from "./pie/widgetPieNightingaleRose";
import widgetTable from "./widgetTable.vue"; import widgetTable from "./widgetTable.vue";
import widgetMap from "./widgetMap.vue"; import widgetMap from "./map/widgetLineMap.vue";
import widgetPiePercentageChart from "./percent/widgetPiePercentageChart"; import widgetPiePercentageChart from "./percent/widgetPiePercentageChart";
import widgetAirBubbleMap from "./map/widgetAirBubbleMap"; import widgetAirBubbleMap from "./map/widgetAirBubbleMap";
import widgetBarStackChart from "./bar/widgetBarStackChart"; import widgetBarStackChart from "./bar/widgetBarStackChart";

Loading…
Cancel
Save