{"remainingRequest":"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\\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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport FileList from '@/components/uploadFile/FileList.vue'\r\nimport pagenation from './pagenation.vue'\r\nimport apiList from '@/api/bigScreen/majorView.js'\r\nimport utils from '@/utils.js'\r\n\r\nexport default {\r\n name: 'municipalPilotData',\r\n components: {\r\n pagenation,\r\n FileList\r\n },\r\n props: {\r\n tableOptions: {\r\n type: Object,\r\n default: () => {\r\n return {}\r\n }\r\n }\r\n },\r\n data() {\r\n return {\r\n activeNames: ['1', '2'],\r\n loading: false,\r\n loadingColor: 'rgba(6, 46, 106, 0.4)',\r\n tableLoading: false,\r\n fileLoading: false,\r\n params: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0,\r\n showTotal: true\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'pilot_Project_Name_',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'group_Name_',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'pilot_field_',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'pilot_runway_',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'r.PROPULSIVE_STATUS_',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'm.lead_Unit_Name_',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'r.propulsive_Status_',\r\n relation: 'AND',\r\n value: ''\r\n }\r\n ]\r\n },\r\n tableData: [],\r\n currentRow: {},\r\n fileList: [],\r\n searchData: {},\r\n previewUrl: '',\r\n propelData: {},\r\n groupList: [],\r\n demandRunwayOptions: [],\r\n groupData: [{groupName: '总计', pushNum: 0, finishNum: 0}],\r\n unitData: [\r\n // { unitName: '总计', totalNum: 0, finishNum: 0 }\r\n ],\r\n copyUnitData: [],\r\n clickTimes: 0, //记录点击次数\r\n unitLoading: false,\r\n searchShow: false,\r\n searchUnitName: '',\r\n exportLoading: false,\r\n json_fields: {\r\n 市级部门: 'unitName',\r\n 改革试点数: 'totalNum',\r\n 完成数: 'finishNum'\r\n }\r\n }\r\n },\r\n beforeDestroy() {\r\n this.$bus.$off('changeDate')\r\n },\r\n mounted() {\r\n this.getData()\r\n this.getStatisticsData()\r\n },\r\n created() {\r\n this.hanldeCommonSelect()\r\n this.groupList = utils.getDictItemsFromCache('zxxz').slice(0, -1)\r\n this.$emit('searchDateChange')\r\n },\r\n methods: {\r\n createExportData() {},\r\n downloadMunicipalPilot() {\r\n this.exportLoading = true\r\n let data = JSON.parse(JSON.stringify(this.params))\r\n data.pageBean.pageSize = -1\r\n apiList.downloadMunicipalPilot(data, res => {\r\n this.exportLoading = false\r\n })\r\n },\r\n searchInputShow(e) {\r\n if (!e && this.searchUnitName) {\r\n this.searchUnitName = ''\r\n this.unitData = this.copyUnitData\r\n this.getData(1)\r\n }\r\n this.searchShow = e\r\n },\r\n unitSarch() {\r\n this.unitData = this.unitData.filter(item =>\r\n item.unitName.includes(this.searchUnitName)\r\n )\r\n // this.getData()\r\n },\r\n listItemClick(item, type, status, boole) {\r\n console.log(item, type, status, boole, '------')\r\n if (type === 'group') {\r\n if (item.groupName === '总计') {\r\n this.params.querys[1].value = ''\r\n } else {\r\n this.params.querys[1].value = item.groupName\r\n }\r\n this.params.querys[5].value = ''\r\n } else {\r\n if (item.unitName === '总计') {\r\n this.params.querys[5].value = ''\r\n } else {\r\n this.params.querys[5].value = item.unitName\r\n }\r\n this.params.querys[1].value = ''\r\n }\r\n this.params.querys[6].value = status\r\n this.params.querys[6].operation = 'EQUAL'\r\n if (boole) {\r\n this.params.querys[6].operation = 'NOT_EQUAL'\r\n }\r\n\r\n this.getData(1)\r\n },\r\n getDictName(code, value) {\r\n return utils.getDictName(code, value)\r\n },\r\n getData(page) {\r\n this.tableLoading = true\r\n if (page) {\r\n this.params.pageBean.page = 1\r\n }\r\n apiList.getMunicipalPilotData(this.params, res => {\r\n if (res.rows.length) {\r\n this.tableData = res.rows\r\n // this.tableData.forEach(item => {\r\n // item.pilotRange = item.pilotRange && item.pilotRange.split(',')\r\n // })\r\n // this.currentRow = this.tableData[0]\r\n // this.$nextTick(() => {\r\n // this.$refs.dataTable.setCurrentRow(\r\n // this.$refs.dataTable.data[0]\r\n // )\r\n // })\r\n } else {\r\n this.tableData = []\r\n this.currentRow = {}\r\n this.propelData = {}\r\n }\r\n this.params.pageBean.total = res.total\r\n this.tableLoading = false\r\n })\r\n },\r\n getStatisticsData() {\r\n this.unitLoading = true\r\n apiList.getMunicipalPilotStatistics(res => {\r\n if (res) {\r\n this.groupData[0].pushNum = res.group.reduce((sum, item) => {\r\n return sum + item.pushNum\r\n }, 0)\r\n this.groupData[0].finishNum = res.group.reduce((sum, item) => {\r\n return sum + item.finishNum\r\n }, 0)\r\n this.groupData = [...this.groupData, ...res.group]\r\n // this.unitData[0].totalNum = res.dept.reduce((sum, item) => {\r\n // return sum + item.totalNum;\r\n // }, 0);\r\n // this.unitData[0].finishNum = res.dept.reduce((sum, item) => {\r\n // return sum + item.finishNum;\r\n // }, 0);\r\n // this.unitData = [...this.unitData, ...res.dept]\r\n this.unitData = res.dept\r\n this.copyUnitData = res.dept\r\n }\r\n this.unitLoading = false\r\n })\r\n },\r\n currentChange(newRow) {\r\n if (newRow) {\r\n this.fileLoading = true\r\n this.currentRow = newRow\r\n let {id, recId} = newRow\r\n Promise.all([this.getFiles(id), this.getPropelDetails(recId)]).then(\r\n () => {\r\n this.fileLoading = false\r\n }\r\n )\r\n }\r\n },\r\n getFiles(id) {\r\n let data = {\r\n pageBean: {\r\n page: 1,\r\n pageSize: -1,\r\n showTotal: true\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'BIZ_ID_',\r\n relation: 'AND',\r\n value: id\r\n }\r\n ]\r\n }\r\n return new Promise(reslove => {\r\n apiList.getFiles(data, data => {\r\n this.currentRow.files = data.rows\r\n reslove()\r\n })\r\n })\r\n },\r\n getPropelDetails(id) {\r\n return new Promise(reslove => {\r\n apiList.getMunicipalPilotPropel(id, res => {\r\n if (res) {\r\n this.propelData = res\r\n }\r\n reslove()\r\n })\r\n })\r\n },\r\n pageChange(key) {\r\n this.params.pageBean.page = key\r\n this.getData()\r\n },\r\n hanldeCommonSelect(val) {\r\n if (!val) val = '1'\r\n let data = null\r\n let arr = utils.getDictItemsFromCache('ggbb_ssly')\r\n arr.forEach(item => {\r\n if (item.value == val) {\r\n data = item.lowerDic['ggbb_sspd']\r\n }\r\n })\r\n this.demandRunwayOptions = data\r\n }\r\n }\r\n}\r\n",null]}