// import moment from "moment";
export default {
  // 农村地表水
  toVillageTop(excelData){
    return excelData.map(item=>{
        const monitorTime = new Date();
        monitorTime.setFullYear(item[12]);
        monitorTime.setMonth(item[13] - 1);
        monitorTime.setDate(item[14]);
        const row = {
            monitorTime: monitorTime.getTime(),
            sectionCode:item[0],
            province: item[1],
            city: item[2],
            // area: item[3].includes("区")?item[3]:null,
            // county: !item[3].includes("区")?item[3]:null,
            county:item[3],
            township: item[4],
            village: item[5],
            place: item[6],
            lakeLibraryFlag: item[7],
            // mustTestVillagesFlag: item[8],
            longitude: item[8],
            latitude: item[9],
            numberServingPopulation: item[10],
            dailyWaterSupplyScale: item[11],
            // province: item[11],
            // province: item[12],
            // province: item[13],
            waterTemperature: item[15],
            ph: item[16],
            dissolvedOxygen: item[17],
            permanganateIndex: item[18],
            fiveDayBod: item[19],
            ammonia: item[20],
            totalPhosphorus: item[21],
            totalNitrogen: item[22],
            cu: item[23],
            zn: item[24],
            fluoride: item[25],
            se: item[26],
            as: item[27],
            hg: item[28],
            cd: item[29],
            cr: item[30],
            pb: item[31],
            cyanide: item[32],
            volatilePhenol: item[33],
            petro: item[34],
            anionicSurfactant: item[35],
            sulfide: item[36],
            fecalColiforms: item[37],
            sulfate: item[38],
            chloride: item[39],
            nitrateNitrogen: item[40],
            fe: item[41],
            mn: item[42],
            // waterQualityCategory: item[44],
            characteristicPollutantMonitoringProjectName: item[43],
            characteristicPollutantMonitoringValue: item[44],
            remark: item[45],
          
        };
        return row;
    })
  },
   // 农村地下水
   toVillageBottom(excelData){
    return excelData.map(item=>{
      const monitorTime = new Date();
      monitorTime.setFullYear(item[11]);
      monitorTime.setMonth(item[12] - 1);
      monitorTime.setDate(item[13]);
      const row = {
          monitorTime: monitorTime.getTime(),
          sectionCode:item[0],
          province: item[1],
          city: item[2],
          // area: item[3].includes("区")?item[3]:null,
          // county: !item[3].includes("区")?item[3]:null,
          county:item[3],
          township: item[4],
          village: item[5],
          place: item[6],
          // lakeLibraryFlag: item[7],
          // mustTestVillagesFlag: item[8],
          longitude: item[7],
          latitude: item[8],
          numberServingPopulation: item[9],
          dailyWaterSupplyScale: item[10],
          // province: item[11],
          // province: item[12],
          // province: item[13],
          color:item[14],
          smellAndTaste: item[15],
          turbidity: item[16],
          visibleNakedEye: item[17],
          ph: item[18],
          totalHardness: item[19],
          totalDissolvedSolids: item[20],
          totalNitrsulfateogen: item[21],
          chloride: item[22],
          fe: item[23],
          mn: item[24],
          cu: item[25],
          zn: item[26],
          ai: item[27],
          volatilePhenol: item[28],
          anionicSurfactant: item[29],
          oxygenConsumption: item[30],
          nitrate: item[31],
          nitrite: item[32],
          ammonia: item[33],
          sulfide: item[34],
          na: item[35],
          fluoride: item[36],
          cyanide: item[37],
          lodide: item[38],
          hg: item[39],
          as: item[40],
          se: item[41],
          cd: item[42],
          cr: item[43],
          pb: item[44],
          totalColiform: item[45],
          totalNumberColonies: item[46],
          chcl3: item[47],
          ccl4: item[48],
          c6h6: item[49],
          c7h8: item[50],
          totalAlphaRadioactivity: item[51],
          totalBetaRadioactivity: item[52],
          characteristicPollutantMonitoringProjectName: item[53],
          characteristicPollutantMonitoringValue: item[54],
          remark: item[55],
      };
      return row;
  })
  }
}