{"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\\tripartite\\buildBigScreen\\src\\page\\group\\top.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\tripartite\\buildBigScreen\\src\\page\\group\\top.vue","mtime":1675071992663},{"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":["import \"core-js/modules/es6.typed.uint8-array\";\nimport \"core-js/modules/es6.regexp.match\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es7.array.includes\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { uuid } from '@/tripartite/buildBigScreen/src/utils/utils';\nimport baseList from '@/tripartite/buildBigScreen/src/option/base';\nimport { updateComponent } from '@/tripartite/buildBigScreen/src/api/visual';\nimport result from \"./result\";\nimport report from '@/api/report.js';\nexport default {\n inject: ['contain'],\n provide: function provide() {\n return {\n contain: this.contain\n };\n },\n components: {\n result: result\n },\n data: function data() {\n return {\n baseList: baseList\n };\n },\n methods: {\n vaildData: function vaildData(id) {\n var list = [];\n\n for (var i = 0; i < 20; i++) {\n list.push(i + '');\n }\n\n return list.includes(id);\n },\n handleImg: function handleImg() {\n var _this = this;\n\n this.$confirm('是否导出大屏图片?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this.$Screenshot(document.querySelector('#wrapper')).then(function (canvas) {\n _this.downFile(canvas.toDataURL('image/jpeg', 0.8), new Date().getTime());\n\n _this.$message.success('图片导出成功');\n });\n }).catch(function () {});\n },\n handleView: function handleView() {\n this.contain.menuFlag = false;\n this.contain.handleInitActive();\n this.contain.setScale(document.body.clientWidth);\n },\n handleReset: function handleReset() {\n this.contain.menuFlag = true;\n this.contain.setScale(this.contain.contentWidth);\n },\n handleBuild: function handleBuild() {\n var _this2 = this;\n\n if (this.$route.params.id <= 100) {\n this.$message.error('模版例子不能修改');\n return;\n }\n\n this.contain.handleInitActive();\n var loading = this.$loading({\n lock: true,\n text: '正在保存配置,请稍后',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.7)'\n });\n this.$nextTick(function () {\n html2canvas(document.getElementById('content'), {\n useCORS: true,\n backgroundColor: null,\n allowTaint: true\n }).then(function (canvas) {\n function dataURLtoFile(dataurl, filename) {\n var arr = dataurl.split(','),\n mime = arr[0].match(/:(.*?);/)[1],\n bstr = atob(arr[1]),\n n = bstr.length,\n u8arr = new Uint8Array(n);\n\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n);\n }\n\n return new File([u8arr], filename, {\n type: mime\n });\n }\n\n var file = dataURLtoFile(canvas.toDataURL('image/jpeg', 0.1), new Date().getTime() + '.jpg');\n var formdata = new FormData();\n formdata.append('positiveFile', file); //请求上传图片\n\n report.uploadPhoto(formdata).then(function (res) {\n var data = res;\n var url = data.message; // console.log(this.contain, 'id')\n\n var bladeVisualConfigVo = {\n config: {\n component: JSON.stringify(_this2.contain.nav),\n detail: JSON.stringify(_this2.contain.config),\n id: _this2.contain.obj.config.id,\n // pkVal: this.contain.obj.visual.pkVal,\n // tenantId: this.contain.obj.visual.tenantId,\n visualId: _this2.contain.visual.id\n },\n visual: {\n backgroundUrl: url,\n category: _this2.contain.obj.visual.category,\n id: _this2.contain.visual.id,\n isDele: _this2.contain.obj.visual.isDele,\n // pkVal: this.contain.obj.visual.pkVal,\n status: _this2.contain.obj.visual.status,\n // tenantId: this.contain.obj.visual.tenantId,\n title: _this2.contain.obj.visual.title\n }\n }; // console.log(bladeVisualConfigVo, 'sdhadhiwqohdqiudiuwq')\n\n return report.updateBladeVisualConfigVo(bladeVisualConfigVo).then(function (res) {// this.contain.obj = bladeVisualConfigVo\n });\n }).then(function () {\n loading.close();\n\n _this2.$confirm('保存成功大屏配置, 是否打开预览?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n var routeUrl = _this2.$router.resolve({\n path: '/view/' + _this2.contain.id\n });\n\n window.open(routeUrl.href, '_blank');\n }).catch(function () {});\n }).catch(function () {\n _this2.$message.error('参数传递出错');\n\n loading.close();\n });\n });\n });\n },\n handleAdd: function handleAdd(option) {\n var first = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var obj = this.deepClone(option);\n obj.left = 0;\n obj.top = 0;\n obj.index = uuid();\n\n if (first) {\n this.contain.nav.unshift(obj);\n } else {\n this.contain.nav.push(obj);\n }\n },\n handleUndo: function handleUndo() {\n this.contain.editorUndo();\n },\n handleRedo: function handleRedo() {\n this.contain.editorRedo();\n }\n }\n};",null]}