{"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\\pilotAccount.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\pilotAccount.vue","mtime":1706670773018},{"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.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\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//\nvar portal = window.context.portal;\nimport utils from '@/utils.js';\nimport apiList from '@/api/bigScreen/districView.js';\nimport EasyDialog from '@/views/BigScreen/components/easy-dialog/index.vue';\nimport filePreview from '@/components/FilePreview/filePreview.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 filePreview: filePreview\n }),\n props: {\n tableOptions: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n previewUrl: \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\"),\n activeNames: ['2'],\n currentRow: {\n fileList: []\n },\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_PROJECT_NAME_: '',\n 'rec.PROPULSIVE_STATUS_': '',\n 'm.UNIT_NAME_': '',\n PILOT_FIELD_: '',\n PILOT_RUNWAY_: '',\n 'm.START_TIME_': ''\n },\n tempTableOptions: null,\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\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 group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'i.UNIT_CODE_',\n relation: 'AND',\n value: ''\n }]\n },\n prarmsFile: {\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: ''\n }]\n },\n unitInfo: {},\n unitData: {}\n };\n },\n mounted: function mounted() {\n this.demandRunwayOptions = this.getDemandData('1');\n var _this$$route$query = this.$route.query,\n code = _this$$route$query.code,\n type = _this$$route$query.type;\n this.unitInfo = {\n code: code,\n type: type\n };\n this.loadData();\n },\n methods: {\n getFiles: function getFiles(row) {\n var _this = this;\n\n this.prarmsFile.querys[0].value = row.id;\n apiList.getFiles(this.prarmsFile, function (data) {\n _this.$set(_this.currentRow, 'fileList', data.rows);\n });\n },\n handlePreview: function handlePreview(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n var type = file.fileType || (file.extensionName ? file.extensionName : file.name.split('.')[1]);\n this.$refs.filePreview.previewUrl = this.previewUrl + id;\n this.$refs.filePreview.open(type);\n },\n // 文件下载\n handleDownloadFile: function handleDownloadFile(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n window.open(portal + \"/file/v1/downloadFile?fileId=\".concat(id), '_self');\n },\n handleDetail: function handleDetail(comp, projectName) {\n var code = this.$route.query.code;\n this.$router.push({\n path: '/DetailComponent',\n name: 'DetailComponent',\n query: {\n comp: comp,\n code: code,\n projectName: projectName\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 var level = this.params.querys[0];\n var unitName = this.params.querys[1];\n this.params.querys = [level, unitName];\n\n for (var key in this.searchData) {\n var operation = '';\n\n if (key == 'PILOT_PROJECT_NAME_' || key == 'i.UNIT_CODE_' || key == 'm.UNIT_NAME_') {\n operation = 'LIKE';\n } else if (key == 'PILOT_FIELD_' || key == 'PILOT_RUNWAY_' || key == 'rec.PROPULSIVE_STATUS_') {\n operation = 'EQUAL';\n } else if (key == 'm.START_TIME_') {\n operation = 'BETWEEN';\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, oldCurrentRow) {\n this.currentRow = currentRow;\n this.getPilotDetail(currentRow);\n this.getFiles(currentRow);\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 || 4;\n this.params.params.type = 'nationalNum';\n this.params.querys[0].value = this.unitInfo.type;\n this.params.querys[1].value = this.unitInfo.code;\n apiList.pilotLedgerDetailSec(this.params).then(function (res) {\n if (res && res.rows) {\n var tempData = res.rows;\n tempData.forEach(function (item) {\n item.invs = item.invs.filter(function (unit) {\n return unit.unitCode == _this2.tableOptions.code;\n });\n });\n _this2.tableData = tempData;\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\n _this2.getFiles(_this2.currentRow);\n } else {\n _this2.currentRow = {};\n }\n }\n\n _this2.loading = false;\n });\n },\n // 查询详情\n getPilotDetail: function getPilotDetail(row) {\n var _this3 = this;\n\n this.infoLoading = true;\n var data = {\n id: row.id,\n unitCode: this.unitInfo.code\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 });\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 arr.forEach(function (item) {\n if (item.value == val) {\n data = item.lowerDic['ggbb_sspd'];\n }\n });\n return data;\n }\n }\n};",null]}