{"remainingRequest":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/Modules/ReportsList.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/Modules/ReportsList.vue","mtime":1701674859501},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js","mtime":1701674874357},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js","mtime":1701674874903}],"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\nimport { getReportsList, deleteReports } from \"@/service/ModulesApi.js\";\nimport {delMsg} from '@/utils/elementui'\nexport default {\n name: 'reportslist',\n data(){\n return{\n searchParams: {\n appId: \"\",\n moduleId: \"\",\n searchword: \"\",\n pageNo: 1,\n linesPerPage: 10\n },\n data: {},\n multipleSelectionId: [],\n multipleSelectionArray: [],\n tableHeight: 100,\n }\n },\n\n mounted(){\n this.getScollerHeight();\n let appId = sessionStorage.getItem(\"appId\");\n let moduleId = this.$route.query.moduleId;\n let searchParams = {\n ...this.searchParams,\n appId: appId,\n moduleId: moduleId\n }\n this.searchParams = searchParams;\n this.getReportsList();\n },\n\n methods:{\n \n /**\n * 动态计算页面table高度\n */\n getScollerHeight() {\n setTimeout(() => {\n let clientHeight = document.documentElement.clientHeight || document.body.clientHeight;\n //60 头部, 32 面包屑, 41 第一层页签, 50 列表标题, 71 查询, 20 父组件外边距, 40分页\n this.tableHeight = (clientHeight - 60 - 32 - 41 - 50 - 71 - 20 - 40) + 'px'\n }, 100)\n },\n\n /**\n * 获取表单列表\n */\n getReportsList(){\n getReportsList(this.searchParams, {\n onSucess: response => {\n if (response.data.errcode == 0) {\n this.data = response.data.data;\n }\n }\n })\n },\n /**\n * 重置查询名称值\n */\n resetName(){\n let searchParams = {\n ...this.searchParams,\n searchword: \"\",\n }\n this.searchParams = searchParams;\n this.getReportsList();\n },\n /**\n * 勾选行时响应\n */\n handleSelectionChange(val) {\n let multipleSelectionId = [];\n if(val.length){\n val.map((e) => {\n multipleSelectionId.push(e.id)\n })\n }\n this.multipleSelectionArray = val;\n this.multipleSelectionId = multipleSelectionId;\n },\n\n /**\n * 删除角色\n */\n async showDeleteConfirm(){\n let multipleSelectionId = this.multipleSelectionId;\n if(multipleSelectionId.length > 0){\n try{\n await delMsg(this.$t('msg.delConfirm'), this.$t('msg.tip'))\n const response = await deleteReports(multipleSelectionId);\n if (response.data.errcode == 0) {\n this.getReportsList();\n this.$message.success(this.$t('msg.del_ss'));\n }\n }catch(e){\n console.log(e)\n }\n }else{\n this.$message.error(this.$t('msg.check_data'))\n }\n\n },\n\n /**\n * 当前页\n */\n handleCurrentChange(val) {\n let searchParams = {\n ...this.searchParams,\n pageNo: val\n }\n this.searchParams = searchParams;\n this.getReportsList()\n },\n\n /**\n * 切换分页,每页显示多少条\n */\n handleSizeChange(val){\n let searchParams = {\n ...this.searchParams,\n linesPerPage: val\n }\n this.searchParams = searchParams;\n this.getReportsList()\n },\n\n /**\n * 选中数据源回显\n */\n onRowClick(row){\n this.$store.dispatch(\"rightHelpPageParams\", { title: this.$t('view.print_info'), url: \"application/application_module_print_info_help.html\" });\n this.$router.push({path: '/home/softwaresdetails/reports', query:{edit: true, moduleId: this.$route.query.moduleId, reportId: row.id}});\n },\n\n /**\n * 创建报表\n */\n createReports(){\n this.$store.dispatch(\"rightHelpPageParams\", { title: this.$t('view.print_info'), url: \"application/application_module_print_info_help.html\" });\n this.$router.push({path: '/home/softwaresdetails/reports', query:{edit: false, moduleId: this.$route.query.moduleId}});\n },\n\n },\n watch: {\n \"$store.state.rightHelpPageParams\": {\n handler() {\n if (this.$store.state.rightHelpFrame) {\n this.$store.state.rightHelpFrame.contentWindow.showHelpContentHtml(this.$store.state.rightHelpPageParams.title, this.$store.state.rightHelpPageParams.url);\n }\n },\n deep: true,\n },\n },\n}\n",null]}