{"remainingRequest":"D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js!D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\林谷智能项目\\yanchengPowerSupply\\src\\App.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\src\\App.vue","mtime":1689927995523},{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\babel.config.js","mtime":1689557787923},{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"core-js/modules/es6.regexp.split\";\nimport MinxinItem from \"./mixins\";\nimport axios from \"axios\";\nimport { getWather, Weather, getToken } from \"./api/index.js\";\nexport default {\n name: \"home\",\n mixins: [MinxinItem],\n data: function data() {\n return {\n addDay: \"\",\n subDay: \"\",\n backShow: false,\n routerTitle: [\"实时监测\", \"安全管控\", \"站房智辅\"],\n routerActive: 0,\n middleImg: require(\"./assets/indexN/titleText.png\"),\n weatherArr: [{\n day: \"今天\",\n temperature: \"\",\n pic: require(\"./assets/images/sun.png\")\n }, {\n day: \"昨天\",\n temperature: \"\",\n pic: require(\"./assets/images/union.png\")\n }, {\n day: \"明天\",\n temperature: \"\",\n pic: require(\"./assets/images/windy.png\")\n }],\n weekList: [\"周日\", \"周一\", \"周二\", \"周三\", \"周四\", \"周五\", \"周六\"],\n week: \"\",\n nowDate: ''\n };\n },\n mounted: function mounted() {\n var _this = this;\n // this.handleWather();\n var week = new Date(this.$moment().format(\"YYYY-MM-DD\")).getDay();\n this.week = this.weekList[week];\n this.getLoc();\n // let params = new URLSearchParams()\n // let params = {\n // appKey: \"symnzwxdfu1ul8raqrykgbld7zonktga\",\n // appSecret: \"a3tdb6nxfciekxcgcl94ljvtmw2lsafx\",\n // };\n // params.append('appKey','symnzwxdfu1ul8raqrykgbld7zonktga')\n // params.append('appSecret','a3tdb6nxfciekxcgcl94ljvtmw2lsafx')\n // getToken(params).then((res) => {\n // localStorage.setItem(\"token\", res.data.data.token);\n // // console.log(localStorage.getItem('token'),'token');\n // });\n // setInterval(()=>{\n // this. handleWather()\n // },480000)\n setInterval(function () {\n _this.nowDate = _this.$moment().format(\"HH:mm:ss\");\n }, 100);\n window.getLoc = this.getLoc;\n },\n methods: {\n getLoc: function getLoc() {\n var curWwwPath = window.document.location.href;\n console.log(\"curWwwPath\", curWwwPath);\n var paramArr = curWwwPath.split('/');\n var ele = paramArr.pop();\n console.log(\"ele\", ele);\n if (ele == 'index') {\n this.backShow = false;\n this.middleImg = require(\"./assets/indexN/titleText.png\");\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'stationBuilding') {\n this.middleImg = require(\"./assets/title/02.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"72%\";\n this.$refs.switchBtn.style.width = \"36%\";\n } else if (ele == 'twentyKV') {\n this.middleImg = require(\"./assets/title/03.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'thirtyFiveKV') {\n this.middleImg = require(\"./assets/title/04.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'powerQualityControl') {\n this.middleImg = require(\"./assets/title/05.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'ruralRevitalizationPower') {\n this.middleImg = require(\"./assets/title/07.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'enterprisePollutionMonitoring') {\n this.middleImg = require(\"./assets/title/08.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'ruralDomesticSewageTreatment') {\n this.middleImg = require(\"./assets/title/07.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'digitalFloodDrainageDroughtRelief') {\n this.middleImg = require(\"./assets/title/09.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n }\n },\n backBtn: function backBtn() {\n this.$router.push(\"/index\");\n },\n getDateSub: function getDateSub(n) {\n var day = this.$moment(new Date()).subtract(n, \"days\").format(\"YYYY-MM-DD\");\n this.subDay = day;\n return day;\n },\n getDateAdd: function getDateAdd(n) {\n var dd = new Date();\n dd.setDate(dd.getDate() + n); //获取n天后的日期\n // var y = dd.getFullYear();\n var m = dd.getMonth() + 1; //获取当前月份的日期\n if (m < 10) {\n m = \"0\" + m;\n }\n var d = dd.getDate();\n if (d < 10) {\n d = \"0\" + d;\n }\n var day = m + \"-\" + d;\n // this.addDay = day;\n return day;\n },\n getNewDate: function getNewDate() {\n var date = new Date();\n var month = date.getMonth() + 1; //获取当前月份的日期\n if (month < 10) {\n month = \"0\" + month;\n }\n var a = date.getDate();\n if (a < 10) {\n a = \"0\" + a;\n }\n var day = month + \"-\" + a;\n return day;\n },\n //天气\n handleWather: function handleWather() {\n var _this2 = this;\n // axios({url:\"http://www.jcznedu.com:5000/weather/prediction/?city=盐都&&limit=3\",methods:'GET'}).then(res=>{\n // })\n\n getWather().then(function (res) {\n // console.log(res, \"天气情况\");\n for (var i = 0; i < res.data.data.length; i++) {\n var item = res.data.data[i];\n // console.log(item.date);\n if (item.date == _this2.getNewDate()) {\n item.date = \"今天\";\n item.wendu = item.low + \"℃~\" + item.high + \"℃\";\n item.pic = _this2.Onweather(item.weather, i);\n } else if (item.date == _this2.getDateAdd(1)) {\n item.date = \"明天\";\n item.wendu = item.low + \"℃~\" + item.high + \"℃\";\n item.pic = _this2.Onweather(item.weather, i);\n } else if (item.date == _this2.getDateAdd(2)) {\n item.date = \"后天\";\n item.wendu = item.low + \"℃~\" + item.high + \"℃\";\n item.pic = _this2.Onweather(item.weather, i);\n }\n }\n // console.log(res.data.data);\n // 天气\n _this2.weatherArr = res.data.data;\n // console.log(this.weatherArr);\n // console.log(this.getNewDate(),'获取');\n });\n // Weather({\n // action: \"one\",\n // key: \"天气情况\",\n // }).then((res) => {\n // // console.log(res, \"天气情况\");\n // let toDay = this.$moment().format(\"D\");\n // this.getDateSub(1);\n // this.getDateAdd(1),\n // res.data.data.forEach((item, index) => {\n // if (item.第N天 == this.$moment(this.subDay).format(\"D\")) {\n // this.weatherArr[1].date = \"昨天\";\n // this.weatherArr[1].temperature =\n // item.最低温度 + \"℃\" + \"~\" + item.最高温度 + \"℃\";\n // this.Onweather(item.天气, 1);\n // } else if (item.第N天 == this.$moment(this.addDay).format(\"D\")) {\n // this.weatherArr[2].date = \"明天\";\n // this.weatherArr[2].temperature =\n // item.最低温度 + \"℃\" + \"~\" + item.最高温度 + \"℃\";\n // this.Onweather(item.天气, 2);\n // } else if (item.第N天 == toDay) {\n // this.weatherArr[0].date = \"今天\";\n // this.weatherArr[0].temperature =\n // item.最低温度 + \"℃\" + \"~\" + item.最高温度 + \"℃\";\n // this.Onweather(item.天气, 0);\n // }\n // });\n // });\n },\n //天气\n Onweather: function Onweather(name, index) {\n // console.log(name, \"名字\");\n if (name.includes('阴') || name.includes('多云')) {\n if (name.includes('雨')) {\n return require(\"./assets/weather/rain.png\");\n } else {\n return require(\"./assets/weather/Cloudy .png\");\n }\n }\n if (name.includes('小雨')) {\n return require(\"./assets/weather/rain.png\");\n }\n // console.log(index);\n switch (name) {\n case '风转阴':\n return require(\"./assets/weather/Cloudy .png\");\n case \"多云\":\n return require(\"./assets/weather/Cloudy .png\");\n case \"阴\":\n return require(\"./assets/weather/Cloudy .png\");\n case \"阴转多云\":\n return require(\"./assets/weather/Cloudy .png\");\n case \"暴雨\":\n return require(\"./assets/weather/rainstorm.png\");\n case \"冰雹\":\n return require(\"./assets/weather/hail.png\");\n case \"大风\":\n return require(\"./assets/weather/gale.png\");\n case \"大雪\":\n return require(\"./assets/weather/bigsnow.png\");\n case \"大雨\":\n return require(\"./assets/weather/bigrain.png\");\n case \"雷电\":\n return require(\"./assets/weather/thunder.png\");\n case \"雷阵雨\":\n return require(\"./assets/weather/shower.png\");\n case \"沙尘暴\":\n return require(\"./assets/weather/sand.png\");\n case \"晴\":\n return require(\"./assets/weather/sun.png\");\n case \"雾霾\":\n return require(\"./assets/weather/smog.png\");\n case \"小雪\":\n return require(\"./assets/weather/snow.png\");\n case \"小雨\":\n return require(\"./assets/weather/rain.png\");\n case \"雪\":\n return require(\"./assets/weather/rainlitter.png\");\n case \"多云\":\n return require(\"./assets/weather/night.png\");\n case \"雨夹雪\":\n return require(\"./assets/weather/rainsnow.png\");\n case \"月亮\":\n return require(\"./assets/weather/moon.png\");\n case \"中雪\":\n return require(\"./assets/weather/mieddlesnow.png\");\n case \"中雨\":\n return require(\"./assets/weather/middlerain.png\");\n case \"阴转雨\":\n return require(\"./assets/weather/rain.png\");\n case \"阴转晴\":\n return require(\"./assets/weather/Cloudy .png\");\n }\n },\n handleChange: function handleChange(index) {\n var that = this;\n this.routerActive = index;\n if (this.routerActive == 0) {\n if (this.$route.name != \"index\") {\n that.$router.push({\n name: \"index\"\n });\n }\n } else if (this.routerActive == 2) {\n that.$router.push({\n name: \"stationBuilding\"\n });\n }\n // else if (this.routerActive == 1) {\n // that.$router.push({ name: \"twentyKV\" });\n // } \n else if (this.routerActive == 1) {\n that.$router.push({\n name: \"thirtyFiveKV\"\n });\n }\n }\n }\n};",{"version":3,"mappings":";;;;AAwDA;AACA;AACA;AACA;EACAA;EACAC;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC,aACA;QACAC;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA,EACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IAAA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACAC;MACA;IACA;IACAC;EACA;EAEAC;IACAC;MACA;MACAC;MACA;MACA;MACAA;MACA;QACA;QACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;IAEA;IACAC;MACA;IACA;IACAC;MACA,mCACAC,oBACAC;MACA;MACA;IACA;IACAC;MACA;MACAC;MACA;MACA;MACA;QACAC;MACA;MACA;MACA;QACAC;MACA;MACA;MACA;MACA;IACA;IACAC;MACA;MACA;MACA;QACAC;MACA;MACA;MACA;QACAC;MACA;MACA;MACA;IACA;IACA;IACAC;MAAA;MACA;MACA;;MAEAC;QACA;QACA;UACA;UACA;UACA;YACAC;YACAA;YACAA;UACA;YACAA;YACAA;YACAA;UACA;YACAA;YACAA;YACAA;UACA;QACA;QACA;QACA;QACA;QACA;QACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACA;IACAC;MACA;MACA;QACA;UACA;QACA;UACA;QACA;MACA;MACA;QAEA;MAEA;MACA;MACA;QAEA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;MAAA;IAEA;IACAC;MACA;MACA;MACA;QACA;UACAC;YAAAtC;UAAA;QACA;MACA;QACAsC;UAAAtC;QAAA;MACA;MACA;MACA;MACA;MAAA,KACA;QACAsC;UAAAtC;QAAA;MACA;IACA;EACA;AACA","names":["name","mixins","data","addDay","subDay","backShow","routerTitle","routerActive","middleImg","weatherArr","day","temperature","pic","weekList","week","nowDate","mounted","setInterval","window","methods","getLoc","console","backBtn","getDateSub","subtract","format","getDateAdd","dd","m","d","getNewDate","month","a","handleWather","getWather","item","Onweather","handleChange","that"],"sourceRoot":"src","sources":["App.vue"],"sourcesContent":["\r\n\r\n\r\n\r\n"]}]}