{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\reportManagement\\ReportGraphic\\ReportGraphicDemo.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\reportManagement\\ReportGraphic\\ReportGraphicDemo.vue","mtime":1675071993069},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport report from '@/api/report.js';\nexport default {\n data: function data() {\n return {\n // 请求参数\n queryData: {\n pageNo: 1,\n pageSize: 10,\n reportType: 'chartinfo',\n name: '',\n token: ''\n },\n data: '',\n dialogVisible: false,\n time: '1',\n shareTempleData: '',\n form: {\n url: '',\n psd: ''\n },\n shareDialogVisible: false\n };\n },\n mounted: function mounted() {\n this.getReportData();\n },\n created: function created() {\n this.getToken();\n },\n methods: {\n //获取报表数据\n getReportData: function getReportData() {\n var _this = this;\n\n report.getReportDataTemple(this.queryData).then(function (res) {\n _this.data = res.result;\n });\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryData.pageSize = val;\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryData.pageNo = val;\n },\n //保存获取id\n save: function save() {\n var _this2 = this;\n\n report.save().then(function (res) {\n _this2.id = res.result.id;\n var url = \"\".concat(window.context.report, \"jmreport/index/\").concat(_this2.id);\n window.open(url, '_blank'); //新窗口打开\n // let a = document.getElementById('a')\n // a.href = 'http://192.168.40.190:8098/jmreport/index/' + this.id\n });\n },\n //查看报表数据\n seeView: function seeView(id) {\n console.log(id);\n return window.open(window.context.report + 'jmreport/view/' + id + '?token=' + this.queryData.token, '_blank');\n },\n //删除模板\n deleteTemple: function deleteTemple(id) {\n var _this3 = this;\n\n report.delete(id).then(function () {\n //重新获取数据\n _this3.getReportData();\n });\n },\n //复制模板\n copyTemple: function copyTemple(id) {\n var _this4 = this;\n\n report.copyTemple(id).then(function () {\n _this4.getReportData();\n });\n },\n //分享模板\n openShareTemple: function openShareTemple(id) {\n var _this5 = this;\n\n this.dialogVisible = true;\n report.shareTemple(id).then(function (res) {\n _this5.shareTempleData = res.result;\n });\n },\n shareTemple: function shareTemple() {\n var _this6 = this;\n\n this.shareTempleData.termOfValidity = this.time;\n this.dialogVisible = false;\n this.shareDialogVisible = true; //发起请求\n\n report.shareUrl(this.shareTempleData).then(function (res) {\n _this6.shareTempleData = res.result;\n _this6.form.url = window.context.report + _this6.shareTempleData.previewUrl.substring(1);\n _this6.form.psd = _this6.shareTempleData.previewLock;\n });\n },\n //点击复制按钮复制预览链接\n copyUrl: function copyUrl() {\n var url = document.getElementById('url'); //选中要复制的内容\n\n url.select(); //执行复制命令\n\n document.execCommand('Copy'); //执行浏览器复制命令\n },\n //设计\n design: function design(id) {\n return window.open(window.context.report + 'jmreport/index/' + id + '?token=' + this.queryData.token, '_blank');\n },\n handleClose: function handleClose(done) {\n done();\n },\n //搜索名称\n searchName: function searchName() {\n var _this7 = this;\n\n report.getReportDataTemple(this.queryData).then(function (res) {\n _this7.data = res.result;\n });\n },\n //获取tokren\n getToken: function getToken() {\n if (window.sessionStorage['currentUser']) {\n var currentUserInfo = eval('(' + window.sessionStorage['currentUser'] + ')'); // console.log(currentUserInfo.token);\n\n this.queryData.token = currentUserInfo.token; // console.log(queryData.token)\n\n return currentUserInfo.token;\n } else {\n return 'Bearer ';\n }\n }\n }\n};",null]}