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

export const option = {
  titleColor: '#FFFFFF',
  titleSize: 16,
  desColor: '#F9521E',
  desSize: 14,
  datasColor: '#CBE6CD',
  datasSize: 14,
  navsBackground: '#05352C',
  navsSize: 10,
  navsColor: '#099860',
  navsCheckSize: 12,
  navsCheckColor: '#0D2822',
  navsCheckBackground: '#34FFE0',
  navsArr: [
    { label: '待确认', value: '0', sql: '' },
    { label: '待处理', value: '0', sql: '' },
    { label: '已处理', value: '0', sql: '' }
  ],
  sectionDatas:[
    { 
      describe: '巡护发现火情', 
      degreeType: '重大火灾',
      address: '临沂市蒙阴县马田公路附近东北方向100米',
      reportTime: '2025/10/01 12:05:01',
      "lng":117.945311,
      "lat":35.463766
    }
  ],
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = EquipmentHuoQingXianSuoConfig.key
  public attr = { ...chartInitConfig, w: 378, h: 300, zIndex: 1 }
  public chartConfig = cloneDeep(EquipmentHuoQingXianSuoConfig)
  public option = cloneDeep(option)
  public request = { ...requestSqlConfig, requestSQLContent: { sql: "SELECT \"Id\", \"Describe\", \"DegreeType\", \"Address\", \"ReportTime\", \"Lng\", \"Lat\" FROM fm_fireclueinfo WHERE \"SourceType\" = 3" }, }
  public filter = "return res.result;"
}
