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