/*
 * @Author: chris
 * @Date: 2025-10-14 10:12:41
 * @LastEditors: chris
 * @LastEditTime: 2025-10-15 10:34:32
 */
export const baseInfoDict = {
  plantingArea: {
    svg: "nongshi",
    text: "种植面积（亩）",
  },
  terrain: {
    svg: "dixing",
    text: "地形",
  },
  variety: {
    svg: "pinzhong",
    text: "种植品种（种）",
  },
  type: {
    svg: "dapengzhongmiaoguanli",
    text: "主要品种",
  },
  plantingNum: {
    svg: "shuguo",
    text: "种植荔枝（棵）",
  },
  yield: {
    svg: "caizhaiguanli",
    text: "去年产量（吨）",
  },
};

export const weatherTypes = [
  "Temperature",
  "Illuminance",
  "WindSpeed",
  "WindDirection",
  "DailyRainfall",
];

export const weatherDict = {
  Temperature: {
    name: "温度",
    unit: "°C",
    color: "#FF6B6B",
    icon: "temperature2",
    min: 0,
    max: 40,
    interval: 10,
  },
  Illuminance: {
    name: "光照",
    unit: "lux",
    color: "#FFD166",
    icon: "light",
    min: 0,
    max: 3200,
    interval: 800,
  },
  WindSpeed: {
    name: "风速",
    unit: "km/h",
    color: "#009688",
    icon: "windPower",
    min: 0,
    max: 10,
    interval: 2,
  },
  WindDirection: {
    name: "风向",
    unit: "°",
    color: "#845EC2",
    icon: "wind",
  },
  DailyRainfall: {
    name: "降雨量",
    unit: "mm",
    color: "#6A0572",
    icon: "rain",
    min: 0,
    max: 10,
    interval: 2,
  },
};

export const soilTypes = [
  "SoilTemperature",
  "SoilHumidity",
  "EC",
  "PH",
  "Nitrogen",
  "Phosphorus",
  "Potassium",
];

// 土壤数据 - 使用土壤设备常用的7个参数
export const soilDict = {
  SoilTemperature: {
    id: "SoilTemperature",
    name: "土壤温度",
    value: "22.5",
    unit: "°C",
    icon: "turangwendu",
    color: "#ff7a45",
    status: "normal",
    description: "适宜作物生长",
  },
  SoilHumidity: {
    id: "SoilHumidity",
    name: "土壤湿度",
    value: "65",
    unit: "%",
    icon: "turangshidu",
    color: "#4096ff",
    status: "normal",
    description: "湿润度良好",
  },
  EC: {
    id: "EC",
    name: "电导率",
    value: "0.8",
    unit: "μS/cm",
    icon: "turangdiandaoshuai",
    color: "#73d13d",
    status: "normal",
    description: "盐分适中",
  },
  PH: {
    id: "PH",
    name: "土壤pH值",
    value: "6.8",
    unit: "",
    icon: "suanjiandu",
    color: "#ff9800",
    status: "normal",
    description: "酸碱度适宜",
  },
  Nitrogen: {
    id: "Nitrogen",
    name: "氮含量",
    value: "35",
    unit: "mg/kg",
    icon: "turangdanhanliang",
    color: "#fa541c",
    status: "normal",
    description: "肥力良好",
  },
  Phosphorus: {
    id: "Phosphorus",
    name: "磷含量",
    value: "22",
    unit: "mg/kg",
    icon: "turanglinhanliang",
    color: "#9c27b0",
    status: "normal",
    description: "含量适中",
  },
  Potassium: {
    id: "Potassium",
    name: "钾含量",
    value: "85",
    unit: "mg/kg",
    icon: "turangjiahanliang",
    color: "#2196f3",
    status: "normal",
    description: "钾素充足",
  },
};

export const pestTypeDict = {
  蚜虫: {
    color: "#ff6b6b",
  },
  红蜘蛛: {
    color: "#ffa502",
  },
  果蝇: {
    color: "#5f27cd",
  },
  菜青虫: {
    color: "#10ac84",
  },
  其他: {
    color: "#54a0ff",
  },
};
