{"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\\projectSubAchievementList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\projectSubAchievementList.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\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: 10,\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: 20,\n showTotal: true\n },\n infoData: {},\n isShow: 1,\n listType: 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.getResultList();\n });\n this.getResultList();\n this.$emit('searchDateChange');\n },\n methods: {\n currentChange: function currentChange(currentRow, oldCurrentRow) {\n this.currentRow = currentRow;\n this.handleDetail(currentRow);\n },\n getResultList: function getResultList() {\n var _this2 = this;\n\n this.loading = true;\n var searchDate = JSON.parse(sessionStorage.getItem('searchDate'));\n var _this$$route$query = this.$route.query,\n type = _this$$route$query.type,\n projectId = _this$$route$query.projectId;\n var type1 = type == 5 ? [4, 5] : [];\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 group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'm.id_',\n relation: 'AND',\n value: 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 _this2.tableData = res.rows.map(function (item) {\n item.createTime = moment(item.createTime).format('YYYY-MM-DD');\n return item;\n });\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\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 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 _this4 = 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 _this4.tableData = res.rows;\n _this4.params.pageBean.page = res.page;\n _this4.params.pageBean.pageSize = res.pageSize;\n _this4.params.pageBean.total = res.total;\n }\n\n _this4.loading = false;\n });\n }\n }\n};",null]}