{"remainingRequest":"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\\systemResults.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\systemResults.vue","mtime":1702263619964},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport filePreview from '@/components/FilePreview/filePreview.vue'\r\nimport apiList from '@/api/bigScreen/districView.js'\r\nimport utils from '@/utils.js'\r\nconst portal = window.context.portal\r\nimport pagenation from './pagenation.vue'\r\nexport default {\r\n components: {pagenation, filePreview},\r\n props: {\r\n options: {\r\n type: Object,\r\n default: () => {\r\n return {}\r\n },\r\n },\r\n },\r\n data() {\r\n return {\r\n previewUrl: `${portal}/file/onlinePreviewController/v1/getFileById_`,\r\n loadingColor: 'rgba(6, 46, 106, 0.4)',\r\n loading: false,\r\n tableData: [],\r\n currentRow: {},\r\n searchData: {},\r\n params: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0,\r\n showTotal: true,\r\n },\r\n params: {},\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'r.RESULT_FORM_',\r\n relation: 'AND',\r\n value: 1,\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'a.unit_code_',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'PILOT_LEVEL_',\r\n relation: 'AND',\r\n value: '1',\r\n },\r\n ],\r\n },\r\n paramsFile: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: -1,\r\n showTotal: true,\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'BIZ_ID_',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n ],\r\n },\r\n }\r\n },\r\n mounted() {\r\n if (this.$route.query.projectName) {\r\n this.searchData['p.pilot_Project_Name_'] =\r\n this.$route.query.projectName\r\n this.search()\r\n } else {\r\n this.loadData()\r\n }\r\n\r\n this.$bus.$on('changeDate', () => {\r\n this.loadData()\r\n })\r\n },\r\n beforeDestroy() {\r\n this.$bus.$off('changeDate')\r\n this.tableData = []\r\n this.currentRow = {}\r\n },\r\n methods: {\r\n search(data, type) {\r\n this.params.pageBean.page = 1\r\n let RESULT_FORM_ = this.params.querys[0]\r\n let UNIT_CODE_ = this.params.querys[1]\r\n let PILOT_LEVEL_ = this.params.querys[2]\r\n this.params.querys = [RESULT_FORM_, UNIT_CODE_, PILOT_LEVEL_]\r\n for (let key in this.searchData) {\r\n this.params.querys.push({\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: key,\r\n relation: 'AND',\r\n value: this.searchData[key],\r\n })\r\n }\r\n this.loadData()\r\n },\r\n currentChange(currentRow, oldCurrentRow) {\r\n // console.log(currentRow, oldCurrentRow)\r\n this.getFiles(currentRow)\r\n this.currentRow = currentRow\r\n },\r\n getDictName(code, value) {\r\n return utils.getDictName(code, value)\r\n },\r\n pageChange(key) {\r\n this.params.pageBean.page = key\r\n this.loadData()\r\n },\r\n expandChange(row, expandedRows) {\r\n console.log(row, expandedRows)\r\n if (row.fileList) return\r\n this.getFiles(row)\r\n },\r\n getFiles(row) {\r\n this.paramsFile.querys[0].value = row.id\r\n apiList.getFiles(this.paramsFile, (data) => {\r\n this.currentRow.fileList = data.rows\r\n })\r\n },\r\n handlePreview(file) {\r\n let id = file.fileId\r\n ? file.fileId\r\n : file.id\r\n ? file.id\r\n : file.response.fileId\r\n let type =\r\n file.fileType ||\r\n (file.extensionName\r\n ? file.extensionName\r\n : file.name.split('.')[1])\r\n this.$refs.filePreview.previewUrl = this.previewUrl + id\r\n this.$refs.filePreview.open(type)\r\n },\r\n // 文件下载\r\n handleDownloadFile(file) {\r\n console.log(file)\r\n let id = file.fileId\r\n ? file.fileId\r\n : file.id\r\n ? file.id\r\n : file.response.fileId\r\n window.open(portal + `/file/v1/downloadFile?fileId=${id}`, '_self')\r\n },\r\n loadData() {\r\n this.loading = true\r\n let {code, projectName} = this.$route.query\r\n let searchDate = sessionStorage.getItem('searchDate')\r\n searchDate = JSON.parse(searchDate)\r\n this.params.params = {\r\n year: searchDate.year,\r\n quarter: searchDate.quarter,\r\n }\r\n this.params.querys[1].value = code\r\n\r\n apiList.getPilotResultDetail(this.params, (res) => {\r\n if (res && res.rows) {\r\n this.tableData = res.rows\r\n this.params.pageBean.page = res.page\r\n this.params.pageBean.pageSize = res.pageSize\r\n this.params.pageBean.total = res.total\r\n if (this.tableData.length) {\r\n this.currentRow = this.tableData[0]\r\n this.$nextTick(() => {\r\n this.$refs.dataTable.setCurrentRow(\r\n this.$refs.dataTable.data[0]\r\n )\r\n this.getFiles(this.currentRow)\r\n })\r\n } else {\r\n this.currentRow = {}\r\n }\r\n }\r\n this.loading = false\r\n })\r\n },\r\n },\r\n}\r\n",null]}