{"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\\reformPilot.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\reformPilot.vue","mtime":1686908308489},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.search\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 utils from '@/utils.js';\nimport apiList from '@/api/bigScreen/districView.js';\nimport EasyDialog from '@/views/BigScreen/components/easy-dialog/index.vue';\nimport pagenation from \"./pagenation.vue\";\nimport dialogComponents from '@/views/BigScreen/js/dialog_components.js';\nimport dialogConfig from '@/views/BigScreen/js/DistrictReformDialogConfig.js';\nexport default {\n components: _objectSpread(_objectSpread({\n pagenation: pagenation\n }, dialogComponents), {}, {\n EasyDialog: EasyDialog\n }),\n props: {\n tableOptions: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n searchMore: false,\n currentUnit: '',\n textempty: ' ',\n activeNames: ['1'],\n currentRow: {},\n demandRunwayOptions: [],\n loading: false,\n infoLoading: false,\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n tableData: [],\n showEasy: false,\n currentTabComponent: '',\n dialogOption: {\n dialogTitle: ''\n },\n searchData: {\n PILOT_LEVEL_: '',\n PILOT_PROJECT_NAME_: '',\n 'i.UNIT_NAME_': '',\n PILOT_FIELD_: '',\n PILOT_RUNWAY_: '',\n START_TIME_: [],\n 'm.UNIT_NAME_': '',\n 'm.PROPULSIVE_STATUS_': '',\n 'm.ACCEPTANCE_TIME_': ''\n },\n tempTableOptions: null,\n params: {\n pageBean: {\n page: 1,\n pageSize: 10,\n showTotal: true,\n total: 0\n },\n params: {},\n querys: [// {\n // group: 'main',\n // operation: 'EQUAL',\n // parentGroup: '',\n // property: 'PILOT_LEVEL_',\n // relation: 'AND',\n // value: 1,\n // },\n ]\n },\n unitInfo: {},\n unitData: {},\n downloading: false,\n currentUnitCode: '',\n startTime: '',\n endTime: ''\n };\n },\n mounted: function mounted() {\n this.demandRunwayOptions = this.getDemandData('1'); // let {code, type} = this.$route.query\n // this.unitInfo = {code, type}\n\n var _this$$route$query = this.$route.query,\n type = _this$$route$query.type,\n unitName = _this$$route$query.unitName,\n time = _this$$route$query.time;\n type && this.$set(this.searchData, 'PILOT_LEVEL_', type + '');\n unitName && this.$set(this.searchData, 'i.UNIT_NAME_', unitName);\n this.startTime = time && time[0];\n this.endTime = time && time[1];\n this.search();\n },\n // watch: {\n // 'tableOptions.type': {\n // handler: function(newValue) {\n // this.params.querys[0].value = newValue\n // this.params.pageBean.page = 1\n // this.params.pageBean.total = 0\n // this.params.pageBean.pageSize = 10\n // this.loadData()\n // },\n // immediate: true\n // },\n // 'tableOptions.code': {\n // handler: function(newValue) {\n // this.params.querys[1].value = newValue\n // this.params.pageBean.page = 1\n // this.params.pageBean.total = 0\n // this.params.pageBean.pageSize = 10\n // this.loadData()\n // },\n // immediate: true\n // }\n // },\n methods: {\n handleDistrict: function handleDistrict(district, currentRow) {\n this.currentUnit = district.unitName;\n this.currentUnitCode = district.unitCode;\n this.getPilotDetail(currentRow, district);\n },\n download: function download() {\n var _this = this;\n\n this.downloading = true;\n this.$message.warning('试点台账数据量较大,导出所需时间较长,请耐性等待......');\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n this.params.params.year = searchDate.year;\n this.params.params.quarter = searchDate.quarter;\n apiList.exportLedgerDetail(this.params).then(function (res) {\n _this.downloading = false;\n\n _this.$message.success('试点台账数据导出成功');\n });\n },\n handleDetail: function handleDetail(comp, projectName, code) {\n this.$router.push({\n path: '/DetailComponent',\n name: 'DetailComponent',\n query: {\n comp: comp,\n projectName: projectName,\n code: code\n }\n });\n },\n search: function search(data, type) {\n this.params.pageBean.page = 1;\n\n if (type == 'PILOT_FIELD_') {\n this.demandRunwayOptions = this.getDemandData(data);\n this.searchData.PILOT_RUNWAY_ = '';\n }\n\n this.params.querys = [];\n\n for (var key in this.searchData) {\n var operation = '';\n\n if (key == 'PILOT_PROJECT_NAME_' || key == 'i.UNIT_NAME_' || key == 'm.UNIT_NAME_') {\n operation = 'LIKE';\n } else if (key == 'PILOT_FIELD_' || key == 'PILOT_RUNWAY_' || key == 'PILOT_LEVEL_' || key == 'm.PROPULSIVE_STATUS_') {\n operation = 'EQUAL';\n } else if (key == 'START_TIME_') {\n if (this.startTime && this.endTime) {\n this.searchData['START_TIME_'] = [this.startTime, this.endTime];\n }\n\n operation = 'BETWEEN';\n } else if (key == 'm.ACCEPTANCE_TIME_') {\n operation = 'LESS_EQUAL';\n }\n\n this.params.querys.push({\n group: 'main',\n operation: operation,\n parentGroup: '',\n property: key,\n relation: 'AND',\n value: this.searchData[key]\n });\n }\n\n this.loadData();\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n currentChange: function currentChange(currentRow) {\n console.log(currentRow, 'currentRow');\n this.currentRow = currentRow;\n this.unitData = {};\n this.currentUnit = '';\n this.currentUnitCode = '';\n this.activeNames = ['1'];\n },\n loadData: function loadData() {\n var _this2 = this;\n\n this.loading = true;\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n this.params.params.year = searchDate.year;\n this.params.params.quarter = searchDate.quarter;\n apiList.getPilotLedgerDetail(this.params, function (res) {\n if (res && res.rows) {\n _this2.tableData = res.rows;\n _this2.params.pageBean.page = res.page;\n _this2.params.pageBean.total = res.total;\n _this2.params.pageBean.pageSize = res.pageSize;\n\n if (_this2.tableData.length) {\n _this2.currentRow = _this2.tableData[0];\n\n _this2.$nextTick(function () {\n _this2.$refs.myTable.setCurrentRow(_this2.$refs.myTable.data[0]);\n });\n } else {\n _this2.currentRow = {};\n }\n }\n\n _this2.loading = false;\n });\n },\n // 查询详情\n getPilotDetail: function getPilotDetail(row, district) {\n var _this3 = this;\n\n this.infoLoading = true;\n var data = {\n id: row.id,\n unitCode: district.unitCode\n };\n data = this.qs.stringify(data);\n apiList.pilotPushDetailforUnit(data, function (res) {\n if (res) {\n _this3.unitData = res;\n }\n\n _this3.infoLoading = false;\n _this3.activeNames = ['1', '2'];\n });\n },\n pageChange: function pageChange(key) {\n this.params.pageBean.page = key;\n this.loadData();\n },\n handleOpen: function handleOpen(type, item, row) {\n console.log(type, item, row);\n this.currentTabComponent = dialogConfig.dialogOption[type].componentName ? dialogConfig.dialogOption[type].componentName : type; // 动态组件名称\n\n this.tempTableOptions = {\n name: item.unitName,\n code: item.unitCode,\n id: row.id\n }; //table的查询参数\n\n var data = _objectSpread({\n dialogTitle: item.unitName + '改革试点详情'\n }, dialogConfig.dialogOption[type].option);\n\n this.dialogOption = data; //弹窗配置参数\n\n this.showEasy = true;\n },\n getDemandData: function getDemandData(val) {\n if (!val) val = '1';\n var data = null;\n var arr = utils.getDictItemsFromCache('ggbb_ssly');\n console.log(arr, 'getDemandData');\n arr.forEach(function (item) {\n if (item.value == val) {\n data = item.lowerDic['ggbb_sspd'];\n }\n });\n return data;\n }\n }\n};",null]}