{"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\\projectResultStatistics.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\projectResultStatistics.vue","mtime":1702263619948},{"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/es6.array.sort\";\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//\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport pagenation from \"./pagenation.vue\";\nimport apiList from '@/api/bigScreen/majorView.js';\nimport moment from 'moment';\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 listType: 0,\n columnIndexFixed: [0, 1],\n // 固定列序号\n // data1: [],\n // data2: []\n sum1: 0,\n sum2: 0,\n sum3: 0,\n sum4: 0\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.$bus.$on('changeDate', function (searchDate) {\n _this.reqResulZD(); // this.getResultList(this.$route.query.type)\n\n });\n this.reqResulZD(); // this.getResultList(this.$route.query.type)\n },\n created: function created() {\n this.$emit('searchDateChange');\n },\n methods: {\n reqResulZD: function reqResulZD() {\n var _this2 = this;\n\n this.loading = true;\n var data = JSON.parse(sessionStorage.getItem('searchDate'));\n apiList.getResultZD(data, function (res) {\n if (res) {\n _this2.sum1 = 0;\n _this2.sum2 = 0;\n _this2.sum3 = 0;\n _this2.sum4 = 0;\n _this2.tableData = res;\n res.forEach(function (item) {\n _this2.sum1 += item.systemNum;\n _this2.sum2 += item.nationwideNum;\n _this2.sum3 += item.mediaNum;\n _this2.sum4 += item.totalNum;\n });\n _this2.loading = false;\n }\n });\n },\n currentChange: function currentChange(currentRow, oldCurrentRow) {\n return;\n this.currentRow = currentRow;\n this.handleDetail(currentRow);\n },\n getResultList: function getResultList(type) {\n var _this3 = this;\n\n this.loading = true;\n var searchDate = JSON.parse(sessionStorage.getItem('searchDate'));\n var type1 = type == 5 ? [4, 5] : [];\n console.log(type1, 'type');\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: type1\n }]\n };\n data1.pageBean = this.pageBean;\n apiList.getResultList(data1, function (res) {\n if (res && res.rows) {\n _this3.params.pageBean.page = res.page;\n _this3.params.pageBean.pageSize = res.pageSize;\n _this3.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', _this3.tableData);\n\n if (_this3.tableData.length) {\n _this3.currentRow = _this3.tableData[0];\n\n _this3.$nextTick(function () {\n _this3.$refs.myTable.setCurrentRow(_this3.$refs.myTable.data[0]);\n });\n } else {\n _this3.currentRow = {};\n _this3.infoData = {};\n }\n\n _this3.getData(filterData);\n }\n\n _this3.loading = false;\n });\n },\n // handleDetail(row) {\n // apiList.getResultD(row.id, (res) => {\n // if (res) {\n // this.infoData = res\n // }\n // })\n // },\n handleDetail: function handleDetail(comp, projectId) {\n this.$router.push({\n path: '/DetailComponent',\n name: 'DetailComponent',\n query: {\n comp: comp,\n projectId: projectId\n }\n });\n },\n getData: function getData(filterData) {\n var _this4 = this;\n\n var data = JSON.parse(sessionStorage.getItem('searchDate'));\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 === item.projectId;\n });\n item.data2 = data2.filter(function (tem) {\n return tem.projectId === item.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]}