import { PublicConfigClass } from '@/packages/public';
import { chartInitConfig, requestSqlConfig } from '@/settings/designSetting';
import { CreateComponentType } from '@/packages/index.d';
import { EquipmentHuoQingJianCeConfig } from './index';
import cloneDeep from 'lodash/cloneDeep';

export const option = {
  titleColor: '#CBE6CD',
  titleSize: 12,
  desColor: '#CBE7CD',
  desSize: 10,
  datasColor: '#4FE985',
  datasSize: 18,
  yjDatas: [
    { label: '卫星热点', value: '7365' },
    { label: '视频监控', value: '7365' },
    { label: '护林员上报', value: '7365' },
  ],
  sbDatas: [
    { label: '上报国家火情', value: '7365' },
    { label: '防火码扫码统计', value: '7365' },
  ],
  imgArr: [
    '@/assets/images/chart/equipment/wxrd.png',
    '@/assets/images/chart/equipment/spjk.png',
    '@/assets/images/chart/equipment/hlysb.png',
    '@/assets/images/chart/equipment/sbgjhq.png',
    '@/assets/images/chart/equipment/fhmsdtj.png',
  ],
};

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = EquipmentHuoQingJianCeConfig.key;
  public attr = { ...chartInitConfig, w: 378, h: 193, zIndex: 1 };
  public chartConfig = cloneDeep(EquipmentHuoQingJianCeConfig);
  public option = cloneDeep(option);
  public request = { ...requestSqlConfig, requestSQLContent: { sql: 'select * from ' } };
  public filter = 'return res.result;';
}
