{"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\\reformDemandData.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\reformDemandData.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 \"core-js/modules/es6.array.find\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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/FileList.vue';\nimport pagenation from \"./pagenation.vue\";\nimport apiList from '@/api/bigScreen/majorView.js';\nimport utils from '@/utils.js';\nexport default {\n name: 'reformDemandData',\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: 'Project_Name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'group_Name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'project_Field_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'project_Runway_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'status_',\n relation: 'AND',\n value: -3\n }]\n },\n tableData: [],\n currentRow: {},\n fileList: [],\n searchData: {},\n previewUrl: '',\n detailsData: {},\n demandRunwayOptions: [],\n leadObj: {},\n xqUnits: [],\n groupData: [{\n groupName: '总计',\n cityDemandNum: 0,\n groupDemandNum: 0\n }],\n exportLoading: false,\n depLoading: false\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.$bus.$off('changeDate');\n },\n mounted: function mounted() {\n this.getData();\n this.getReformDemandStatistics();\n },\n created: function created() {\n this.hanldeCommonSelect();\n this.$emit('searchDateChange');\n },\n methods: {\n downloadReform: function downloadReform() {\n var _this = this;\n\n this.exportLoading = true;\n var data = JSON.parse(JSON.stringify(this.params));\n data.pageBean.pageSize = -1;\n apiList.downloadReform(data, function (res) {\n _this.exportLoading = false;\n });\n },\n listItemClick: function listItemClick(item, type, status) {\n if (item.groupName === '总计') {\n this.params.querys[1].value = '';\n } else {\n this.params.querys[1].value = item.groupName;\n }\n\n if (type === 'item') {\n this.params.querys[4].value = status;\n } else {\n this.params.querys[4].value = '';\n }\n\n this.getData(1);\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n getReformDemandStatistics: function getReformDemandStatistics() {\n var _this2 = this;\n\n this.depLoading = true;\n apiList.getReformDemandStatistics(function (res) {\n if (res) {\n _this2.groupData[0].cityDemandNum = res.group.reduce(function (sum, item) {\n return sum + item.cityDemandNum;\n }, 0);\n _this2.groupData[0].groupDemandNum = res.group.reduce(function (sum, item) {\n return sum + item.groupDemandNum;\n }, 0);\n _this2.groupData = [].concat(_toConsumableArray(_this2.groupData), _toConsumableArray(res.group));\n }\n\n _this2.depLoading = false;\n });\n },\n getData: function getData(page) {\n var _this3 = this;\n\n this.tableLoading = true;\n this.detailsData = {};\n\n if (page) {\n this.params.pageBean.page = 1;\n }\n\n apiList.getReformDemandData(this.params, function (res) {\n if (res.rows.length) {\n _this3.tableData = res.rows;\n\n _this3.tableData.forEach(function (item) {\n item.pilotRange = item.pilotRange && item.pilotRange.split(',');\n }); // this.currentRow = this.tableData[0]\n // this.$nextTick(() => {\n // this.$refs.dataTable.setCurrentRow(\n // this.$refs.dataTable.data[0]\n // )\n // })\n\n } else {\n _this3.tableData = [];\n _this3.currentRow = {};\n _this3.leadObj = {};\n _this3.xqUnits = [];\n }\n\n _this3.params.pageBean.total = res.total;\n _this3.tableLoading = false;\n });\n },\n currentChange: function currentChange(newRow) {\n var _this4 = this;\n\n if (newRow) {\n this.fileLoading = true;\n this.currentRow = newRow;\n var id = newRow.id;\n Promise.all([this.getPropelDetails(id)]).then(function () {\n _this4.fileLoading = false;\n });\n }\n },\n getPropelDetails: function getPropelDetails(id) {\n var _this5 = this;\n\n return new Promise(function (reslove) {\n apiList.getReformDemandDetails(id, function (res) {\n if (res) {\n _this5.leadObj = res.units.find(function (item) {\n return item.mainType == 1;\n });\n _this5.xqUnits = res.units.filter(function (item) {\n return item.mainType == 2;\n });\n _this5.detailsData = res;\n }\n\n reslove();\n });\n });\n },\n pageChange: function pageChange(key) {\n this.params.pageBean.page = key;\n this.getData();\n },\n hanldeCommonSelect: function hanldeCommonSelect(val) {\n if (!val) val = '1';\n var data = null;\n var arr = utils.getDictItemsFromCache('ggbb_ssly');\n arr.forEach(function (item) {\n if (item.value == val) {\n data = item.lowerDic['ggbb_sspd'];\n }\n });\n this.demandRunwayOptions = data;\n }\n }\n};",null]}