diff --git a/src/assets/images/chart/zhilan/ZhiLan_ZhongZhiShuLiangMianJi.png b/src/assets/images/chart/zhilan/ZhiLan_ZhongZhiShuLiangMianJi.png new file mode 100644 index 0000000..d355e6e Binary files /dev/null and b/src/assets/images/chart/zhilan/ZhiLan_ZhongZhiShuLiangMianJi.png differ diff --git a/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/config.ts b/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/config.ts new file mode 100644 index 0000000..7f38c00 --- /dev/null +++ b/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/config.ts @@ -0,0 +1,48 @@ +import { PublicConfigClass } from '@/packages/public' +import { chartInitConfig,requestSqlConfig } from '@/settings/designSetting' +import { CreateComponentType } from '@/packages/index.d' +import { ZhiLan_ZhongZhiShuLiangMianJiConfig } from './index' +import cloneDeep from 'lodash/cloneDeep' +import dataJson from './data.json' + +const { source } = dataJson; + +export const option = { + dataset: source, + dataStyle: { + backgroud: '#FFFFFF00', + marginTop: 100, + marginLeft: 25, + sortOrder: '0', + + unitTitle: '单位 / 平方米', + unitName: 'm²', + unitFontSize: 14, + unitFontColor: '#738073', + + itemMarginTop: 15, + itemHeight: 40, + + labelFontSize: 13, + labelFontColor: '#9ab398', + labelWidth: 100, + labelAlign: 'center', + + valueFontSize: 16, + valueFontColor: '#FFFFFF', + + lineBackgroud: '#000000', + lineBorderWidth: 1, + lineBorderColor: '#ffffff', + lineHeight: 15, + lineStartColor: '#0B4D2C', + lineEndColor: '#4DFFB5', + } +} + +export default class Config extends PublicConfigClass implements CreateComponentType { + public key = ZhiLan_ZhongZhiShuLiangMianJiConfig.key + public attr = { ...chartInitConfig, w: 400, h: 900, zIndex: 1 } + public chartConfig = cloneDeep(ZhiLan_ZhongZhiShuLiangMianJiConfig) + public option = cloneDeep(option) +} diff --git a/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/config.vue b/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/config.vue new file mode 100644 index 0000000..89c7530 --- /dev/null +++ b/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/config.vue @@ -0,0 +1,237 @@ + + + diff --git a/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/data.json b/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/data.json new file mode 100644 index 0000000..172f845 --- /dev/null +++ b/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/data.json @@ -0,0 +1,64 @@ +{ + "source": [ + { + "label": "林种类型", + "value": "4820" + }, + { + "label": "林种类型", + "value": "14820" + }, + { + "label": "林种类型", + "value": "8820" + }, + { + "label": "林种类型", + "value": "1220" + }, + { + "label": "林种类型", + "value": "7421" + }, + { + "label": "林种类型", + "value": "4820" + }, + { + "label": "林种类型", + "value": "14820" + }, + { + "label": "林种类型", + "value": "8820" + }, + { + "label": "林种类型", + "value": "1220" + }, + { + "label": "林种类型", + "value": "7421" + }, + { + "label": "林种类型", + "value": "4820" + }, + { + "label": "林种类型", + "value": "14820" + }, + { + "label": "林种类型", + "value": "8820" + }, + { + "label": "林种类型", + "value": "1220" + }, + { + "label": "林种类型", + "value": "7421" + } + ] +} diff --git a/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/index.ts b/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/index.ts new file mode 100644 index 0000000..4b6747c --- /dev/null +++ b/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/index.ts @@ -0,0 +1,14 @@ +import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d'; +import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'; + +export const ZhiLan_ZhongZhiShuLiangMianJiConfig: ConfigType = { + key: 'ZhiLan_ZhongZhiShuLiangMianJi', + chartKey: 'VZhiLan_ZhongZhiShuLiangMianJi', + conKey: 'VCZhiLan_ZhongZhiShuLiangMianJi', + title: '种植数量面积', + category: ChatCategoryEnum.ZHILAN, + categoryName: ChatCategoryEnumName.ZHILAN, + package: PackagesCategoryEnum.ZHILAN, + chartFrame: ChartFrameEnum.COMMON, + image: 'ZhiLan_ZhongZhiShuLiangMianJi.png', +}; diff --git a/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/index.vue b/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/index.vue new file mode 100644 index 0000000..33d52af --- /dev/null +++ b/src/packages/components/Zhilan/Zhilan/ZhiLan_ZhongZhiShuLiangMianJi/index.vue @@ -0,0 +1,187 @@ + + + + diff --git a/src/packages/components/Zhilan/Zhilan/index.ts b/src/packages/components/Zhilan/Zhilan/index.ts index e8035d8..c5d91c5 100644 --- a/src/packages/components/Zhilan/Zhilan/index.ts +++ b/src/packages/components/Zhilan/Zhilan/index.ts @@ -18,7 +18,7 @@ import { ZhiLanRenYuanLeiXingConfig } from './ZhiLanRenYuanLeiXing/index'; import { ZhiLanGongNengLeiXingConfig } from './ZhiLanGongNengLeiXing/index'; import { WeiXingGuoLvConfig } from './WeiXingGuoLv/index'; import { WeiXingImgConfig } from './WeiXingImg/index'; - +import { ZhiLan_ZhongZhiShuLiangMianJiConfig } from './ZhiLan_ZhongZhiShuLiangMianJi/index'; export default [ ZhiLanTitlesConfig, @@ -27,6 +27,7 @@ export default [ ZhiLanGongNengLeiXingConfig, WeiXingGuoLvConfig, WeiXingImgConfig, + ZhiLan_ZhongZhiShuLiangMianJiConfig, ZhiLanIcons01Config, ZhiLanIcons02Config, ZhiLanIcons03Config,