{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--13-0!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/assets/js/qrcodeMethod.js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/assets/js/qrcodeMethod.js","mtime":1725957645672},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/babel.config.js","mtime":1725957645200},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.split\";\nimport QRCode from 'qrcodejs2';\nimport store from \"../../store\";\nexport default function (field, id, qrcodeViewSize, path) {\n var text = '';\n var host = window.location.protocol + \"//\" + window.location.host;\n var domainId = store.state.domainId;\n var uuid = \"\";\n var len = 16;\n var chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678';\n var maxPos = chars.length;\n for (var i = 0; i < len; i++) {\n uuid += chars.charAt(Math.floor(Math.random() * maxPos));\n }\n var randomCode = uuid;\n switch (field.handleType) {\n case \"text\":\n {\n //显示值\n text = field.value || ' ';\n if (text.indexOf(\"?\") > -1) {\n var v = text.split(\"?\");\n text = v[0] + \"?\" + v[1]; //encodeURIComponent(v[1])\n }\n // text = encodeURI(text)\n break;\n }\n case \"link\": //打开链接\n case \"callback_event\":\n {\n //执行扫码事件回调脚本\n var formId = field.formId,\n docId = field.docId,\n fieldId = field.divId,\n applicationId = field.appId;\n text = host + path + \"/portal/document/qrcodefield/ready?domainId=\" + domainId + \"&formId=\" + formId + \"&docId=\" + docId + \"&fieldId=\" + fieldId + \"&applicationId=\" + applicationId + \"&_randomCode=\" + randomCode;\n break;\n }\n default:\n break;\n }\n var width, height;\n if (field.displayType == 3) {\n width = 0;\n height = 0;\n } else {\n width = field.size, height = field.size;\n }\n var qrcode = new QRCode(id, {\n width: qrcodeViewSize ? qrcodeViewSize : width,\n height: qrcodeViewSize ? qrcodeViewSize : height,\n correctLevel: 3,\n text: text // 二维码地址\n });\n}",null]}