{"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\\BigScreen\\DetailComponentPage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\DetailComponentPage.vue","mtime":1745595352102},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/es6.array.sort\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.array.find\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 subPageComponents from '@/views/BigScreen/js/sub_page_components.js';\nimport subPage from '@/views/BigScreen/js/sub_page_config.js';\nimport apiList from '@/api/bigScreen/districView.js';\nimport screenHeader from '@/views/BigScreen/components/screenHeader.vue';\nimport previewExport from '@/views/BigScreen/components/subComponents/previewExport.vue';\nimport EasyDialog from '@/views/BigScreen/components/easy-dialog/index.vue';\nimport dialogConfig from '@/views/BigScreen/js/DistrictReformDialogConfig.js';\nimport req from '@/request.js';\nimport { getLsOrNotIndex } from \"./js/getIndex\";\nimport { debounce } from 'lodash';\nvar portal = window.context.portal;\nexport default {\n components: _objectSpread(_objectSpread({\n screenHeader: screenHeader,\n previewExport: previewExport\n }, subPageComponents), {}, {\n EasyDialog: EasyDialog\n }),\n data: function data() {\n return {\n currentKey: '',\n currentTabComponent: '',\n options: null,\n compData: null,\n title: '',\n showNav: true,\n viewBtn: false,\n reportBtn: false,\n allTable: [],\n json_fields: {},\n navData: [],\n quarter: null,\n year: null,\n plExport: false,\n cxzyExportLoading: false,\n exportName: '',\n lsIndex: [],\n noIndex: [],\n dialogOption: {\n dialogTitle: '',\n width: '50%'\n },\n showEasy: false,\n tableOptions: null,\n dilogComponent: '',\n comp: '',\n indexName: '',\n mapTargetAll: {},\n scoreKey: '',\n excelName: ''\n };\n },\n watch: {\n $route: 'debouncePoliyComp'\n },\n beforeDestroy: function beforeDestroy() {\n this.$bus.$off('changeDateComp');\n },\n created: function created() {\n this.currentKey = localStorage.getItem('currentKey');\n },\n mounted: function mounted() {\n var _this = this;\n\n var searchDate = sessionStorage.getItem('searchDate');\n var _this$$route$query = this.$route.query,\n comp = _this$$route$query.comp,\n name = _this$$route$query.name;\n this.comp = comp;\n\n if (searchDate) {\n searchDate = JSON.parse(searchDate);\n this.year = searchDate.year;\n this.quarter = searchDate.quarter;\n } else {\n this.checkQuarter();\n }\n\n this.$bus.$on('changeDateComp', function (searchDate) {\n _this.quarter = searchDate.quarter;\n _this.year = searchDate.year;\n\n _this.debouncePoliyComp();\n });\n\n if (name === '满意度') {\n this.reportBtn = true;\n }\n\n if (comp === 'innovationPromotion') {\n this.plExport = true;\n }\n\n this.debouncePoliyComp();\n this.$bus.$on('exportExcel', function (res) {\n _this.allTable = res;\n });\n },\n beforeRouteUpdate: function beforeRouteUpdate(to, from, next) {\n var _to$query = to.query,\n comp = _to$query.comp,\n name = _to$query.name;\n\n if (name === '满意度') {\n this.reportBtn = true;\n } else {\n this.reportBtn = false;\n }\n\n if (comp === 'innovationPromotion') {\n this.plExport = true;\n } else {\n this.plExport = false;\n }\n\n next();\n },\n methods: {\n frontDownload: function frontDownload() {\n console.log('this.excelName', this.excelName);\n var a = document.createElement('a'); // 创建一个标签\n\n a.href = \"./files/excel/\".concat(this.excelName);\n a.download = this.excelName; // 设置下载文件文件名\n\n a.style.display = 'none'; // 隐藏a标签\n\n document.body.appendChild(a); // 将a标签追加到文档对象中\n\n a.click(); // 模拟点击了a标签,会触发a标签的href的读取,浏览器就会自动下载了\n\n a.remove(); // 一次性的,用完就删除a标签\n },\n monthExportExcel: function monthExportExcel() {\n this.$bus.$emit('monthExportExcel', this.comp);\n },\n openSubDialog: function openSubDialog(type, dataOptions) {\n this.dilogComponent = dialogConfig.dialogOption[type].componentName ? dialogConfig.dialogOption[type].componentName : type; // 动态组件名称\n\n if (dataOptions) {\n this.tableOptions = _objectSpread(_objectSpread({}, dialogConfig.dialogOption[type].dataOptions), dataOptions);\n } else {\n this.tableOptions = dialogConfig.dialogOption[type].dataOptions; //table的查询参数\n }\n\n this.dialogOption = dialogConfig.dialogOption[type].option; //弹窗配置参数\n\n this.showEasy = true;\n },\n // 设置表格数据\n setExcelData: function setExcelData(quarterIndexData) {\n var name = this.$route.query.name;\n console.log(quarterIndexData.find(function (item) {\n return item.name === name;\n }));\n var indexObj = quarterIndexData.find(function (item) {\n return item.name === name;\n });\n var title = indexObj.title,\n tableColumn = indexObj.tableColumn,\n value = indexObj.value;\n this.scoreKey = value;\n this.exportName = title;\n var json_fields = {};\n tableColumn.forEach(function (item) {\n json_fields[item.label] = item.prop;\n });\n json_fields['分档'] = indexObj.grade;\n this.json_fields = json_fields;\n },\n // 设置导出的数据顺序\n createExportData: function createExportData() {\n var _this2 = this;\n\n return this.allTable.sort(function (a, b) {\n return b[_this2.scoreKey] - a[_this2.scoreKey];\n });\n },\n checkQuarter: function checkQuarter() {\n this.year = new Date().getFullYear();\n var month = new Date().getMonth() + 1;\n\n if (month <= 3) {\n this.quarter = 1;\n } else if (month <= 6) {\n this.quarter = 2;\n } else if (month <= 9) {\n this.quarter = 3;\n } else if (month <= 12) {\n this.quarter = 4;\n }\n },\n previewExport: function previewExport() {\n this.$refs.previewExport.open(this.lsIndex, this.mapTargetAll);\n },\n cxzyExport: function cxzyExport() {\n var _this3 = this;\n\n this.cxzyExportLoading = true;\n req.downloadPostCopy(portal + \"/county/largeScreen/v1/indexRankExport?quarter=\".concat(this.quarter, \"&year=\").concat(this.year)).then(function (res) {\n _this3.cxzyExportLoading = false;\n });\n },\n searchDateChange: function searchDateChange() {\n this.currentKey = 'MajorProjectsView';\n this.$forceUpdate();\n },\n handleBack: function handleBack() {\n var comp = this.$route.query.comp;\n\n if (comp.indexOf('mapTarget') == -1) {\n this.$router.back();\n } else {\n this.$router.push({\n path: '/DistrictReformView',\n name: 'DistrictReformView'\n });\n }\n },\n debouncePoliyComp: debounce(function () {\n this.poliyComp();\n }, 500),\n poliyComp: function poliyComp() {\n var _this4 = this;\n\n var _this$$route$query2 = this.$route.query,\n comp = _this$$route$query2.comp,\n name = _this$$route$query2.name,\n title = _this$$route$query2.title;\n this.indexName = name;\n\n var _JSON$parse = JSON.parse(sessionStorage.getItem('searchDate')),\n year = _JSON$parse.year,\n quarter = _JSON$parse.quarter;\n\n this.options = subPage.configOption[comp].options;\n\n if (comp === 'mapTarget') {\n apiList.getTarget({\n quarter: quarter,\n year: year\n }).then(function (res) {\n if (res.value) {\n var _getLsOrNotIndex = getLsOrNotIndex({\n quarter: quarter,\n year: year\n }),\n totalGear = _getLsOrNotIndex.totalGear,\n quarterIndexData = _getLsOrNotIndex.quarterIndexData;\n\n _this4.mapTargetAll = totalGear;\n quarterIndexData.forEach(function (item) {\n item.number = res.value[item.value] || 0;\n item.unitValue = res.value[item.unit] || '分';\n });\n var activeItem = quarterIndexData.find(function (item) {\n return item.name === name;\n });\n var sendData = activeItem && activeItem.number !== 0 ? activeItem : totalGear;\n\n if (sendData.excelName) {\n _this4.excelName = sendData.excelName;\n } else {\n _this4.excelName = '';\n }\n\n _this4.$bus.$emit('loadElement', sendData);\n\n _this4.title = activeItem && activeItem.number !== 0 ? activeItem.title : totalGear.title;\n\n if (!activeItem || activeItem.number === 0) {\n _this4.changeNav(totalGear);\n } // 季度晾晒指标\n\n\n _this4.lsIndex = quarterIndexData.filter(function (item) {\n return item.dryingOrNot;\n }) || []; // 季度非晾晒指标\n\n _this4.noIndex = quarterIndexData.filter(function (item) {\n return !item.dryingOrNot;\n }) || [];\n\n _this4.setExcelData([totalGear].concat(_toConsumableArray(quarterIndexData)));\n }\n });\n } else {\n if (title) {\n this.title = title;\n } else {\n this.title = this.options.title;\n }\n }\n\n this.currentTabComponent = subPage.configOption[comp].options.comp;\n },\n changeNav: function changeNav(nav) {\n if (nav.number || nav.name === \"改革报表分档结果\") {\n this.$bus.$emit('rightLoading');\n this.$router.push({\n path: '/DetailComponent',\n name: 'DetailComponent',\n query: {\n comp: 'mapTarget',\n name: nav.name\n }\n });\n }\n },\n handleSideNav: function handleSideNav() {\n this.showNav = !this.showNav;\n }\n }\n};",null]}