{"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\\importantPlat.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\importantPlat.vue","mtime":1686282914844},{"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.regexp.search\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 filePreview from '@/components/FilePreview/filePreview.vue';\nimport apiList from '@/api/bigScreen/districView.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nimport pagenation from \"./pagenation.vue\";\nexport default {\n components: {\n pagenation: pagenation,\n filePreview: filePreview\n },\n props: {\n options: {\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 loadingColor: 'rgba(6, 46, 106, 0.4)',\n loading: false,\n tableData: [],\n currentRow: {},\n searchData: {},\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\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 group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'a.unit_code_',\n relation: 'AND',\n value: ''\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 unitCode: ''\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n if (this.$route.query.projectName) {\n this.searchData['p.pilot_Project_Name_'] = this.$route.query.projectName;\n this.search();\n } else {\n this.loadData();\n }\n\n this.$bus.$on('changeDate', function () {\n _this.loadData();\n });\n },\n beforeDestroy: function beforeDestroy() {\n this.tableData = [];\n this.currentRow = {};\n },\n methods: {\n search: function search(data, type) {\n this.params.pageBean.page = 1;\n var RESULT_FORM_ = this.params.querys[0];\n var UNIT_CODE_ = this.params.querys[1];\n this.params.querys = [RESULT_FORM_, UNIT_CODE_];\n\n for (var key in this.searchData) {\n this.params.querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: key,\n relation: 'AND',\n value: this.searchData[key]\n });\n }\n\n this.loadData();\n },\n currentChange: function currentChange(currentRow, oldCurrentRow) {\n // console.log(currentRow, oldCurrentRow)\n this.getFiles(currentRow);\n this.currentRow = currentRow;\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n pageChange: function pageChange(key) {\n this.params.pageBean.page = key;\n this.loadData();\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 var _this2 = this;\n\n this.paramsFile.querys[0].value = row.id;\n apiList.getFiles(this.paramsFile, function (data) {\n _this2.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.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 _this3 = this;\n\n this.loading = true;\n var code = this.$route.query.code;\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n this.params.params = {\n year: searchDate.year,\n quarter: searchDate.quarter\n };\n this.params.querys[1].value = code;\n apiList.getPilotResultDetail(this.params, function (res) {\n if (res && res.rows) {\n _this3.tableData = res.rows;\n _this3.params.pageBean.page = res.page;\n _this3.params.pageBean.pageSize = res.pageSize;\n _this3.params.pageBean.total = res.total;\n\n if (_this3.tableData.length) {\n _this3.currentRow = _this3.tableData[0];\n\n _this3.$nextTick(function () {\n _this3.$refs.dataTable.setCurrentRow(_this3.$refs.dataTable.data[0]);\n\n _this3.getFiles(_this3.currentRow);\n });\n } else {\n _this3.currentRow = {};\n }\n }\n\n _this3.loading = false;\n });\n }\n }\n};",null]}