{"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\\effectOfReformData.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\effectOfReformData.vue","mtime":1731008470940},{"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.string.iterator\";\nimport \"core-js/modules/es6.regexp.split\";\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\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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';\nimport selectProjectDialog from \"./selectProjectDialog.vue\";\nexport default {\n name: 'effectOfReformData',\n components: {\n pagenation: pagenation,\n FileList: FileList,\n selectProjectDialog: selectProjectDialog\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: 'c.EFFECT_CARD_TOPIC_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'c.group_name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'c.create_Org_Name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'specific_Details_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'project_id_',\n relation: 'AND',\n value: ''\n }]\n },\n tableData: [],\n currentRow: {},\n fileList: [],\n searchData: {},\n previewUrl: '',\n detailsData: {\n records: [{}],\n effectiveness: {}\n },\n groupList: [],\n demandRunwayOptions: [],\n leadObj: {},\n xqUnits: [],\n groupData: [{\n unitName: '总计',\n nationwideNum: 0\n }],\n unitData: [// { unitName: '总计', nationwideNum: 0 }\n ],\n copyUnitData: [],\n searchUnitName: '',\n searchShow: false,\n exportLoading: false,\n depLoading: false,\n json_fields: {\n 市级部门: 'unitName',\n 获全国性肯定评价: 'nationwideNum'\n },\n specificDetailsOptions: [],\n projectInfo: {}\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.$bus.$off('changeDate');\n },\n mounted: function mounted() {\n this.getData();\n this.getEffectOfReformStatistics();\n },\n created: function created() {\n this.hanldeCommonSelect();\n this.groupList = utils.getDictItemsFromCache('zxxz').slice(0, -1);\n this.getDemandData();\n this.$emit('searchDateChange');\n },\n methods: {\n clearProjectInfo: function clearProjectInfo() {\n this.projectInfo = {};\n this.params.querys[4].value = '';\n },\n handleCurrentChange1: function handleCurrentChange1(data) {\n this.projectInfo = data;\n this.params.querys[4].value = data.projectId;\n this.getData(1);\n },\n selectProject: function selectProject() {\n console.log(this.projectInfo);\n this.$refs.selectProjectDialog.open(this.projectInfo.projectId);\n },\n getDemandData: function getDemandData() {\n var _this = this;\n\n var arr = utils.getDictItemsFromCache('sj_ggcx_hkdfs');\n arr.forEach(function (item) {\n if (item.value == 1) {\n _this.specificDetailsOptions = item.lowerDic['sj_cxxs_jtqx'];\n }\n });\n },\n downloadEffect: function downloadEffect() {\n var _this2 = this;\n\n this.exportLoading = true;\n var data = JSON.parse(JSON.stringify(this.params));\n data.pageBean.pageSize = -1;\n apiList.downloadEffect(data, function (res) {\n _this2.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 _this3 = this;\n\n this.unitData = this.unitData.filter(function (item) {\n return item.unitName.includes(_this3.searchUnitName);\n }); // this.getData()\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n listItemClick: function listItemClick(item, type) {\n if (type === 'group') {\n if (item.unitName === '总计') {\n this.params.querys[1].value = '';\n } else {\n this.params.querys[1].value = item.unitName;\n }\n\n this.params.querys[2].value = '';\n } else {\n if (item.unitName === '总计') {\n this.params.querys[2].value = '';\n } else {\n this.params.querys[2].value = item.unitName;\n }\n\n this.params.querys[1].value = '';\n } // this.params.querys[2].value = item.unitName === '总计' ? '' : item.unitName\n\n\n this.getData(1);\n },\n getEffectOfReformStatistics: function getEffectOfReformStatistics() {\n var _this4 = this;\n\n this.depLoading = true; // this.unitData = []\n\n apiList.getEffectOfReformStatistics(function (res) {\n if (res) {\n _this4.groupData[0].nationwideNum = res.group.reduce(function (sum, item) {\n return sum + item.nationwideNum;\n }, 0);\n _this4.groupData = [].concat(_toConsumableArray(_this4.groupData), _toConsumableArray(res.group));\n _this4.copyGroupData = JSON.parse(JSON.stringify(_this4.unitData)); // this.unitData[0].nationwideNum = res.dept.reduce((sum, item) => {\n // return sum + item.nationwideNum;\n // }, 0);\n // this.unitData = [...this.unitData, ...res.dept]\n\n _this4.unitData = res.dept;\n _this4.copyUnitData = JSON.parse(JSON.stringify(_this4.unitData));\n }\n\n _this4.depLoading = false;\n });\n },\n getData: function getData(page) {\n var _this5 = this;\n\n this.tableLoading = true;\n this.detailsData = {\n effectiveness: {}\n };\n\n if (page) {\n this.params.pageBean.page = 1;\n }\n\n apiList.getEffectOfReformData(this.params, function (res) {\n if (res.rows.length) {\n _this5.tableData = res.rows;\n\n _this5.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 _this5.tableData = [];\n _this5.currentRow = {};\n _this5.leadObj = {};\n _this5.xqUnits = [];\n }\n\n _this5.params.pageBean.total = res.total;\n _this5.tableLoading = false;\n });\n },\n currentChange: function currentChange(newRow) {\n var _this6 = 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 _this6.fileLoading = false;\n });\n }\n },\n getPropelDetails: function getPropelDetails(id) {\n var _this7 = this;\n\n return new Promise(function (reslove) {\n apiList.getEffectOfReformDetails(id, function (res) {\n if (res) {\n _this7.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]}