diff --git a/src/api/path/business.api.ts b/src/api/path/business.api.ts index c00d35a0..9ccfaf0d 100644 --- a/src/api/path/business.api.ts +++ b/src/api/path/business.api.ts @@ -51,7 +51,6 @@ export const publicInterface = async (paramType:string, interfaceType:string, pa access_token = await getToken() as string } else { - console.log(import.meta.env, 777) access_token = import.meta.env.VITE_DEV_TOKEN } const res = await http(RequestHttpEnum.POST)(paramType, { diff --git a/src/assets/images/chart/customponents/ElectricityConsumption.png b/src/assets/images/chart/customponents/ElectricityConsumption.png new file mode 100644 index 00000000..b7ed1b4b Binary files /dev/null and b/src/assets/images/chart/customponents/ElectricityConsumption.png differ diff --git a/src/packages/components/Charts/Maps/MapBase/config.ts b/src/packages/components/Charts/Maps/MapBase/config.ts index d9844001..a2a81434 100644 --- a/src/packages/components/Charts/Maps/MapBase/config.ts +++ b/src/packages/components/Charts/Maps/MapBase/config.ts @@ -53,13 +53,13 @@ export const option = { type: 'effectScatter', coordinateSystem: 'geo', symbolSize: 4, - legendHoverLink: true, + legendHoverLink: false, showEffectOn: 'render', - rippleEffect: { - scale: 6, - color: '#FFFFFF', - brushType: 'fill' - }, + // rippleEffect: { + // scale: 6, + // color: '#FFFFFF', + // brushType: 'fill' + // }, tooltip: { show: true, backgroundColor: 'rgba(0,0,0,.6)', @@ -78,8 +78,9 @@ export const option = { textShadowBlur: 10, textBorderWidth: 0, color: '#FFFFFF', - show: true + show: false }, + symbol: 'none', itemStyle: { color: '#FFFFFF', borderColor: 'rgba(225,255,255,2)', @@ -110,7 +111,7 @@ export const option = { } }, label: { - show: false, + show: true, color: '#FFFFFF', fontSize: 12 }, @@ -121,13 +122,13 @@ export const option = { fontSize: 12 }, itemStyle: { - areaColor: '#389BB7', - shadowColor: '#389BB7', + areaColor: '#4196FF', + shadowColor: '#1C58EE54', borderWidth: 1 } }, itemStyle: { - borderColor: '#93EBF8', + borderColor: '#00DEFFFF', borderWidth: 1, areaColor: { type: 'radial', @@ -152,32 +153,39 @@ export const option = { shadowBlur: 10 } }, - { - type: 'lines', - zlevel: 2, - effect: { - show: true, - period: 4, //箭头指向速度,值越小速度越快 - trailLength: 0.4, //特效尾迹长度[0,1]值越大,尾迹越长重 - symbol: 'arrow', //箭头图标 - symbolSize: 7 //图标大小 - }, - lineStyle: { - normal: { - color: '#4fb6d2', - width: 1, //线条宽度 - opacity: 0.1, //尾迹线条透明度 - curveness: 0.3 //尾迹线条曲直度 - } - }, - data: [] - } + // { + // type: 'lines', + // zlevel: 2, + // effect: { + // show: true, + // period: 4, //箭头指向速度,值越小速度越快 + // trailLength: 0.4, //特效尾迹长度[0,1]值越大,尾迹越长重 + // symbol: 'arrow', //箭头图标 + // symbolSize: 7 //图标大小 + // }, + // lineStyle: { + // normal: { + // color: '#4fb6d2', + // width: 1, //线条宽度 + // opacity: 0.1, //尾迹线条透明度 + // curveness: 0.3 //尾迹线条曲直度 + // } + // }, + // data: [] + // } ] } + +export const customData = { + // k: 名字 v: 数值 + dataMap: '{}' +} + export const MapDefaultConfig = { ...option } export default class Config extends PublicConfigClass implements CreateComponentType { public key: string = MapBaseConfig.key public attr = { ...chartInitConfig, w: 750, h: 800, zIndex: -1 } public chartConfig = cloneDeep(MapBaseConfig) public option = echartOptionProfixHandle(option, includes) + public customData = cloneDeep(customData) } diff --git a/src/packages/components/Charts/Maps/MapBase/config.vue b/src/packages/components/Charts/Maps/MapBase/config.vue index e0363d8f..98f57d84 100644 --- a/src/packages/components/Charts/Maps/MapBase/config.vue +++ b/src/packages/components/Charts/Maps/MapBase/config.vue @@ -81,7 +81,7 @@ - + @@ -194,47 +194,47 @@ - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/src/packages/components/Charts/Maps/MapBase/configData.vue b/src/packages/components/Charts/Maps/MapBase/configData.vue new file mode 100644 index 00000000..a864fa40 --- /dev/null +++ b/src/packages/components/Charts/Maps/MapBase/configData.vue @@ -0,0 +1,14 @@ + + + + + diff --git a/src/packages/components/Charts/Maps/MapBase/index.ts b/src/packages/components/Charts/Maps/MapBase/index.ts index 4010cf38..42dc7a3d 100644 --- a/src/packages/components/Charts/Maps/MapBase/index.ts +++ b/src/packages/components/Charts/Maps/MapBase/index.ts @@ -5,6 +5,7 @@ export const MapBaseConfig: ConfigType = { key: 'MapBase', chartKey: 'VMapBase', conKey: 'VCMapBase', + conDataKey: 'VCDMapBase', title: '地图(可选省份)', category: ChatCategoryEnum.MAP, categoryName: ChatCategoryEnumName.MAP, diff --git a/src/packages/components/Charts/Maps/MapBase/index.vue b/src/packages/components/Charts/Maps/MapBase/index.vue index 95feda3c..b8134741 100644 --- a/src/packages/components/Charts/Maps/MapBase/index.vue +++ b/src/packages/components/Charts/Maps/MapBase/index.vue @@ -28,7 +28,7 @@ + + \ No newline at end of file diff --git a/src/packages/components/CustomComponents/CustomComponents/ElectricityConsumption/configData.vue b/src/packages/components/CustomComponents/CustomComponents/ElectricityConsumption/configData.vue new file mode 100644 index 00000000..38941c2f --- /dev/null +++ b/src/packages/components/CustomComponents/CustomComponents/ElectricityConsumption/configData.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/src/packages/components/CustomComponents/CustomComponents/ElectricityConsumption/index.ts b/src/packages/components/CustomComponents/CustomComponents/ElectricityConsumption/index.ts new file mode 100644 index 00000000..09a4cf3a --- /dev/null +++ b/src/packages/components/CustomComponents/CustomComponents/ElectricityConsumption/index.ts @@ -0,0 +1,16 @@ +import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d' +import { ChatCategoryEnum, ChatCategoryEnumName } from '@/packages/components/CustomComponents/index.d' + +export const ElectricityConsumptionConfig: ConfigType = { + key: 'ElectricityConsumption', + chartKey: 'VElectricityConsumption', + conKey: 'VCElectricityConsumption', + // VCD开头 + conDataKey: 'VCDElectricityConsumption', + title: '用电量', + category: ChatCategoryEnum.CUSTOMCOMPONENTS, + categoryName: ChatCategoryEnumName.CUSTOMCOMPONENTS, + package: PackagesCategoryEnum.CUSTOMCOMPONENTS, + chartFrame: ChartFrameEnum.COMMON, + image: 'ElectricityConsumption.png' +} diff --git a/src/packages/components/CustomComponents/CustomComponents/ElectricityConsumption/index.vue b/src/packages/components/CustomComponents/CustomComponents/ElectricityConsumption/index.vue new file mode 100644 index 00000000..c012b800 --- /dev/null +++ b/src/packages/components/CustomComponents/CustomComponents/ElectricityConsumption/index.vue @@ -0,0 +1,381 @@ + + + + + \ No newline at end of file diff --git a/src/packages/components/CustomComponents/CustomComponents/index.ts b/src/packages/components/CustomComponents/CustomComponents/index.ts index 7a284e4a..cdf24759 100644 --- a/src/packages/components/CustomComponents/CustomComponents/index.ts +++ b/src/packages/components/CustomComponents/CustomComponents/index.ts @@ -13,6 +13,7 @@ import { VideoListConfig } from './VideoList' import { AirConditioningTableConfig } from './AirConditioningTable' import { SiteStatisticsConfig } from './SiteStatistics' import { PowerCapacityConfig } from './PowerCapacity' +import { ElectricityConsumptionConfig } from './ElectricityConsumption' export default [ // Theme1Config, @@ -30,4 +31,5 @@ export default [ AirConditioningTableConfig, SiteStatisticsConfig, PowerCapacityConfig, + ElectricityConsumptionConfig, ] diff --git a/src/plugins/naive.ts b/src/plugins/naive.ts index 0d004df7..b72ba36e 100644 --- a/src/plugins/naive.ts +++ b/src/plugins/naive.ts @@ -68,6 +68,7 @@ import { NSelect, NSlider, NRadioGroup, + NRadioButton, NRadio, NSteps, NStep, @@ -172,6 +173,7 @@ const naive = create({ NSlider, NSelect, NRadioGroup, + NRadioButton, NRadio, NSteps, NStep,