{"remainingRequest":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\BigScreen\\headlineAI.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\BigScreen\\headlineAI.vue","mtime":1705604912221},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport commomAPI from '@/api/bigScreen/common.js';\nimport routerManagement from '@/api/BasicDataManagement/tollStationManagement.js';\nimport utils from '@/utils';\nimport moment from 'moment';\nexport default {\n name: 'bigScreen',\n props: {\n AITitle: {\n type: String,\n required: true\n }\n },\n data: function data() {\n return {\n sysName: '',\n logoUrl: '',\n timenow: '',\n daynow: '',\n weathernow: '',\n weatherIcon: '',\n hournow: '',\n timer: null\n };\n },\n mounted: function mounted() {\n this.getSysInfo();\n this.getTimeNow(); // this.getWeather()\n },\n activated: function activated() {},\n methods: {\n // 获取系统信息\n getSysInfo: function getSysInfo() {\n var _this = this;\n\n var sysinfo = sessionStorage.getItem('sysinfo');\n\n if (sysinfo) {\n sysinfo = JSON.parse(sysinfo);\n this.logoUrl = sysinfo.logoUrl;\n this.sysName = sysinfo.sysName;\n } else {\n var url = '${uc}/uc/tenantManage/v1/getTenantByCode?code=platform';\n this.$http.get(url).then(function (resp) {\n if (resp.data) {\n var tenantManage = resp.data;\n _this.sysName = tenantManage.nameFront;\n\n if (tenantManage.frontLogo) {\n var frontLogo = JSON.parse(tenantManage.frontLogo);\n\n if (frontLogo && frontLogo.length > 0) {\n _this.logoUrl = window.context.portal + '/file/onlinePreviewController/v1/getFileById_' + frontLogo[0].id;\n var _sysinfo = {\n logoUrl: _this.logoUrl,\n sysName: _this.sysName\n };\n sessionStorage.setItem('sysinfo', JSON.stringify(_sysinfo));\n }\n }\n }\n });\n }\n },\n getWeather: function getWeather() {\n var _this2 = this;\n\n var ss = sessionStorage.getItem('weathernow');\n\n if (ss) {\n this.getWeatherIcon(JSON.parse(ss));\n } else {\n commomAPI.queryWeather().then(function (res) {\n console.log('res', res); // console.log('获取的数据' + res.data.lives[0].weather)\n\n _this2.weathernow = res.data.lives[0].weather;\n\n _this2.getWeatherIcon(_this2.weathernow);\n\n sessionStorage.setItem('weathernow', JSON.stringify(_this2.weathernow));\n }).catch(function (err) {\n console.log('err', err);\n });\n }\n },\n // 退出登陆\n handleHomePage: function handleHomePage() {\n this.$router.push({\n path: '/homePage'\n });\n },\n // 实时获取\n getTimeNow: function getTimeNow() {\n var _this3 = this;\n\n this.daynow = moment().format('YYYY年MM月DD日');\n this.timenow = moment().format('HH:mm:ss');\n this.timer = setInterval(function () {\n _this3.timenow = moment().format('HH:mm:ss');\n }, 1000);\n },\n clear: function clear() {\n clearInterval(this.timer);\n },\n // 获取天气icon\n getWeatherIcon: function getWeatherIcon(weather) {\n this.hournow = moment().format('hh'); // 获取时间 判断半天黑夜\n\n this.weathernow = weather;\n\n if (this.hournow > 6 && this.hournow < 19 && this.weathernow == '晴') {\n this.weatherIcon = require('@/assets/img/weather/qing.png');\n } else if (this.hournow > 6 && this.hournow < 19 && this.weathernow == '多云的') {\n this.weatherIcon = require('@/assets/img/weather/duoyun.png');\n } else if (this.weathernow == '阴') {\n this.weatherIcon = require('@/assets/img/weather/yin.png');\n } else if (this.weathernow == '霾') {\n this.weatherIcon = require('@/assets/img/weather/yin.png');\n } else if (this.weathernow == '雷阵雨') {\n this.weatherIcon = require('@/assets/img/weather/leizhenyu.png');\n } else if (this.weathernow == '雨') {\n this.weatherIcon = require('@/assets/img/weather/xiaoyu.png');\n } else if (this.weathernow == '小雨') {\n this.weatherIcon = require('@/assets/img/weather/xiaoyu.png');\n } else if (this.weathernow == '中雨') {\n this.weatherIcon = require('@/assets/img/weather/zhongyu.png');\n } else if (this.weathernow == '大雨') {\n this.weatherIcon = require('@/assets/img/weather/dayu.png');\n } else if (this.weathernow == '暴雨') {\n this.weatherIcon = require('@/assets/img/weather/baoyu.png');\n } else if (this.weathernow == '大暴雨') {\n this.weatherIcon = require('@/assets/img/weather/baoyu.png');\n } else if (this.weathernow == '中雨-大雨' || this.weathernow == '小雨-中雨' || this.weathernow == '大雨-暴雨' || this.weathernow == '暴雨-大暴雨') {\n this.weatherIcon = require('@/assets/img/weather/dayu.png');\n } else if (this.weathernow.indexOf('风') != -1) {\n this.weatherIcon = require('@/assets/img/weather/dafeng.png');\n } else if (this.hournow < 6 && this.hournow > 19 && this.weathernow == '多云都') {\n this.weatherIcon = require('@/assets/img/weather/duoyunye.png');\n } else if (this.hournow < 6 && this.hournow > 19 && this.weathernow == '晴') {\n this.weatherIcon = require('@/assets/img/weather/qingye.png');\n } else {\n this.weatherIcon = require('@/assets/img/weather/yin.png');\n }\n },\n beforeDestroy: function beforeDestroy() {\n this.clear();\n }\n }\n};",null]}