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