{"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\\municipalPilotData.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\municipalPilotData.vue","mtime":1734588459027},{"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/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\nimport _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: 'municipalPilotData',\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 activeNames: ['1', '2'],\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: 'pilot_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: 'pilot_field_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'pilot_runway_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'r.PROPULSIVE_STATUS_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'm.lead_Unit_Name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'r.propulsive_Status_',\n relation: 'AND',\n value: ''\n }]\n },\n tableData: [],\n currentRow: {},\n fileList: [],\n searchData: {},\n previewUrl: '',\n propelData: {},\n groupList: [],\n demandRunwayOptions: [],\n groupData: [{\n groupName: '总计',\n pushNum: 0,\n finishNum: 0\n }],\n unitData: [// { unitName: '总计', totalNum: 0, finishNum: 0 }\n ],\n copyUnitData: [],\n clickTimes: 0,\n //记录点击次数\n unitLoading: false,\n searchShow: false,\n searchUnitName: '',\n exportLoading: false,\n json_fields: {\n 市级部门: 'unitName',\n 改革试点数: 'totalNum',\n 完成数: 'finishNum'\n }\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.$bus.$off('changeDate');\n },\n mounted: function mounted() {\n this.getData();\n this.getStatisticsData();\n },\n created: function created() {\n this.hanldeCommonSelect();\n this.groupList = utils.getDictItemsFromCache('zxxz').slice(0, -1);\n this.$emit('searchDateChange');\n },\n methods: {\n createExportData: function createExportData() {},\n downloadMunicipalPilot: function downloadMunicipalPilot() {\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.downloadMunicipalPilot(data, function (res) {\n _this.exportLoading = false;\n });\n },\n searchInputShow: function searchInputShow(e) {\n if (!e && this.searchUnitName) {\n this.searchUnitName = '';\n this.unitData = this.copyUnitData;\n this.getData(1);\n }\n\n this.searchShow = e;\n },\n unitSarch: function unitSarch() {\n var _this2 = this;\n\n this.unitData = this.unitData.filter(function (item) {\n return item.unitName.includes(_this2.searchUnitName);\n }); // this.getData()\n },\n listItemClick: function listItemClick(item, type, status, boole) {\n console.log(item, type, status, boole, '------');\n\n if (type === 'group') {\n if (item.groupName === '总计') {\n this.params.querys[1].value = '';\n } else {\n this.params.querys[1].value = item.groupName;\n }\n\n this.params.querys[5].value = '';\n } else {\n if (item.unitName === '总计') {\n this.params.querys[5].value = '';\n } else {\n this.params.querys[5].value = item.unitName;\n }\n\n this.params.querys[1].value = '';\n }\n\n this.params.querys[6].value = status;\n this.params.querys[6].operation = 'EQUAL';\n\n if (boole) {\n this.params.querys[6].operation = 'NOT_EQUAL';\n }\n\n this.getData(1);\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n getData: function getData(page) {\n var _this3 = this;\n\n this.tableLoading = true;\n\n if (page) {\n this.params.pageBean.page = 1;\n }\n\n apiList.getMunicipalPilotData(this.params, function (res) {\n if (res.rows.length) {\n _this3.tableData = res.rows; // this.tableData.forEach(item => {\n // item.pilotRange = item.pilotRange && item.pilotRange.split(',')\n // })\n // this.currentRow = this.tableData[0]\n // this.$nextTick(() => {\n // this.$refs.dataTable.setCurrentRow(\n // this.$refs.dataTable.data[0]\n // )\n // })\n } else {\n _this3.tableData = [];\n _this3.currentRow = {};\n _this3.propelData = {};\n }\n\n _this3.params.pageBean.total = res.total;\n _this3.tableLoading = false;\n });\n },\n getStatisticsData: function getStatisticsData() {\n var _this4 = this;\n\n this.unitLoading = true;\n apiList.getMunicipalPilotStatistics(function (res) {\n if (res) {\n _this4.groupData[0].pushNum = res.group.reduce(function (sum, item) {\n return sum + item.pushNum;\n }, 0);\n _this4.groupData[0].finishNum = res.group.reduce(function (sum, item) {\n return sum + item.finishNum;\n }, 0);\n _this4.groupData = [].concat(_toConsumableArray(_this4.groupData), _toConsumableArray(res.group)); // this.unitData[0].totalNum = res.dept.reduce((sum, item) => {\n // return sum + item.totalNum;\n // }, 0);\n // this.unitData[0].finishNum = res.dept.reduce((sum, item) => {\n // return sum + item.finishNum;\n // }, 0);\n // this.unitData = [...this.unitData, ...res.dept]\n\n _this4.unitData = res.dept;\n _this4.copyUnitData = res.dept;\n }\n\n _this4.unitLoading = false;\n });\n },\n currentChange: function currentChange(newRow) {\n var _this5 = this;\n\n if (newRow) {\n this.fileLoading = true;\n this.currentRow = newRow;\n var id = newRow.id,\n recId = newRow.recId;\n Promise.all([this.getFiles(id), this.getPropelDetails(recId)]).then(function () {\n _this5.fileLoading = false;\n });\n }\n },\n getFiles: function getFiles(id) {\n var _this6 = this;\n\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'BIZ_ID_',\n relation: 'AND',\n value: id\n }]\n };\n return new Promise(function (reslove) {\n apiList.getFiles(data, function (data) {\n _this6.currentRow.files = data.rows;\n reslove();\n });\n });\n },\n getPropelDetails: function getPropelDetails(id) {\n var _this7 = this;\n\n return new Promise(function (reslove) {\n apiList.getMunicipalPilotPropel(id, function (res) {\n if (res) {\n _this7.propelData = 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]}