// import moment from "moment";
export default {
    // 市级在用地表水 已可用
    toCityUseTopWaterObjData(excelData) {
        return excelData.map(item => {
            const row = {
                regionLevel: "市级",
                drinkingWaterType: 1, // 1在用、2备用
                waterSourceType: 1, // 1地表水、2地下水
                place: item[0],
                waterTemperature: item[1],
                ph: item[2],
                dissolvedOxygen: item[3],
                permanganateIndex: item[4],
                cod: item[5],
                fiveDayBod: item[6],
                ammonia: item[7],
                totalPhosphorus: item[8],
                totalNitrogen: item[9],
                cu: item[10],
                zn: item[11],
                fluoride: item[12],
                se: item[13],
                as: item[14],
                hg: item[15],
                cd: item[16],
                cr: item[17],
                pb: item[18],
                cyanide: item[19],
                volatilePhenol: item[20],
                petro: item[21],
                anionicSurfactant: item[22],
                sulfide: item[23],
                fecalColiforms: item[24],
                sulfate: item[25],
                chloride: item[26],
                nitrateNitrogen: item[27],
                fe: item[28],
                mn: item[29],
                chcl3: item[30],
                ccl4: item[31],
                chbr3: item[32],
                ch2cl2: item[33],
                c2h4cl2: item[34],
                c3h5clO: item[35],
                c2h3cl: item[36],
                c2h2cl211: item[37],
                c2h2cl212: item[38],
                c2hcl3: item[39],
                c2cl4: item[40],
                c4h5cl: item[41],
                c4cl6: item[42],
                c8h8: item[43],
                ch2o: item[44],
                c2h4o: item[45],
                c3h4o: item[46],
                c2hcl3o: item[47],
                c6h6: item[48],
                c7h8: item[49],
                c8h10Ethylbenzene: item[50],
                c8h10Dimethylbenzene: item[51],
                c9h12: item[52],
                c6h5cl: item[53],
                c6h4cl212: item[54],
                c6h4cl214: item[55],
                c6h3cl3: item[56],
                c6h2cl4: item[57],
                c6cl6: item[58],
                c6h5no2: item[59],
                c6h4n2o4: item[60],
                c7h6n2o4: item[61],
                c7h5o6n3: item[62],
                c6h4clno2: item[63],
                c6h3cln2o4: item[64],
                c6h4cl2o: item[65],
                c6h3cl3o: item[66],
                c6hcl5o: item[67],
                c6h7n: item[68],
                c6h4nh22: item[69],
                c3h5no: item[70],
                c3h3n: item[71],
                c16h22o4: item[72],
                c16h35o4p: item[73],
                n2h4h2o: item[74],
                c8h20pd: item[75],
                c5h5n: item[76],
                turpentine: item[77],
                c6h3n3o7: item[78],
                butylXanthogenAcid: item[79],
                activeChlorine: item[80],
                c14h9cl5: item[81],
                c6h6cl6: item[82],
                c10h5cl7O: item[83],
                c10h14no5ps: item[84],
                c8h10o5nps: item[85],
                c10h19o6ps2: item[86],
                c5h12no3ps2: item[87],
                c4h7cl2o4p: item[88],
                c4h8cl3o4p: item[89],
                c8h19o3ps2: item[90],
                c8cl4n2: item[91],
                c12h11no2: item[92],
                c22h19br2no3: item[93],
                c8h14cln5: item[94],
                c20h12: item[95],
                ch3hg: item[96],
                c12h10Xclx: item[97],
                c49h74n10o12: item[98],
                p4: item[99],
                mo: item[100],
                co: item[101],
                be: item[102],
                b: item[103],
                sb: item[104],
                ni: item[105],
                ba: item[106],
                v: item[107],
                ti: item[108],
                tl: item[109],
                phosphate: item[110],
                acuteToxicity: item[111],
                residualChlorine: item[114],
            }
            return row;
        })

    },
    // 市级备用地表水 待修改 
    toCitySpareTopWaterObjData(excelData) {
        return excelData.map(item => {
            const row = {
                regionLevel: "市级",
                drinkingWaterType: 2, // 1在用、2备用
                waterSourceType: 1, // 1地表水、2地下水
                place: item[0],
                waterTemperature: item[1],
                ph: item[2],
                dissolvedOxygen: item[3],
                permanganateIndex: item[4],
                cod: item[5],
                fiveDayBod: item[6],
                ammonia: item[7],
                totalPhosphorus: item[8],
                totalNitrogen: item[9],
                cu: item[10],
                zn: item[11],
                fluoride: item[12],
                se: item[13],
                as: item[14],
                hg: item[15],
                cd: item[16],
                cr: item[17],
                pb: item[18],
                cyanide: item[19],
                volatilePhenol: item[20],
                petro: item[21],
                anionicSurfactant: item[22],
                sulfide: item[23],
                fecalColiforms: item[24],
                sulfate: item[25],
                chloride: item[26],
                nitrateNitrogen: item[27],
                fe: item[28],
                mn: item[29],
                chlorophyll: item[30],
                transparency: item[31],
                chcl3: item[32],
                ccl4: item[33],
                chbr3: item[34],
                ch2cl2: item[35],
                c2h4cl2: item[36],
                c3h5clO: item[37],
                c2h3cl: item[38],
                c2h2cl211: item[39],
                c2h2cl212: item[40],
                c2hcl3: item[41],
                c2cl4: item[42],
                c4h5cl: item[43],
                c4cl6: item[44],
                c8h8: item[45],
                ch2o: item[46],
                c2h4o: item[47],
                c3h4o: item[48],
                c2hcl3o: item[49],
                c6h6: item[50],
                c7h8: item[51],
                c8h10Ethylbenzene: item[52],
                c8h10Dimethylbenzene: item[53],
                c9h12: item[54],
                c6h5cl: item[55],
                c6h4cl212: item[56],
                c6h4cl214: item[57],
                c6h3cl3: item[58],
                c6h2cl4: item[59],
                c6cl6: item[60],
                c6h5no2: item[61],
                c6h4n2o4: item[62],
                c7h6n2o4: item[63],
                c7h5o6n3: item[64],
                c6h4clno2: item[65],
                c6h3cln2o4: item[66],
                c6h4cl2o: item[67],
                c6h3cl3o: item[68],
                c6hcl5o: item[69],
                c6h7n: item[70],
                c6h4nh22: item[71],
                c3h5no: item[72],
                c3h3n: item[73],
                c16h22o4: item[74],
                c16h35o4p: item[75],
                n2h4h2o: item[76],
                c8h20pd: item[77],
                c5h5n: item[78],
                turpentine: item[79],
                c6h3n3o7: item[80],
                butylXanthogenAcid: item[81],
                activeChlorine: item[82],
                c14h9cl5: item[83],
                c6h6cl6: item[84],
                c10h5cl7O: item[85],
                c10h14no5ps: item[86],
                c8h10o5nps: item[87],
                c10h19o6ps2: item[88],
                c5h12no3ps2: item[89],
                c4h7cl2o4p: item[90],
                c4h8cl3o4p: item[91],
                c8h19o3ps2: item[92],
                c8cl4n2: item[93],
                c12h11no2: item[94],
                c22h19br2no3: item[95],
                c8h14cln5: item[96],
                c20h12: item[97],
                ch3hg: item[98],
                c12h10Xclx: item[99],
                c49h74n10o12: item[100],
                p4: item[101],
                mo: item[102],
                co: item[103],
                be: item[104],
                b: item[105],
                sb: item[106],
                ni: item[107],
                ba: item[108],
                v: item[109],
                ti: item[110],
                tl: item[111],
                phosphate: item[112],
            }
            return row;
        })

    },
    // 县级在用地表水 待修改
    toCountyUseTopWaterObjData(excelData) {
        return excelData.map(item => {
            const row = {
                regionLevel: "县级",
                drinkingWaterType: 1, // 1在用、2备用
                waterSourceType: 1, // 1地表水、2地下水
                place: item[0],
                waterTemperature: item[1],
                ph: item[2],
                dissolvedOxygen: item[3],
                permanganateIndex: item[4],
                cod: item[5],
                fiveDayBod: item[6],
                ammonia: item[7],
                totalPhosphorus: item[8],
                totalNitrogen: item[9],
                cu: item[10],
                zn: item[11],
                fluoride: item[12],
                se: item[13],
                as: item[14],
                hg: item[15],
                cd: item[16],
                cr: item[17],
                pb: item[18],
                cyanide: item[19],
                volatilePhenol: item[20],
                petro: item[21],
                anionicSurfactant: item[22],
                sulfide: item[23],
                fecalColiforms: item[24],
                sulfate: item[25],
                chloride: item[26],
                nitrateNitrogen: item[27],
                fe: item[28],
                mn: item[29],
                chcl3: item[30],
                ccl4: item[31],
                chbr3: item[32],
                ch2cl2: item[33],
                c2h4cl2: item[34],
                c3h5clO: item[35],
                c2h3cl: item[36],
                c2h2cl211: item[37],
                c2h2cl212: item[38],
                c2hcl3: item[39],
                c2cl4: item[40],
                c4h5cl: item[41],
                c4cl6: item[42],
                c8h8: item[43],
                ch2o: item[44],
                c2h4o: item[45],
                c3h4o: item[46],
                c2hcl3o: item[47],
                c6h6: item[48],
                c7h8: item[49],
                c8h10Ethylbenzene: item[50],
                c8h10Dimethylbenzene: item[51],
                c9h12: item[52],
                c6h5cl: item[53],
                c6h4cl212: item[54],
                c6h4cl214: item[55],
                c6h3cl3: item[56],
                c6h2cl4: item[57],
                c6cl6: item[58],
                c6h5no2: item[59],
                c6h4n2o4: item[60],
                c7h6n2o4: item[61],
                c7h5o6n3: item[62],
                c6h4clno2: item[63],
                c6h3cln2o4: item[64],
                c6h4cl2o: item[65],
                c6h3cl3o: item[66],
                c6hcl5o: item[67],
                c6h7n: item[68],
                c6h4nh22: item[69],
                c3h5no: item[70],
                c3h3n: item[71],
                c16h22o4: item[72],
                c16h35o4p: item[73],
                n2h4h2o: item[74],
                c8h20pd: item[75],
                c5h5n: item[76],
                turpentine: item[77],
                c6h3n3o7: item[78],
                butylXanthogenAcid: item[79],
                activeChlorine: item[80],
                c14h9cl5: item[81],
                c6h6cl6: item[82],
                c10h5cl7O: item[83],
                c10h14no5ps: item[84],
                c8h10o5nps: item[85],
                c10h19o6ps2: item[86],
                c5h12no3ps2: item[87],
                c4h7cl2o4p: item[88],
                c4h8cl3o4p: item[89],
                c8h19o3ps2: item[90],
                c8cl4n2: item[91],
                c12h11no2: item[92],
                c22h19br2no3: item[93],
                c8h14cln5: item[94],
                c20h12: item[95],
                ch3hg: item[96],
                c12h10Xclx: item[97],
                c49h74n10o12: item[98],
                p4: item[99],
                mo: item[100],
                co: item[101],
                be: item[102],
                b: item[103],
                sb: item[104],
                ni: item[105],
                ba: item[106],
                v: item[107],
                ti: item[108],
                tl: item[109],
                phosphate: item[110],
                transparency: item[111],
                chlorophyll: item[112],
            }
            return row;
        })

    },
    //县级备用地表水 待修改
    toCountySpareTopWaterObjData(excelData) {
        return excelData.map(item => {
            const row = {
                regionLevel: "县级",
                drinkingWaterType: 2, // 1在用、2备用
                waterSourceType: 1, // 1地表水、2地下水
                place: item[0],
                waterTemperature: item[1],
                ph: item[2],
                dissolvedOxygen: item[3],
                permanganateIndex: item[4],
                cod: item[5],
                fiveDayBod: item[6],
                ammonia: item[7],
                totalPhosphorus: item[8],
                totalNitrogen: item[9],
                cu: item[10],
                zn: item[11],
                fluoride: item[12],
                se: item[13],
                as: item[14],
                hg: item[15],
                cd: item[16],
                cr: item[17],
                pb: item[18],
                cyanide: item[19],
                volatilePhenol: item[20],
                petro: item[21],
                anionicSurfactant: item[22],
                sulfide: item[23],
                fecalColiforms: item[24],
                sulfate: item[25],
                chloride: item[26],
                nitrateNitrogen: item[27],
                fe: item[28],
                mn: item[29],
                chcl3: item[30],
                ccl4: item[31],
                chbr3: item[32],
                ch2cl2: item[33],
                c2h4cl2: item[34],
                c3h5clO: item[35],
                c2h3cl: item[36],
                c2h2cl211: item[37],
                c2h2cl212: item[38],
                c2hcl3: item[39],
                c2cl4: item[40],
                c4h5cl: item[41],
                c4cl6: item[42],
                c8h8: item[43],
                ch2o: item[44],
                c2h4o: item[45],
                c3h4o: item[46],
                c2hcl3o: item[47],
                c6h6: item[48],
                c7h8: item[49],
                c8h10Ethylbenzene: item[50],
                c8h10Dimethylbenzene: item[51],
                c9h12: item[52],
                c6h5cl: item[53],
                c6h4cl212: item[54],
                c6h4cl214: item[55],
                c6h3cl3: item[56],
                c6h2cl4: item[57],
                c6cl6: item[58],
                c6h5no2: item[59],
                c6h4n2o4: item[60],
                c7h6n2o4: item[61],
                c7h5o6n3: item[62],
                c6h4clno2: item[63],
                c6h3cln2o4: item[64],
                c6h4cl2o: item[65],
                c6h3cl3o: item[66],
                c6hcl5o: item[67],
                c6h7n: item[68],
                c6h4nh22: item[69],
                c3h5no: item[70],
                c3h3n: item[71],
                c16h22o4: item[72],
                c16h35o4p: item[73],
                n2h4h2o: item[74],
                c8h20pd: item[75],
                c5h5n: item[76],
                turpentine: item[77],
                c6h3n3o7: item[78],
                butylXanthogenAcid: item[79],
                activeChlorine: item[80],
                c14h9cl5: item[81],
                c6h6cl6: item[82],
                c10h5cl7O: item[83],
                c10h14no5ps: item[84],
                c8h10o5nps: item[85],
                c10h19o6ps2: item[86],
                c5h12no3ps2: item[87],
                c4h7cl2o4p: item[88],
                c4h8cl3o4p: item[89],
                c8h19o3ps2: item[90],
                c8cl4n2: item[91],
                c12h11no2: item[92],
                c22h19br2no3: item[93],
                c8h14cln5: item[94],
                c20h12: item[95],
                ch3hg: item[96],
                c12h10Xclx: item[97],
                c49h74n10o12: item[98],
                p4: item[99],
                mo: item[100],
                co: item[101],
                be: item[102],
                b: item[103],
                sb: item[104],
                ni: item[105],
                ba: item[106],
                v: item[107],
                ti: item[108],
                tl: item[109],
                phosphate: item[110],
                transparency: item[111],
                chlorophyll: item[112],
            }
            return row;
        })

    },
    // 县级在用地下水 已可用
    toCountyUseBottomWaterObjData(excelData) {
        return excelData.map(item => {
            const row = {
                regionLevel: "县级",
                drinkingWaterType: 1, // 1在用、2备用
                county: item[0],
                place: item[1],
                waterSourceType: 2, // 1地表水、2地下水
                // monitorTime: moment(item[3], "YYYY年MM月DD日HH:mm").valueOf(),
                waterTemperature: item[4],
                chroma: item[5],
                smellAndTaste: item[6],
                turbidity: item[7],
                visibleNakedEye: item[8],
                ph: item[9],
                totalHardness: item[10],
                totalDissolvedSolids: item[11],
                sulfate: item[12],
                chloride: item[13],
                fe: item[14],
                mn: item[15],
                cu: item[16],
                zn: item[17],
                mo: item[18],
                co: item[19],
                volatilePhenol: item[20],
                anionicSurfactant: item[21],
                permanganateIndex: item[22],
                oxygenConsumption: item[23],
                nitrateNitrogen: item[24],
                nitriteNitrogen: item[25],
                ammonia: item[26],
                fluoride: item[27],
                lodide: item[28],
                cyanide: item[29],
                hg: item[30],
                as: item[31],
                se: item[32],
                cd: item[33],
                cr6: item[34],
                pb: item[35],
                be: item[36],
                ba: item[37],
                ni: item[38],
                c14h9cl5: item[39],
                c6h6cl6666: item[40],
                mpn: item[41],
                totalColiform: item[42],
                totalNumberBacteria: item[43],
                totalNumberColonies: item[44],
                totalAlphaRadioactivity: item[45],
                totalBetaRadioactivity: item[46],
                ai: item[47],
                sulfide: item[48],
                na: item[49],
                chcl3: item[50],
                ccl4: item[51],
                c6h6: item[52],
                c7h8: item[53],
                b: item[54],
                sb: item[55],
                ag: item[56],
                tl: item[57],
                ch2cl2: item[58],
                c2h4cl2: item[59],
                c2h3cl3111: item[60],
                c2h3cl3112: item[61],
                ch3chclch2cl: item[62],
                chbr3: item[63],
                c2h3cl: item[64],
                c2h2cl211: item[65],
                c2h2cl212: item[66],
                c2hcl3: item[67],
                c2cl4: item[68],
                c6h5cl: item[69],
                odcb: item[70],
                pdcp: item[71],
                c6h3cl3: item[72],
                c8h10Ethylbenzene: item[73],
                c8h10Dimethylbenzene: item[74],
                c8h8: item[75],
                c7h6n2o4: item[76],
                c7h6n2o426: item[77],
                c10h8: item[78],
                c14h10: item[79],
                c16h10: item[80],
                bbfa: item[81],
                bap: item[82],
                c12h10Xclx: item[83],
                c16h35o4p: item[84],
                c6h3cl3o246: item[85],
                c6hcl5o: item[86],
                c6h6cl6: item[87],
                c6cl6: item[88],
                c10h5cl7: item[89],
                c8h6cl2o3: item[90],
                c12h15no3: item[91],
                c7h14n2o2s: item[92],
                c4h7cl2o4p: item[93],
                c8h10o5nps: item[94],
                c10h19o6ps2: item[95],
                c5h12no3ps2: item[96],
                c9h11cl3no3ps: item[97],
                c8cl4n2: item[98],
                atrazine: item[99],
                c3h8no5p: item[100],
                // atrazine: item[103],
                // atrazine: item[104],
                // atrazine: item[105],
                // atrazine: item[106],
                // atrazine: item[107],
                // atrazine: item[108],
                // atrazine: item[109],
                // atrazine: item[110],
                // atrazine: item[111],
                // atrazine: item[112],
            }
            return row;
        })

    },
    importWaterWithdrawalData(excelData){
        return excelData.map(item => {
            const row = {
                place:item[0],
                waterWithdrawal:item[1],
            }
            return row;
        })
    }
}