{"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\\components\\innerTables\\reportPreview.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\innerTables\\reportPreview.vue","mtime":1685700611737},{"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.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 apiList from '@/api/bigScreen/districView.js';\nexport default {\n name: 'reportPreview',\n components: {},\n props: {\n tableOptions: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n dataReady: true,\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n loading: false,\n // 主城都市区编码\n mainCode: ['500103000000', '500112000000', '500108000000', '500106000000', '500104000000', '500107000000', '500105000000', '500113000000', '500109000000', '500119000000', '500192000000', '500117000000', '500151000000', '500120000000', '500118000000', '500111000000', '500153000000', '500115000000', '500102000000', '500152000000', '500116000000', '500191000000', '500110000000', '500113000000', '500193000000'],\n // 渝东北三峡库区城镇群\n northeastCode: ['500233000000', '500236000000', '500238000000', '500155000000', '500237000000', '500235000000', '500231000000', '500154000000', '500101000000', '500230000000', '500229000000'],\n // 渝东南武陵山区城镇群\n southeastCode: ['500114000000', '500241000000', '500156000000', '500240000000', '500242000000', '500243000000'],\n tableData: [],\n rowMergeIndex: [0, 22, 34]\n };\n },\n mounted: function mounted() {\n this.initData();\n },\n methods: {\n initData: function initData() {\n var _this = this;\n\n this.loading = true;\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n var data = this.qs.stringify({\n year: searchDate.year,\n quarter: searchDate.quarter\n });\n apiList.statementDetail(data, function (res) {\n var data = res || [];\n _this.tableData = data; // 主城都市区编码\n\n var mainList = _this.arrHasSameValue(data, _this.mainCode);\n\n var length1 = mainList.length + 1; // 渝东北三峡库区城镇群\n\n var northeastList = _this.arrHasSameValue(data, _this.northeastCode);\n\n var length2 = northeastList.length + 1 + length1; // 渝东南武陵山区城镇群\n\n var southeastList = _this.arrHasSameValue(data, _this.southeastCode); // this.tableData = [\n // {\n // unitName: '主城都市区',\n // areaType: 1,\n // },\n // ...mainList,\n // {\n // unitName: '渝东北三峡库区城镇群',\n // areaType: 1,\n // },\n // ...northeastList,\n // {\n // unitName: '渝东南武陵山区城镇群',\n // areaType: 1,\n // },\n // ...southeastList,\n // ]\n\n\n _this.rowMergeIndex = [0, length1, length2];\n _this.loading = false;\n });\n },\n // 找出两个数组相同的数据\n arrHasSameValue: function arrHasSameValue(arr1, arr2) {\n return arr1.filter(function (item) {\n if (arr2.indexOf(item.unitCode) > -1) {\n return item;\n }\n });\n },\n objectSpanMethod: function objectSpanMethod(_ref) {\n var row = _ref.row,\n column = _ref.column,\n rowIndex = _ref.rowIndex,\n columnIndex = _ref.columnIndex;\n\n if (this.rowMergeIndex.includes(rowIndex)) {\n if (columnIndex == 0) {\n return [1, 16];\n } else if (columnIndex !== 0) {\n return [0, 0];\n }\n }\n },\n download: function download() {\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n var data = this.qs.stringify({\n year: searchDate.year,\n quarter: searchDate.quarter\n });\n apiList.exportReport(data, function (res) {\n console.log(res);\n });\n }\n }\n};",null]}