{"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\\headline.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\BigScreen\\headline.vue","mtime":1706209714475},{"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":["import \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\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//\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//\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//\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 data: function data() {\n return {\n searchTime: moment().format('YYYY-MM'),\n sysName: '',\n logoUrl: '',\n menuData: [],\n workPlatMenu: [],\n showWorkPlat: false,\n timenow: '',\n daynow: '',\n weathernow: '',\n activeIndex: '1',\n weatherIcon: '',\n hournow: '',\n workPlatData: [],\n menuActived: '',\n timer: null,\n showWorkSys: false,\n showWorkSysMask: false,\n tollStationId: '',\n tollStationOptions: [] // 收费站数据\n\n };\n },\n mounted: function mounted() {\n this.menuActived = this.$route.name;\n this.getSysInfo();\n this.getTimeNow(); // this.getWeather()\n\n this.getMenu();\n },\n activated: function activated() {\n this.loadTollStation();\n this.menuActived = this.$route.name;\n this.tollStationId = sessionStorage.getItem('tollStationId');\n },\n methods: {\n showtip: function showtip() {\n this.$parent.showTip();\n },\n // 收费站\n loadTollStation: function loadTollStation() {\n var _this = this;\n\n var params = {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n };\n this.tollStationId = sessionStorage.getItem('tollStationId');\n routerManagement.queryTollStation(params).then(function (res) {\n var data = res.data;\n _this.tollStationOptions = data.rows || [];\n\n if (!_this.tollStationId) {\n _this.tollStationId = _this.tollStationOptions[0].id;\n sessionStorage.setItem('tollStationId', _this.tollStationId);\n\n _this.$emit('changeTollStation');\n }\n });\n },\n // 收费站信息\n changeTollStation: function changeTollStation(val) {\n sessionStorage.setItem('tollStationId', val);\n this.$emit('changeTollStation');\n },\n // 获取年月\n changeMonth: function changeMonth(val) {\n this.$emit('changeMonth', val.format('yyyy-MM'));\n this.showtip();\n },\n // 获取系统信息\n getSysInfo: function getSysInfo() {\n var _this2 = 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 _this2.sysName = tenantManage.nameFront;\n\n if (tenantManage.frontLogo) {\n var frontLogo = JSON.parse(tenantManage.frontLogo);\n\n if (frontLogo && frontLogo.length > 0) {\n _this2.logoUrl = window.context.portal + '/file/onlinePreviewController/v1/getFileById_' + frontLogo[0].id;\n var _sysinfo = {\n logoUrl: _this2.logoUrl,\n sysName: _this2.sysName\n };\n sessionStorage.setItem('sysinfo', JSON.stringify(_sysinfo));\n }\n }\n }\n });\n }\n },\n getWeather: function getWeather() {\n var _this3 = 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 _this3.weathernow = res.data.lives[0].weather;\n\n _this3.getWeatherIcon(_this3.weathernow);\n\n sessionStorage.setItem('weathernow', JSON.stringify(_this3.weathernow));\n }).catch(function (err) {\n console.log('err', err);\n });\n }\n },\n getMenu: function getMenu() {\n var _this4 = this;\n\n this.$store.dispatch('menu/actionFrontMenus').then(function (data) {\n var bigScreen = data && data.filter(function (item) {\n return item.alias === 'bigScreen';\n });\n\n if (bigScreen[0].children.length !== 0) {\n bigScreen[0].children.forEach(function (item) {\n if (item.alias != 'workPlat') {\n _this4.menuData.push(item);\n } else {\n _this4.workPlatMenu.push(item);\n }\n });\n if (_this4.workPlatMenu.length) _this4.showWorkPlat = true;\n }\n });\n },\n // 切换不同大屏菜单\n enterMenu: function enterMenu(alias) {\n if (alias == 'workPlat') {\n return;\n } else {\n this.$router.push({\n path: '/' + alias\n });\n }\n },\n // 切换工作台\n changeNormal: function changeNormal(item) {\n console.log('我切换了', item);\n\n if (item.alias == 'normal') {\n if (item.children[0].length !== 0 && item.children[0].children.length) {\n this.$router.push({\n path: \"/platLayout/\".concat(item.children[0].children[0].alias)\n });\n } else {\n this.$router.push({\n path: \"/platLayout/\".concat(item.children[0].alias)\n });\n }\n } else if (item.alias.indexOf('href') !== -1) {\n window.open(item.href, '_blank');\n }\n },\n // 其他系统\n handleSys: function handleSys() {\n var _this5 = this;\n\n // setTimeout(() => {\n // this.showWorkSysMask = !this.showWorkSysMask\n // }, 500)\n if (this.showWorkSysMask) {\n this.showWorkSys = !this.showWorkSys;\n setTimeout(function () {\n _this5.showWorkSysMask = false;\n }, 400);\n } else {\n this.showWorkSysMask = !this.showWorkSysMask;\n setTimeout(function () {\n _this5.showWorkSys = !_this5.showWorkSys;\n }, 100);\n }\n },\n // 退出登陆\n handleLogout: function handleLogout() {\n var _this6 = this;\n\n this.$store.dispatch('menu/clearMenus');\n this.$store.dispatch('user/clearUser');\n this.$store.dispatch('menu/setCopyMenus', []); //菜单\n\n var loginRouthPath = localStorage.getItem(this.$store.state.login.currentUser.account + 'loginRoutePath') || '/login';\n this.$store.dispatch('login/logoutAndCleanUp').then(function () {\n switch (window.ssoConfig.mode) {\n case 'cas':\n case 'oauth':\n window.sessionStorage.removeItem('currentUser');\n window.location.href = window.ssoConfig.logout + '?service=' + window.location.href.split('?')[0];\n break;\n\n default:\n _this6.$router.push({\n path: loginRouthPath\n });\n\n break;\n }\n });\n },\n // 实时获取\n getTimeNow: function getTimeNow() {\n var _this7 = this;\n\n this.daynow = moment().format('YYYY年MM月DD日');\n this.timenow = moment().format('HH:mm:ss');\n this.timer = setInterval(function () {\n _this7.timenow = moment().format('HH:mm:ss');\n }, 1000);\n },\n clear: function clear() {\n clearInterval(this.timer);\n },\n // 工作台二级菜单\n handleSelect: function handleSelect(key, keyPath) {\n console.log(key, keyPath);\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]}