{"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\\projectAchievementList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\projectAchievementList.vue","mtime":1704361981292},{"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.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.array.find-index\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.array.sort\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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';\nvar portal = window.context.portal;\nexport default {\n name: 'importantPlatform',\n components: {\n pagenation: pagenation,\n FileList: FileList\n },\n props: {\n options: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n currentRow: {},\n reqLoading: false,\n previewUrl: \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\"),\n loading: false,\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n tableData: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: -1,\n total: 0,\n showTotal: true\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'r.RESULT_FORM_',\n relation: 'AND',\n value: 2\n }]\n },\n paramsFile: {\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 pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n infoData: {},\n isShow: 1,\n columnIndexFixed: [0, 1],\n // 固定列序号\n projectId: ''\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.$bus.$off('changeDate');\n },\n mounted: function mounted() {\n var _this = this;\n\n // this.listType = this.$route.query.type\n this.projectId = this.$route.query.projectId;\n this.$bus.$on('changeDate', function (searchDate) {\n _this.getResultList(_this.$route.query.type);\n });\n this.getResultList(this.$route.query.type);\n },\n created: function created() {\n this.$emit('searchDateChange');\n },\n methods: {\n currentChange: function currentChange(currentRow, oldCurrentRow) {\n return;\n this.currentRow = currentRow;\n this.handleDetail(currentRow);\n },\n getResultList: function getResultList(type) {\n var _this2 = this;\n\n this.loading = true;\n var searchDate = JSON.parse(sessionStorage.getItem('searchDate'));\n var data1 = {\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 's.PLAN_YEAR_',\n // 字段名\n relation: 'AND',\n value: searchDate.year\n }, {\n group: 'main',\n operation: 'LESS_EQUAL',\n parentGroup: '',\n property: 's.PLAN_MONTH_',\n // 字段名\n relation: 'AND',\n value: searchDate.month\n }, {\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 's.PLAN_type_',\n relation: 'AND',\n value: [4, 5]\n }, {\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'm.id_',\n relation: 'AND',\n value: this.projectId\n }]\n };\n data1.pageBean = this.pageBean;\n apiList.getResultList(data1, function (res) {\n if (res && res.rows) {\n _this2.params.pageBean.page = res.page;\n _this2.params.pageBean.pageSize = res.pageSize;\n _this2.params.pageBean.total = res.total;\n var indexKey = 1;\n var projectNameArr = {};\n var dataRow = res.rows;\n dataRow = dataRow.sort(function (a, b) {\n return a.projectName.localeCompare(b.projectName, 'zh-CN');\n });\n dataRow = dataRow.map(function (item) {\n if (!projectNameArr[item.projectName]) {\n projectNameArr[item.projectName] = indexKey;\n item.indexKey = indexKey;\n projectNameArr[\"\".concat(item.projectName, \"childrenList\")] = [item.completedWork];\n } else {\n projectNameArr[\"\".concat(item.projectName, \"childrenList\")].push(item.completedWork);\n item.indexKey = projectNameArr[item.projectName];\n }\n\n item.childrenList = projectNameArr[\"\".concat(item.projectName, \"childrenList\")];\n return item;\n });\n var projectId = [];\n var filterData = [];\n dataRow.forEach(function (item) {\n if (!projectId.includes(item.projectId)) {\n projectId.push(item.projectId);\n filterData.push(item);\n }\n }); // this.tableData = filterData\n\n console.log('table', _this2.tableData);\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 _this2.infoData = {};\n }\n\n _this2.getData(filterData);\n }\n\n _this2.loading = false;\n });\n },\n handleDetail: function handleDetail(row) {\n var _this3 = this;\n\n apiList.getResultD(row.id, function (res) {\n if (res) {\n _this3.infoData = res;\n }\n });\n },\n getData: function getData(filterData) {\n var _this4 = this;\n\n var data = JSON.parse(sessionStorage.getItem('searchDate'));\n\n if (!filterData.length) {\n filterData = [{\n childrenList: []\n }];\n }\n\n data.projectId = this.projectId;\n apiList.getOtherResults(data, function (res) {\n if (res.length) {\n var data1 = res.filter(function (item) {\n return item.effectForm === 1;\n });\n var data2 = res.filter(function (item) {\n return item.effectForm === 2;\n });\n filterData.forEach(function (item) {\n item.data1 = data1.filter(function (tem) {\n return tem.projectId === _this4.projectId;\n });\n item.data2 = data2.filter(function (tem) {\n return tem.projectId === _this4.projectId;\n });\n });\n _this4.tableData = filterData;\n }\n });\n },\n pageChange: function pageChange() {\n this.getResultList(this.listType);\n },\n expandChange: function expandChange(row, expandedRows) {\n console.log(row, expandedRows);\n if (row.fileList) return;\n this.getFiles(row);\n },\n getFiles: function getFiles(row) {\n this.paramsFile.querys[0].value = row.id;\n apiList.getFiles(this.paramsFile, function (data) {\n row.fileList = data.rows;\n });\n var index = this.tableData.findIndex(function (item) {\n return item.id == row.id;\n });\n this.tableData.splice(index, 1, row);\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 console.log(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 loadData: function loadData() {\n var _this5 = this;\n\n this.loading = true;\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n this.params.params = {\n year: searchDate.year,\n quarter: searchDate.quarter\n }; // this.params.querys[1].value = searchDate.year\n // this.params.querys[2].value = searchDate.quarter\n\n apiList.getPilotResultDetail(this.params, function (res) {\n if (res && res.rows) {\n _this5.tableData = res.rows;\n _this5.params.pageBean.page = res.page;\n _this5.params.pageBean.pageSize = res.pageSize;\n _this5.params.pageBean.total = res.total;\n }\n\n _this5.loading = false;\n });\n }\n }\n};",null]}