{"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":1711692597824},{"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":["import \"core-js/modules/es6.string.link\";\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//\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 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 value: 0,\n name: '年度'\n }],\n searchDateMonth: [{\n value: 1,\n name: '1月'\n }, {\n value: 2,\n name: '2月'\n }, {\n value: 3,\n name: '3月'\n }, {\n value: 4,\n name: '4月'\n }, {\n value: 5,\n name: '5月'\n }, {\n value: 6,\n name: '6月'\n }, {\n value: 7,\n name: '7月'\n }, {\n value: 8,\n name: '8月'\n }, {\n value: 9,\n name: '9月'\n }, {\n value: 10,\n name: '10月'\n }, {\n value: 11,\n name: '11月'\n }, {\n value: 12,\n name: '12月'\n }],\n showSelectYear: false,\n showSelectMonth: false,\n activeSearchDateYear: {\n value: 2023,\n name: '2023年'\n },\n activeSearchDateQuarter: {\n value: 1,\n name: '一季度'\n },\n activeSearchDateMonth: {\n value: 1,\n name: '一月'\n },\n searchDateYear: [],\n // 最后的标识符是为了跳转带参数方便拼接 不要删除\n tabsList: [{\n lable: '总览',\n value: 'dj',\n name: '0',\n link: 'http://23.99.8.1:8080/fvue/yddzl?'\n }, {\n lable: '党建',\n value: 'dj',\n name: '1',\n link: 'http://23.99.8.1:8080/fvue/ydddj?'\n }, {\n lable: '经济',\n value: 'jj',\n name: '2',\n link: 'http://23.99.219.238:10000/#/pages/index/index?report=jingji&'\n }, {\n lable: '平安',\n value: 'pa',\n name: '3',\n link: 'http://23.211.13.179:32000/#/questionListSeven?'\n }, {\n lable: '改革',\n value: 'gg',\n name: '4',\n link: 'http://23.99.8.2:8090/fvue/Jump?type=mobile&'\n }, {\n lable: '创新',\n value: 'cx',\n name: '5',\n link: 'http://23.99.220.103:8200/innovation-mobile/#/index?'\n }, {\n lable: '生态',\n value: 'st',\n name: '6',\n link: 'http://23.213.61.6:8077/h5?'\n }, {\n lable: '文化',\n value: 'wh',\n name: '7',\n link: 'http://23.99.8.168:8090/h5/index?'\n }, {\n lable: '民生',\n value: 'ms',\n name: '8',\n link: 'http://23.99.219.238:10000/#/pages/index/index?report=minsheng&'\n }],\n nowQuarter: {},\n month: null,\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.month = searchDate.month;\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 if (type == 'Quarter') {\n this.quarter = item.value;\n } else if (type == 'Month') {\n this.month = item.value;\n }\n\n var searchDate = {\n year: this.year,\n quarter: this.quarter,\n month: this.month\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(item, index) {\n var userinfo;\n userinfo = sessionStorage.getItem('eightPageUser');\n var query = \"skipflag=1&userinfo=\".concat(encodeURIComponent(userinfo));\n\n if (index !== 3) {\n console.log(item.link + query);\n window.location.href = item.link + query;\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 console.log(yearVal);\n var year, month, quarter, hanzi;\n\n if (yearVal) {\n year = yearVal;\n quarter = quarterVal;\n hanzi = quarterVal == '0' ? '年' : this.quarterFormatH(quarter) + '季';\n } else {\n year = new Date().getFullYear() - 1;\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 value: 0,\n name: '年度'\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]}