diff --git a/src/assets/images/chart/customponents/SiteStatistics.png b/src/assets/images/chart/customponents/SiteStatistics.png new file mode 100644 index 00000000..8f4bf9e7 Binary files /dev/null and b/src/assets/images/chart/customponents/SiteStatistics.png differ diff --git a/src/packages/components/CustomComponents/CustomComponents/EngineeringConfig/index.vue b/src/packages/components/CustomComponents/CustomComponents/EngineeringConfig/index.vue index 1d1e8f54..8cf6b233 100644 --- a/src/packages/components/CustomComponents/CustomComponents/EngineeringConfig/index.vue +++ b/src/packages/components/CustomComponents/CustomComponents/EngineeringConfig/index.vue @@ -32,7 +32,7 @@ let url = computed(() => { // const account = originStore?.getOriginStore?.user?.user?.account const account = 'admin' const password = 'laimi@123' - let origin = process.env.NODE_ENV === 'production' ? window.location.origin : 'http://192.168.0.61:9528' + let origin = process.env.NODE_ENV === 'production' ? window.location.origin : 'http://localhost:9528' // let str = `${origin}/static/#/dynamicRing/schematicDiagram/${props.chartConfig.customData.mapId}?parentOrigin=${window.location.origin}&isScreenIframe=true&account=${account}&password=${password}` let str = `${origin}/static/#/dynamicRing/schematicDiagram/${props.chartConfig.customData.mapId}?parentOrigin=${window.location.origin}&isScreenIframe=true&access_token=${routerStore.token}` return str diff --git a/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/config.ts b/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/config.ts new file mode 100644 index 00000000..eb67b121 --- /dev/null +++ b/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/config.ts @@ -0,0 +1,24 @@ +import { PublicConfigClass } from '@/packages/public' +import { CreateComponentType } from '@/packages/index.d' +import { SiteStatisticsConfig } from './index' +import cloneDeep from 'lodash/cloneDeep' + +export const option = { +} + +export default class Config extends PublicConfigClass implements CreateComponentType +{ + constructor() { + super(); + this.attr.w = 150 + this.attr.h = 150 + this.request.requestInterval = 15 + } + public key = SiteStatisticsConfig.key + public chartConfig = cloneDeep(SiteStatisticsConfig) + public option = cloneDeep(option) + public customData = cloneDeep({ + showInterval: true, + mapId: null + }) +} diff --git a/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/config.vue b/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/config.vue new file mode 100644 index 00000000..c169f16c --- /dev/null +++ b/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/config.vue @@ -0,0 +1,44 @@ + + + diff --git a/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/configData.vue b/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/configData.vue new file mode 100644 index 00000000..1d2d208a --- /dev/null +++ b/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/configData.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/index.ts b/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/index.ts new file mode 100644 index 00000000..394a7621 --- /dev/null +++ b/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/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 SiteStatisticsConfig: ConfigType = { + key: 'SiteStatistics', + chartKey: 'VSiteStatistics', + conKey: 'VCSiteStatistics', + // VCD开头 + conDataKey: 'VCDSiteStatistics', + title: '站点统计', + category: ChatCategoryEnum.CUSTOMCOMPONENTS, + categoryName: ChatCategoryEnumName.CUSTOMCOMPONENTS, + package: PackagesCategoryEnum.CUSTOMCOMPONENTS, + chartFrame: ChartFrameEnum.COMMON, + image: 'SiteStatistics.png' +} diff --git a/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/index.vue b/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/index.vue new file mode 100644 index 00000000..f7631c2d --- /dev/null +++ b/src/packages/components/CustomComponents/CustomComponents/SiteStatistics/index.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/src/packages/components/CustomComponents/CustomComponents/index.ts b/src/packages/components/CustomComponents/CustomComponents/index.ts index fc1fd20e..99352371 100644 --- a/src/packages/components/CustomComponents/CustomComponents/index.ts +++ b/src/packages/components/CustomComponents/CustomComponents/index.ts @@ -10,6 +10,7 @@ import { DashboardConfig } from './Dashboard' import { SystemRuntimeConfig } from './SystemRuntime' import { VideoListConfig } from './VideoList' import { AirConditioningTableConfig } from './AirConditioningTable' +import { SiteStatisticsConfig } from './SiteStatistics' export default [ // Theme1Config, @@ -24,4 +25,5 @@ export default [ SystemRuntimeConfig, VideoListConfig, AirConditioningTableConfig, + SiteStatisticsConfig, ]