{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/expandedComponents/form_stamp.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/expandedComponents/form_stamp.vue","mtime":1739760944327},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/babel.config.js","mtime":1739760943855},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["export default {\n name: \"form-stamp\",\n props: [\"openParams\", \"signData\", \"formTemplateDocid\"],\n mounted: function mounted() {},\n data: function data() {\n return {\n positionX: 0,\n positionY: 0\n };\n },\n methods: {\n confirmSignature: function confirmSignature() {\n var signData = this.signData;\n var x = this.positionX;\n var y = this.positionY;\n x = x < 5 ? 5 : x;\n y = y < 65 ? 65 : y;\n var obj = {\n left: x,\n top: y,\n img: \"/uploads/signs/\" + signData.img,\n userId: this.$store.state.userId,\n id: '' //signData.id,\n };\n this.$emit(\"event\", obj);\n },\n cancel: function cancel(val) {\n this.$emit(\"update:visible\", val);\n },\n move: function move(e) {\n var _this = this;\n var id = \"stamp_\" + this.formTemplateDocid;\n var odiv = document.getElementById(id); //e.target; //获取目标元素\n //算出鼠标相对元素的位置\n var disX = e.clientX - odiv.offsetLeft;\n var disY = e.clientY - odiv.offsetTop;\n document.onmousemove = function (e) {\n //鼠标按下并移动的事件\n //用鼠标的位置减去鼠标相对元素的位置,得到元素的位置\n var left = e.clientX - disX;\n var top = e.clientY - disY;\n\n //绑定元素位置到positionX和positionY上面\n _this.positionX = left;\n _this.positionY = top;\n\n //移动当前元素\n odiv.style.left = left + 'px';\n odiv.style.top = top + 'px';\n };\n document.onmouseup = function () {\n document.onmousemove = null;\n document.onmouseup = null;\n };\n }\n }\n};",null]}