{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MobileScreen\\HeadSection.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MobileScreen\\HeadSection.vue","mtime":1682688895005},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-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//\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//\nexport default {\n name: 'headSection',\n props: {\n pageName: {\n type: String,\n default: 'MajorProjects'\n }\n },\n data: function data() {\n return {\n currentKey: {\n name: '重大改革项目报表',\n path: '/MajorProjectsMobile',\n key: 'MajorProjectsMobile',\n changeKey: 'DistrictReformMobile',\n subName: '区县报表'\n },\n majorProjectsMobile: {\n name: '重大改革项目报表',\n path: '/MajorProjectsMobile',\n key: 'MajorProjectsMobile',\n changeKey: 'DistrictReformMobile',\n subName: '区县报表'\n },\n districtReformMobile: {\n name: '区县改革报表',\n path: '/DistrictReformMobile',\n key: 'DistrictReformMobile',\n changeKey: 'MajorProjectsMobile',\n subName: '重大项目'\n },\n showSelectQuarter: false,\n activeSearchDateQuarter: {\n value: 1,\n name: '一季度'\n },\n searchDateQuarter: [{\n value: 1,\n name: '一季度'\n }, {\n value: 2,\n name: '二季度'\n }, {\n value: 3,\n name: '三季度'\n }, {\n value: 4,\n name: '四季度'\n }],\n showSelectYear: false,\n activeSearchDateYear: {\n value: 2023,\n name: '2023年'\n },\n searchDateYear: [],\n tabsList: [{\n lable: '总览',\n value: 'dj',\n name: '0'\n }, {\n lable: '党建',\n value: 'dj',\n name: '1'\n }, {\n lable: '经济',\n value: 'jj',\n name: '2'\n }, {\n lable: '平安',\n value: 'pa',\n name: '4'\n }, {\n lable: '改革',\n value: 'gg',\n name: '3'\n }, {\n lable: '创新',\n value: 'cx',\n name: '5'\n }, {\n lable: '生态',\n value: 'st',\n name: '7'\n }, {\n lable: '民生',\n value: 'ms',\n name: '6'\n }],\n nowQuarter: {},\n year: null,\n quarter: null\n };\n },\n watch: {\n pageName: {\n handler: function handler(newVal, oldVal) {\n console.log(newVal);\n this.currentKey = this[\"\".concat(newVal, \"Mobile\")];\n },\n immediate: true\n }\n },\n mounted: function mounted() {\n this.initYearOption();\n var searchDate = sessionStorage.getItem('searchDate');\n\n if (searchDate) {\n searchDate = JSON.parse(searchDate);\n this.year = searchDate.year;\n this.quarter = searchDate.quarter;\n this.checkQuarter(this.year, this.quarter);\n } else {\n this.checkQuarter();\n }\n },\n methods: {\n changeMenu: function changeMenu(key) {\n this.$router.push({\n path: '/' + key\n });\n },\n handleSelectHidden: function handleSelectHidden() {\n this.showSelectQuarter = false;\n this.showSelectYear = false;\n },\n handleSelectDate: function handleSelectDate(i, item, type) {\n this[\"activeSearchDate\".concat(type)] = this[\"searchDate\".concat(type)][i];\n this[\"showSelect\".concat(type)] = !this[\"showSelect\".concat(type)];\n\n if (type == 'Year') {\n this.year = item.value;\n } else {\n this.quarter = item.value;\n }\n\n var searchDate = {\n year: this.year,\n quarter: this.quarter\n };\n sessionStorage.setItem('searchDate', JSON.stringify(searchDate));\n this.$bus.$emit('changeDate', searchDate);\n },\n handleSelectShow: function handleSelectShow(type) {\n this[\"showSelect\".concat(type)] = !this[\"showSelect\".concat(type)];\n },\n handClick: function handClick(index) {\n if (index == 0) {\n window.location.href = 'http://23.99.8.1:8080/fvue/yddzl';\n } else if (index == 1) {\n window.location.href = 'http://23.99.8.1:8080/fvue/ydddj';\n } else if (index == 2) {\n // 经济\n window.location.href = 'http://23.99.219.238:10000/#/?report=jingji';\n } else if (index == 3) {\n // 平安\n window.location.href = 'http://23.211.13.179:32000/#/questionListSeven';\n } else if (index == 4) {\n // 改革\n window.location.href = 'http://23.99.8.2:8090/fvue/MobileAuth';\n } else if (index == 5) {\n // 创新\n window.location.href = 'http://23.99.220.103:8200/innovation-mobile/#/index';\n } else if (index == 6) {\n // 生态\n window.location.href = 'http://23.213.61.6:8077/h5';\n } else if (index == 7) {\n // 民生\n window.location.href = 'http://23.99.219.238:10000/#/?report=minsheng';\n }\n },\n initYearOption: function initYearOption() {\n var year = new Date().getFullYear();\n\n for (var i = 0; i < 5; i++) {\n this.searchDateYear.push({\n value: year - i,\n name: year - i + '年'\n });\n }\n },\n checkQuarter: function checkQuarter(yearVal, quarterVal) {\n var year, month, quarter, hanzi;\n\n if (yearVal) {\n year = yearVal;\n quarter = quarterVal;\n hanzi = this.quarterFormatH(quarter);\n } else {\n year = new Date().getFullYear();\n month = new Date().getMonth() + 1;\n quarter = this.quarterFormat(month)[0];\n hanzi = this.quarterFormat(month)[1];\n } // 下拉框选中的季度\n\n\n this.activeSearchDateQuarter = {\n value: quarter,\n name: hanzi + '季度'\n };\n this.activeSearchDateYear = {\n value: year,\n name: year + '年'\n };\n this.quarter = quarter;\n this.year = year;\n },\n quarterFormatH: function quarterFormatH(quarter) {\n var hanzi;\n\n if (quarter == 1) {\n hanzi = '一';\n } else if (quarter == 2) {\n hanzi = '二';\n } else if (quarter == 3) {\n hanzi = '三';\n } else if (quarter == 4) {\n hanzi = '四';\n }\n\n return hanzi;\n },\n quarterFormat: function quarterFormat(month) {\n var quarter, hanzi;\n\n if (month <= 3) {\n quarter = 1;\n hanzi = '一';\n } else if (month <= 6) {\n quarter = 2;\n hanzi = '二';\n } else if (month <= 9) {\n quarter = 3;\n hanzi = '三';\n } else if (month <= 12) {\n quarter = 4;\n hanzi = '四';\n }\n\n return [quarter, hanzi];\n }\n }\n};",null]}