{"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\\subComponents\\reformDataBase.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\reformDataBase.vue","mtime":1731008470955},{"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 _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/es6.set\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.array.sort\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 FileList from '@/components/uploadFile/newFileList.vue';\nimport pagenation from \"./pagenation.vue\";\nimport apiList from '@/api/bigScreen/majorView.js';\nimport utils from '@/utils.js';\nexport default {\n name: 'reformDataBase',\n components: {\n pagenation: pagenation,\n FileList: FileList\n },\n props: {\n tableOptions: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n loading: false,\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n tableLoading: false,\n fileLoading: false,\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'file_Name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'profile_Type_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'profile_Innovation_Classify_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'profile_Module_Classify_',\n relation: 'AND',\n value: ''\n }],\n sorter: []\n },\n tableData: [],\n fileTypeOptions: [],\n dataList: []\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.$bus.$off('changeDate');\n },\n mounted: function mounted() {\n this.getData(1);\n },\n created: function created() {\n var type = this.$route.query.type;\n this.params.querys[1].value = type;\n this.params.sorter = [{\n direction: type == 5 ? \"ASC\" : 'DESC',\n property: \"create_Time_\"\n }];\n var data = utils.getDictItemsFromCache('sjk_wjlx');\n this.fileTypeOptions = data.slice(0, -1);\n this.$emit('searchDateChange');\n },\n methods: {\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n getData: function getData(page) {\n var _this = this;\n\n this.tableLoading = true;\n this.params.pageBean.page = page;\n\n if (this.params.querys[1].value === '6') {\n this.params.pageBean.pageSize = -1;\n }\n\n apiList.getReformDataBase(this.params, function (res) {\n if (_this.params.querys[1].value === '6') {\n // this.tableData = res.rows\n res.rows.forEach(function (item, index) {\n var periodStr = item.fileName.replace(/[^0-9]/ig, \"\");\n item.year = periodStr.slice(0, 4);\n item.period = periodStr.slice(4, periodStr.length); // item.order = index + 1\n });\n var yearArr = Array.from(new Set(res.rows.map(function (item) {\n return item.year;\n }))).sort(function (a, b) {\n return b - a;\n });\n var arr = yearArr.map(function (year) {\n return res.rows.filter(function (item) {\n return item.year === year;\n }).sort(function (a, b) {\n return b.period - a.period;\n });\n });\n arr.forEach(function (item) {\n _this.dataList = [].concat(_toConsumableArray(_this.dataList), _toConsumableArray(item));\n });\n\n _this.dataList.forEach(function (item, index) {\n item.order = index + 1;\n });\n\n _this.tableData = _this.dataList.slice((page - 1) * 20, page * 20);\n _this.params.pageBean.pageSize = 20;\n _this.params.pageBean.total = res.rows.length;\n } else {\n _this.params.pageBean.total = res.total;\n _this.tableData = res.rows;\n }\n\n _this.tableLoading = false;\n });\n },\n pageChange: function pageChange(key) {\n var _this2 = this;\n\n if (this.params.querys[1].value === '6') {\n this.tableLoading = true;\n setTimeout(function () {\n _this2.$refs.dataTable.bodyWrapper.scrollTop = 0;\n _this2.tableData = _this2.dataList.slice((key - 1) * 20, key * 20);\n _this2.tableLoading = false;\n }, 1000);\n } else {\n this.getData(key);\n }\n }\n }\n};",null]}