| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-331b"],{"+N42":function(e,t,n){"use strict";var o=n("G6b2");n.n(o).a},"+r4D":function(e,t,n){"use strict";var o=0,l=!1,s={props:{clearCom:{type:Boolean,default:!1},model:{type:String,default:"add"}},watch:{clearCom:function(e,t){this.clearAll()}},data:function(){return{textId:""}},activated:function(){},components:{},computed:{},mounted:function(){},methods:{initData:function(e){var t=document.querySelector(".componentIDCard").cloneNode(!0);document.querySelector("#can"+e.doc_page).appendChild(t),t.style.left=e.pos_x*this.$parent.scale+"px",t.style.top=e.pos_y*this.$parent.scale+"px",t.style.width=e.width*this.$parent.scale+"px",t.style.height=e.height*this.$parent.scale+"px",t.style.display="flex",t.classList.add("text_mark4"),"add"==this.model&&(t.onmouseenter=this.TextMouseenter,t.onmouseleave=this.TextMouseleave,t.onclick=this.textClick,t.onmousedown=this.moveTo),t.setAttribute("page",e.doc_page),t.setAttribute("textId",e.id),1==e.is_require?t.childNodes[0].childNodes[0].style.display="inline-block":t.childNodes[0].childNodes[0].style.display="none",t.childNodes[0].childNodes[1].innerText=e.form_name,t.childNodes[2].onblur=this.TextBlur,"add"==this.model?(t.childNodes[1].innerText=e.form_value,t.childNodes[3].onclick=this.TextDeleteIt):(t.childNodes[2].value=e.form_value,t.childNodes[2].onfocus=this.TextFocus)},TextFocus:function(e){e.currentTarget.parentNode.childNodes[0].style.display="flex"},TextBlur:function(e){e.currentTarget.value=e.currentTarget.value.replace(/\s+/g,""),"inline-block"==e.currentTarget.parentNode.childNodes[0].childNodes[0].style.display&&""==e.currentTarget.value?(e.currentTarget.parentNode.classList.add("needFill"),e.currentTarget.parentNode.childNodes[3].style.display="flex"):(e.currentTarget.parentNode.classList.remove("needFill"),e.currentTarget.parentNode.childNodes[3].style.display="none")},signText:function(e){var t=this,n=e.currentTarget.cloneNode(!0),o=0;document.querySelector("#app").clientWidth>1026&&(o=document.querySelector(".el-scrollbar__view").clientWidth),document.onmousemove=function(e){document.querySelector("#pageContent").appendChild(n),n.style.left=t.$parent.getPos(e).x-parseInt(n.clientWidth/2)-o+"px",n.style.top=t.$parent.getPos(e).y-95+"px",n.className="componentIDCard text_mark4"},document.onmouseup=function(e){var l=t.$parent.getPos(e).x+t.$parent.$refs.pdfBox.scrollLeft-parseInt(n.clientWidth/2)-document.querySelector(".pdf-box").offsetLeft-o,s=t.$parent.getPos(e).y+t.$parent.scrollTop-parseInt(n.clientHeight/2)-130;l<0?l=0:l>document.querySelector(".pdf-box").clientWidth-n.clientWidth*t.$parent.scale&&(l=document.querySelector(".pdf-box").clientWidth-n.clientWidth*t.$parent.scale),s<0?s=0:s>document.querySelector(".pdf-box").clientHeight-28*t.$parent.scale&&(s=document.querySelector(".pdf-box").clientHeight-28*t.$parent.scale);var i=0;s>t.$parent.pdfHeight*t.$parent.page_num?(s-=t.$parent.pdfHeight*t.$parent.page_num,i=t.$parent.page_num+1):(s-=t.$parent.pdfHeight*(t.$parent.page_num-1),i=t.$parent.page_num),s-=10*(i-1),n.style.left=l+"px",n.style.top=s+"px",n.style.height=28*t.$parent.scale+"px",n.style.width=n.clientWidth*t.$parent.scale+"px",document.querySelector("#pageContent").removeChild(n),document.querySelector("#can"+i).appendChild(n),document.onmousemove=null,document.onmouseup=null,n.childNodes[1].innerText="身份证号",n.onclick=t.textClick,n.onmousedown=t.moveTo,n.onmouseenter=t.TextMouseenter,n.onmouseleave=t.TextMouseleave,n.childNodes[3].onclick=t.TextDeleteIt,n.setAttribute("page",i)}},TextWidthChange:function(e){var t=this,n=e.currentTarget.parentNode,o=e.clientX,l=n.offsetWidth;return document.onmousemove=function(e){n.style.width=l+(e.clientX-o)+"px",n.offsetWidth<=70&&(n.style.width="70px"),n.offsetWidth+n.offsetLeft>=t.$parent.pdfWidth&&(n.style.width=t.$parent.pdfWidth-n.offsetLeft+"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null},e.stopPropagation(),e.preventDefault(),!1},TextDeleteIt:function(e){return this.hidden(),this.deleteText(e.currentTarget.parentNode),e.currentTarget.parentNode.parentNode.removeChild(e.currentTarget.parentNode),e.stopPropagation(),e.preventDefault(),!1},deleteText:function(e){var t=this;this.textId=e.getAttribute("textId"),this.textId&&setTimeout(function(){var e=1==t.$route.query.fromCreate?"plugin.yun-sign.frontend.contract.delete-form":"plugin.yun-sign.frontend.template.delete-template-form";$http.post(e,{id:t.textId}).then(function(e){1===e.result||t.$message.error(e.msg)}).catch(function(e){console.log(e)})},500)},textClick:function(e){return this.clearAll(),e.currentTarget.childNodes[0].style.display="flex",e.currentTarget.childNodes[3].style.display="block",e.currentTarget.classList.add("choose4"),e.currentTarget.onmouseleave=null,this.$parent.$refs.uIDCardSet&&this.$parent.$refs.uIDCardSet.initData(),l&&(l=!1),e.stopPropagation(),e.preventDefault(),!1},TextMouseenter:function(e){e.currentTarget.childNodes[0].style.display="flex",e.currentTarget.childNodes[3].style.display="block"},TextMouseleave:function(e){e.currentTarget.childNodes[0].style.display="none",e.currentTarget.childNodes[3].style.display="none"},moveTo:function(e){var t=this;o=(new Date).getTime();var n=e.currentTarget,s=e.clientX-n.offsetLeft,i=e.clientY-n.offsetTop;this.textClick(e),document.onmousemove=function(e){var o=e.clientX-s,l=e.clientY-i;o<=0?o=0:o>=document.querySelector(".pdf-box").clientWidth-n.clientWidth&&(o=document.querySelector(".pdf-box").clientWidth-n.clientWidth),l<=0?l=0:l>=t.pdfHeight-n.clientHeight&&(l=t.pdfHeight-n.clientHeight),n.style.left=o+"px",n.style.top=l+"px"},document.onmouseup=function(e){(new Date).getTime()-o<400&&(l=!0),document.onmousemove=null,document.onmouseup=null}},clearAll:function(){for(var e=0;e<document.querySelectorAll(".text_mark4").length;e++)document.querySelectorAll(".text_mark4")[e].childNodes[0].style.display="none",document.querySelectorAll(".text_mark4")[e].childNodes[3].style.display="none",document.querySelectorAll(".text_mark4")[e].onmouseleave=this.TextMouseleave,document.querySelectorAll(".text_mark4")[e].classList.remove("choose4");this.hidden()},hidden:function(){this.$store.commit("SET_ACTIVE_CL","0")}}},i=(n("h6is"),n("KHd+")),r=Object(i.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control-library-template"},["add"==e.model?n("div",{staticClass:"componentIDCard",on:{mousedown:e.signText}},[e._m(0),n("p",[e._v("身份证号")]),e._m(1),n("div",{staticClass:"text_delete",on:{click:function(t){return t.stopPropagation(),e.TextDeleteIt(t)}}},[e._v("删除")])]):e._e(),e._v(" "),"edit"==e.model?n("div",{staticClass:"componentIDCard edit-style"},[e._m(2),e._v(" "),n("input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入身份证号"}}),n("div",{staticClass:"errorInfo_3lZie"},[e._v("请填写当前控件")])]):e._e()])},[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"itemConentStyle"},[t("span",{staticClass:"need"},[this._v("*")]),t("span",[this._v("身份证号")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticStyle:{"margin-top":"6px"}},[t("i",{staticClass:"iconfont icon-icon-ht_marketing_dtab"}),t("i",{staticClass:"iconfont icon-pm_auction_success"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"itemConentStyle"},[t("span",{staticClass:"need"}),t("span",[this._v("身份证号")])])}],!1,null,"66b77722",null);r.options.__file="template.vue";t.a=r.exports},"0jnj":function(e,t,n){"use strict";var o=n("pz/4");n.n(o).a},"34gb":function(e,t,n){"use strict";var o=n("c9/2");n.n(o).a},"3CBT":function(e,t,n){e.exports=n.p+"static/img/pdfpng.143be43.png"},"4gw+":function(e,t,n){},87:function(e,t){},88:function(e,t){},89:function(e,t){},90:function(e,t){},91:function(e,t){},CBch:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAE5BJREFUeNrsnU1oHEcahkuSD9qbjrp5DIH45gkOeBcCmpCDszjIdnJwQsC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WVBqYDkoHQglI3WyvA4DXJm8zAXFlXWopMNUSZXMAAAoFb6RANHgrCUgoZZZld/paLTiobaRA3GmDYZO3iYDECM5Em1s2teP/tJag2fbn+23/1qSr5F7/E2AAhzagwFDJBlIAAAAASUVORK5CYII="},EkpF:function(e,t,n){},G6b2:function(e,t,n){},HIPR:function(e,t,n){"use strict";var o=0,l=!1,s={props:{clearCom:{type:Boolean,default:!1},model:{type:String,default:"add"}},watch:{clearCom:function(e,t){this.clearAll()}},data:function(){return{textId:""}},activated:function(){},components:{},computed:{},mounted:function(){},methods:{initData:function(e){var t=document.querySelector(".componentTimeData").cloneNode(!0);document.querySelector("#can"+e.doc_page).appendChild(t),t.style.left=e.pos_x*this.$parent.scale+"px",t.style.top=e.pos_y*this.$parent.scale+"px",t.style.width=e.width*this.$parent.scale+"px",t.style.height=e.height*this.$parent.scale+"px",t.style.display="flex",t.classList.add("text_mark6"),"add"==this.model&&(t.onmouseenter=this.TextMouseenter,t.onmouseleave=this.TextMouseleave,t.onclick=this.textClick,t.onmousedown=this.moveTo),t.setAttribute("page",e.doc_page),t.setAttribute("textId",e.id),1==e.is_require?t.childNodes[0].childNodes[0].style.display="inline-block":t.childNodes[0].childNodes[0].style.display="none",t.childNodes[0].childNodes[1].innerText=e.form_name,t.childNodes[2].onblur=this.TextBlur,"add"==this.model?(t.childNodes[1].innerText=e.form_value,t.childNodes[3].onclick=this.TextDeleteIt):(t.childNodes[2].value=e.form_value,t.childNodes[2].onfocus=this.TextFocus)},TextBlur:function(e){e.currentTarget.value=e.currentTarget.value.replace(/\s+/g,""),"inline-block"==e.currentTarget.parentNode.childNodes[0].childNodes[0].style.display&&""==e.currentTarget.value?(e.currentTarget.parentNode.classList.add("needFill"),e.currentTarget.parentNode.childNodes[3].style.display="flex"):(e.currentTarget.parentNode.classList.remove("needFill"),e.currentTarget.parentNode.childNodes[3].style.display="none")},signText:function(e){var t=this,n=e.currentTarget.cloneNode(!0),o=0;document.querySelector("#app").clientWidth>1026&&(o=document.querySelector(".el-scrollbar__view").clientWidth),document.onmousemove=function(e){document.querySelector("#pageContent").appendChild(n),n.style.left=t.$parent.getPos(e).x-parseInt(n.clientWidth/2)-o+"px",n.style.top=t.$parent.getPos(e).y-95+"px",n.className="componentTimeData text_mark6"},document.onmouseup=function(e){var l=t.$parent.getPos(e).x+t.$parent.$refs.pdfBox.scrollLeft-parseInt(n.clientWidth/2)-document.querySelector(".pdf-box").offsetLeft-o,s=t.$parent.getPos(e).y+t.$parent.scrollTop-parseInt(n.clientHeight/2)-130;l<0?l=0:l>document.querySelector(".pdf-box").clientWidth-n.clientWidth*t.$parent.scale&&(l=document.querySelector(".pdf-box").clientWidth-n.clientWidth*t.$parent.scale),s<0?s=0:s>document.querySelector(".pdf-box").clientHeight-28*t.$parent.scale&&(s=document.querySelector(".pdf-box").clientHeight-28*t.$parent.scale);var i=0;s>t.$parent.pdfHeight*t.$parent.page_num?(s-=t.$parent.pdfHeight*t.$parent.page_num,i=t.$parent.page_num+1):(s-=t.$parent.pdfHeight*(t.$parent.page_num-1),i=t.$parent.page_num),s-=10*(i-1),n.style.left=l+"px",n.style.top=s+"px",n.style.height=28*t.$parent.scale+"px",n.style.width=n.clientWidth*t.$parent.scale+"px",document.querySelector("#pageContent").removeChild(n),document.querySelector("#can"+i).appendChild(n),document.onmousemove=null,document.onmouseup=null,n.childNodes[1].innerText="日期:yyyy-mm-dd",n.onclick=t.textClick,n.onmousedown=t.moveTo,n.onmouseenter=t.TextMouseenter,n.onmouseleave=t.TextMouseleave,n.childNodes[3].onclick=t.TextDeleteIt,n.setAttribute("page",i),n.setAttribute("date_type",0)}},TextWidthChange:function(e){var t=this,n=e.currentTarget.parentNode,o=e.clientX,l=n.offsetWidth;return document.onmousemove=function(e){n.style.width=l+(e.clientX-o)+"px",n.offsetWidth<=70&&(n.style.width="70px"),n.offsetWidth+n.offsetLeft>=t.$parent.pdfWidth&&(n.style.width=t.$parent.pdfWidth-n.offsetLeft+"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null},e.stopPropagation(),e.preventDefault(),!1},TextDeleteIt:function(e){return this.hidden(),this.deleteText(e.currentTarget.parentNode),e.currentTarget.parentNode.parentNode.removeChild(e.currentTarget.parentNode),e.stopPropagation(),e.preventDefault(),!1},deleteText:function(e){var t=this;this.textId=e.getAttribute("textId"),this.textId&&setTimeout(function(){var e=1==t.$route.query.fromCreate?"plugin.yun-sign.frontend.contract.delete-form":"plugin.yun-sign.frontend.template.delete-template-form";$http.post(e,{id:t.textId}).then(function(e){1===e.result||t.$message.error(e.msg)}).catch(function(e){console.log(e)})},500)},textClick:function(e){return this.clearAll(),e.currentTarget.childNodes[0].style.display="flex",e.currentTarget.childNodes[3].style.display="block",e.currentTarget.classList.add("choose6"),e.currentTarget.onmouseleave=null,this.$parent.$refs.utimeDataSet&&this.$parent.$refs.utimeDataSet.initData(),l&&(l=!1),e.stopPropagation(),e.preventDefault(),!1},TextMouseenter:function(e){e.currentTarget.childNodes[0].style.display="flex",e.currentTarget.childNodes[3].style.display="block"},TextMouseleave:function(e){e.currentTarget.childNodes[0].style.display="none",e.currentTarget.childNodes[3].style.display="none"},moveTo:function(e){var t=this;o=(new Date).getTime();var n=e.currentTarget,s=e.clientX-n.offsetLeft,i=e.clientY-n.offsetTop;this.textClick(e),document.onmousemove=function(e){var o=e.clientX-s,l=e.clientY-i;o<=0?o=0:o>=document.querySelector(".pdf-box").clientWidth-n.clientWidth&&(o=document.querySelector(".pdf-box").clientWidth-n.clientWidth),l<=0?l=0:l>=t.pdfHeight-n.clientHeight&&(l=t.pdfHeight-n.clientHeight),n.style.left=o+"px",n.style.top=l+"px"},document.onmouseup=function(e){(new Date).getTime()-o<400&&(l=!0),document.onmousemove=null,document.onmouseup=null}},clearAll:function(){for(var e=0;e<document.querySelectorAll(".text_mark6").length;e++)document.querySelectorAll(".text_mark6")[e].childNodes[0].style.display="none",document.querySelectorAll(".text_mark6")[e].childNodes[3].style.display="none",document.querySelectorAll(".text_mark6")[e].onmouseleave=this.TextMouseleave,document.querySelectorAll(".text_mark6")[e].classList.remove("choose6");this.hidden()},hidden:function(){this.$store.commit("SET_ACTIVE_CL","0")}}},i=(n("+N42"),n("KHd+")),r=Object(i.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control-library-template"},["add"==e.model?n("div",{staticClass:"componentTimeData",on:{mousedown:e.signText}},[e._m(0),n("p",[e._v("日期")]),e._m(1),n("div",{staticClass:"text_delete",on:{click:function(t){return t.stopPropagation(),e.TextDeleteIt(t)}}},[e._v("删除")])]):e._e(),e._v(" "),"edit"==e.model?n("div",{staticClass:"componentTimeData edit-style"},[e._m(2),e._v(" "),n("input",{staticClass:"input",attrs:{type:"text",disabled:"",placeholder:"请输入日期"}}),n("div",{staticClass:"errorInfo_3lZie"},[e._v("请填写当前控件")])]):e._e()])},[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"itemConentStyle"},[t("span",{staticClass:"need"},[this._v("*")]),t("span",[this._v("日期")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticStyle:{"margin-top":"6px"}},[t("i",{staticClass:"iconfont icon-ht_marketing_signin"}),t("i",{staticClass:"iconfont icon-pm_auction_success"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"itemConentStyle"},[t("span",{staticClass:"need"}),t("span",[this._v("日期")])])}],!1,null,"554778fb",null);r.options.__file="template.vue";t.a=r.exports},"I/Ny":function(e,t,n){"use strict";var o=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"itemConentStyle"},[t("span",{staticClass:"need"},[this._v("*")]),t("span",[this._v("文本名称")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticStyle:{"margin-top":"6px"}},[t("i",{staticClass:"iconfont icon-kc_mulu"}),t("i",{staticClass:"iconfont icon-pm_auction_success"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"move-icon"},[t("img",{attrs:{src:n("CBch"),alt:""}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"itemConentStyle"},[t("span",{staticClass:"need"},[this._v("*")]),t("span",[this._v("文本名称")])])}],l=0,s=!1,i={props:{clearCom:{type:Boolean,default:!1},model:{type:String,default:"add"}},watch:{clearCom:function(e,t){this.clearAll()}},data:function(){return{textId:""}},activated:function(){},components:{},computed:{},mounted:function(){},methods:{initData:function(e){var t=document.querySelector(".componentArea").cloneNode(!0);document.querySelector("#can"+e.doc_page).appendChild(t),t.style.left=e.pos_x*this.$parent.scale+"px",t.style.top=e.pos_y*this.$parent.scale+"px",t.style.width=e.width*this.$parent.scale+"px",t.style.height=e.height*this.$parent.scale+"px",t.style.display="flex",t.classList.add("text_mark"),"add"==this.model&&(t.onmouseenter=this.TextMouseenter,t.onmouseleave=this.TextMouseleave,t.onclick=this.textClick,t.onmousedown=this.moveTo),t.setAttribute("page",e.doc_page),t.setAttribute("textId",e.id),1==e.is_require?t.childNodes[0].childNodes[0].style.display="inline-block":t.childNodes[0].childNodes[0].style.display="none",t.childNodes[0].childNodes[1].innerText=e.form_name,t.childNodes[2].onblur=this.TextBlur,"add"==this.model?(t.childNodes[1].innerText=e.form_value,t.childNodes[3].onclick=this.TextDeleteIt,t.childNodes[4].onmousedown=this.TextWidthChange):(t.childNodes[2].value=e.form_value,t.childNodes[2].onfocus=this.TextFocus)},TextFocus:function(e){e.currentTarget.parentNode.childNodes[0].style.display="flex"},TextBlur:function(e){e.currentTarget.value=e.currentTarget.value.replace(/\s+/g,""),"inline-block"==e.currentTarget.parentNode.childNodes[0].childNodes[0].style.display&&""==e.currentTarget.value?(e.currentTarget.parentNode.classList.add("needFill"),e.currentTarget.parentNode.childNodes[3].style.display="flex"):(e.currentTarget.parentNode.classList.remove("needFill"),e.currentTarget.parentNode.childNodes[3].style.display="none")},signText:function(e){var t=this,n=e.currentTarget.cloneNode(!0),o=0;document.querySelector("#app").clientWidth>1026&&(o=document.querySelector(".el-scrollbar__view").clientWidth),document.onmousemove=function(e){document.querySelector("#pageContent").appendChild(n),n.style.left=t.$parent.getPos(e).x-parseInt(n.clientWidth/2)-o+"px",n.style.top=t.$parent.getPos(e).y-95+"px",n.className="componentArea text_mark"},document.onmouseup=function(e){var l=t.$parent.getPos(e).x+t.$parent.$refs.pdfBox.scrollLeft-parseInt(n.clientWidth/2)-document.querySelector(".pdf-box").offsetLeft-o,s=t.$parent.getPos(e).y+t.$parent.scrollTop-parseInt(n.clientHeight/2)-130;l<0?l=0:l>document.querySelector(".pdf-box").clientWidth-n.clientWidth*t.$parent.scale&&(l=document.querySelector(".pdf-box").clientWidth-n.clientWidth*t.$parent.scale),s<0?s=0:s>document.querySelector(".pdf-box").clientHeight-28*t.$parent.scale&&(s=document.querySelector(".pdf-box").clientHeight-28*t.$parent.scale);var i=0;s>t.$parent.pdfHeight*t.$parent.page_num?(s-=t.$parent.pdfHeight*t.$parent.page_num,i=t.$parent.page_num+1):(s-=t.$parent.pdfHeight*(t.$parent.page_num-1),i=t.$parent.page_num),s-=10*(i-1),n.style.left=l+"px",n.style.top=s+"px",n.style.height=28*t.$parent.scale+"px",n.style.width=n.clientWidth*t.$parent.scale+"px",document.querySelector("#pageContent").removeChild(n),document.querySelector("#can"+i).appendChild(n),document.onmousemove=null,document.onmouseup=null,n.childNodes[1].innerText="文本",n.onclick=t.textClick,n.onmousedown=t.moveTo,n.onmouseenter=t.TextMouseenter,n.onmouseleave=t.TextMouseleave,n.childNodes[3].onclick=t.TextDeleteIt,n.childNodes[4].onmousedown=t.TextWidthChange,n.setAttribute("page",i)}},TextWidthChange:function(e){var t=this,n=e.currentTarget.parentNode,o=e.clientX,l=n.offsetWidth;return document.onmousemove=function(e){n.style.width=l+(e.clientX-o)+"px",n.offsetWidth<=70&&(n.style.width="70px"),n.offsetWidth+n.offsetLeft>=t.$parent.pdfWidth&&(n.style.width=t.$parent.pdfWidth-n.offsetLeft+"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null},e.stopPropagation(),e.preventDefault(),!1},TextDeleteIt:function(e){return this.hidden(),this.deleteText(e.currentTarget.parentNode),e.currentTarget.parentNode.parentNode.removeChild(e.currentTarget.parentNode),e.stopPropagation(),e.preventDefault(),!1},deleteText:function(e){var t=this;this.textId=e.getAttribute("textId"),this.textId&&setTimeout(function(){var e=1==t.$route.query.fromCreate?"plugin.yun-sign.frontend.contract.delete-form":"plugin.yun-sign.frontend.template.delete-template-form";$http.post(e,{id:t.textId}).then(function(e){1===e.result||t.$message.error(e.msg)}).catch(function(e){console.log(e)})},500)},textClick:function(e){return this.clearAll(),e.currentTarget.childNodes[0].style.display="flex",e.currentTarget.childNodes[3].style.display="block",e.currentTarget.childNodes[4].style.display="block",e.currentTarget.classList.add("choose"),e.currentTarget.onmouseleave=null,this.$parent.$refs.dtextSet&&this.$parent.$refs.dtextSet.initData(),s&&(s=!1),e.stopPropagation(),e.preventDefault(),!1},TextMouseenter:function(e){e.currentTarget.childNodes[0].style.display="flex"},TextMouseleave:function(e){e.currentTarget.childNodes[0].style.display="none"},moveTo:function(e){var t=this;l=(new Date).getTime();var n=e.currentTarget,o=e.clientX-n.offsetLeft,i=e.clientY-n.offsetTop;this.textClick(e),document.onmousemove=function(e){var l=e.clientX-o,s=e.clientY-i;l<=0?l=0:l>=document.querySelector(".pdf-box").clientWidth-n.clientWidth&&(l=document.querySelector(".pdf-box").clientWidth-n.clientWidth),s<=0?s=0:s>=t.pdfHeight-n.clientHeight&&(s=t.pdfHeight-n.clientHeight),n.style.left=l+"px",n.style.top=s+"px"},document.onmouseup=function(e){(new Date).getTime()-l<400&&(s=!0),document.onmousemove=null,document.onmouseup=null}},clearAll:function(){for(var e=0;e<document.querySelectorAll(".text_mark").length;e++)document.querySelectorAll(".text_mark")[e].childNodes[0].style.display="none",document.querySelectorAll(".text_mark")[e].childNodes[3].style.display="none",document.querySelectorAll(".text_mark")[e].childNodes[4].style.display="none",document.querySelectorAll(".text_mark")[e].onmouseleave=this.TextMouseleave,document.querySelectorAll(".text_mark")[e].classList.remove("choose");this.hidden()},hidden:function(){this.$store.commit("SET_ACTIVE_CL","0")}}},r=(n("34gb"),n("KHd+")),c=Object(r.a)(i,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control-library-template"},["add"==e.model?n("div",{staticClass:"componentArea",on:{mousedown:e.signText}},[e._m(0),n("p",[e._v("文本")]),e._m(1),n("div",{staticClass:"text_delete",on:{click:function(t){return t.stopPropagation(),e.TextDeleteIt(t)}}},[e._v("删除")]),e._m(2)]):e._e(),e._v(" "),"edit"==e.model?n("div",{staticClass:"componentArea edit-style"},[e._m(3),e._v(" "),n("input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入文本"}}),n("div",{staticClass:"errorInfo_3lZie"},[e._v("请填写当前控件")])]):e._e()])},o,!1,null,"7f20f692",null);c.options.__file="template.vue";t.a=c.exports},QYAu:function(e,t,n){"use strict";var o=0,l=!1,s={props:{clearCom:{type:Boolean,default:!1},defaultName:{type:String,default:"签署方名称"},rolesList:{type:Array,default:function(){return[]}},model:{type:String,default:"add"}},watch:{clearCom:function(e,t){this.clearAll()}},data:function(){return{textId:""}},mounted:function(){},components:{},computed:{},methods:{initData:function(e,t){var n=document.querySelector(".componentSign").cloneNode(!0);document.querySelector("#can"+e.doc_page).appendChild(n),n.style.left=e.pos_x*this.$parent.scale+"px",n.style.top=e.pos_y*this.$parent.scale+"px",n.style.width=e.width*this.$parent.scale+"px",n.style.height=e.height*this.$parent.scale+"px",n.style.display="flex",n.classList.add("text_mark2"),"add"==this.model&&(n.onmouseenter=this.sealMouseenter,n.onmouseleave=this.sealMouseleave,n.onclick=this.sealClick,n.onmousedown=this.sealMoveTo),n.setAttribute("page",e.doc_page),n.setAttribute("textId",e.id),n.setAttribute("role_id",e.role_id),n.setAttribute("date_type",e.show_time),n.childNodes[0].childNodes[1].childNodes[1].childNodes[1].innerText=e.form_name,this.rolesList.forEach(function(t){e.role_id==t.role_id&&(n.childNodes[0].childNodes[1].childNodes[0].innerText=t.sign_role_name)}),n.childNodes[2].onclick=this.sealDeleteIt},signSeal:function(e){var t=this,n=document.querySelector(".componentSign").cloneNode(!0),o=0;document.querySelector("#app").clientWidth>1026&&(o=document.querySelector(".el-scrollbar__view").clientWidth),document.onmousemove=function(e){document.querySelector("#pageContent").appendChild(n),n.style.display="flex",n.style.left=t.$parent.getPos(e).x-parseInt(n.clientWidth/2)-o+"px",n.style.top=t.$parent.getPos(e).y-100+"px",n.className="componentSign text_mark2"},document.onmouseup=function(e){var l=t.$parent.getPos(e).x+t.$parent.$refs.pdfBox.scrollLeft-parseInt(n.clientWidth/2)-document.querySelector(".pdf-box").offsetLeft-o,s=t.$parent.getPos(e).y+t.$parent.scrollTop-parseInt(n.clientHeight/2)-100;l<0?l=0:l>document.querySelector(".pdf-box").clientWidth-100*t.$parent.scale&&(l=document.querySelector(".pdf-box").clientWidth-100*t.$parent.scale),s<0?s=0:s>document.querySelector(".pdf-box").clientHeight-100*t.$parent.scale&&(s=document.querySelector(".pdf-box").clientHeight-100*t.$parent.scale);var i=0;s>t.$parent.pdfHeight*t.$parent.page_num?(s-=t.$parent.pdfHeight*t.$parent.page_num,i=t.$parent.page_num+1):(s-=t.$parent.pdfHeight*(t.$parent.page_num-1),i=t.$parent.page_num),s-=10*(i-1),n.style.left=l+"px",n.style.top=s+"px",n.style.height=100*t.$parent.scale+"px",n.style.width=100*t.$parent.scale+"px",n.style.position="absolute",document.querySelector("#pageContent").removeChild(n),document.querySelector("#can"+i).appendChild(n),document.onmousemove=null,document.onmouseup=null,n.onclick=t.sealClick,n.onmousedown=t.sealMoveTo,n.onmouseenter=t.sealMouseenter,n.onmouseleave=t.sealMouseleave,n.childNodes[2].onclick=t.sealDeleteIt,n.setAttribute("page",i),n.setAttribute("role_id",1),n.setAttribute("date_type",0)}},sealDeleteIt:function(e){return this.hidden(),this.deleteText(e.currentTarget.parentNode),e.currentTarget.parentNode.parentNode.removeChild(e.currentTarget.parentNode),e.stopPropagation(),e.preventDefault(),!1},deleteText:function(e){var t=this;this.textId=e.getAttribute("textId"),this.textId&&setTimeout(function(){var e=1==t.$route.query.fromCreate?"plugin.yun-sign.frontend.contract.delete-form":"plugin.yun-sign.frontend.template.delete-template-form";$http.post(e,{id:t.textId}).then(function(e){1===e.result||t.$message.error(e.msg)}).catch(function(e){console.log(e)})},500)},sealClick:function(e){return this.clearAll(),e.currentTarget.childNodes[0].style.display="flex",e.currentTarget.childNodes[2].style.display="block",e.currentTarget.classList.add("choose2"),e.currentTarget.onmouseleave=null,0!=Number(document.querySelector(".choose2").getAttribute("date_type"))&&(e.currentTarget.childNodes[3].style.display="flex"),this.$parent.$refs.signSet&&this.$parent.$refs.signSet.initData(),l&&(l=!1),e.stopPropagation(),e.preventDefault(),!1},sealMouseenter:function(e){e.currentTarget.childNodes[0].style.display="flex",e.currentTarget.childNodes[2].style.display="block"},sealMouseleave:function(e){e.currentTarget.childNodes[0].style.display="none",e.currentTarget.childNodes[2].style.display="none",e.currentTarget.childNodes[3].style.display="none"},sealMoveTo:function(e){var t=this;o=(new Date).getTime();var n=e.currentTarget,s=e.clientX-n.offsetLeft,i=e.clientY-n.offsetTop;this.sealClick(e),document.onmousemove=function(e){var o=e.clientX-s,l=e.clientY-i;o<=0?o=0:o>=document.querySelector(".pdf-box").clientWidth-n.clientWidth&&(o=document.querySelector(".pdf-box").clientWidth-n.clientWidth),l<=0?l=0:l>=t.pdfHeight-n.clientHeight&&(l=t.pdfHeight-n.clientHeight),n.style.left=o+"px",n.style.top=l+"px"},document.onmouseup=function(e){(new Date).getTime()-o<400&&(l=!0),document.onmousemove=null,document.onmouseup=null}},clearAll:function(){for(var e=0;e<document.querySelectorAll(".text_mark2").length;e++)document.querySelectorAll(".text_mark2")[e].childNodes[0].style.display="none",document.querySelectorAll(".text_mark2")[e].childNodes[2].style.display="none",document.querySelectorAll(".text_mark2")[e].childNodes[3].style.display="none",document.querySelectorAll(".text_mark2")[e].onmouseleave=this.sealMouseenter,document.querySelectorAll(".text_mark2")[e].classList.remove("choose2");this.hidden()},hidden:function(){this.$store.commit("SET_ACTIVE_CL","0")}}},i=(n("p+5b"),n("KHd+")),r=Object(i.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control-library-template"},[n("div",{staticClass:"componentSign-show",on:{mousedown:e.signSeal}},[n("p",[e._v("签署区")]),e._m(0)]),e._v(" "),n("div",{staticClass:"componentSign",on:{mousedown:e.signSeal}},[n("p",{staticClass:"sealCompInfo_3v9iQ"},[n("span",{staticClass:"need"},[e._v("*")]),n("span",[n("span",[e._v(e._s(e.defaultName))]),e._m(1)])]),e._m(2),n("div",{staticClass:"text_delete",on:{click:function(t){return t.stopPropagation(),e.TextDeleteIt(t)}}},[e._v("删除")]),n("p",{staticClass:"sealCompInfo_3v9iQ sealCompInfo_3v9iQ_bottom"},[e._v("日期格式")])])])},[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticStyle:{"margin-top":"6px"}},[t("i",{staticClass:"iconfont icon-all_sign"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("em",[this._v("("),t("span",[this._v("签署区")]),this._v(")")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"itemConentStyle_2MWEL"},[t("div",{staticClass:"infoMsg_3NkPg"},[this._v("签署区")]),t("i",{staticClass:"iconfont icon-pm_auction_success"})])}],!1,null,null,null);r.options.__file="template.vue";t.a=r.exports},XEqH:function(e,t,n){"use strict";var o=0,l=!1,s={props:{clearCom:{type:Boolean,default:!1},defaultName:{type:String,default:"签署方名称"},rolesList:{type:Array,default:function(){return[]}},model:{type:String,default:"add"}},watch:{clearCom:function(e,t){this.clearAll()}},data:function(){return{textId:"",componentDrag:null,textMark:null}},mounted:function(){},components:{},computed:{},methods:{initData:function(e){var t=document.querySelector(".componentDrag").cloneNode(!0);document.querySelector("#can"+e.doc_page).appendChild(t),t.style.left=e.pos_x*this.$parent.scale+"px",t.style.top=e.pos_y*this.$parent.scale+"px",t.style.width=50*this.$parent.scale+"px",t.style.height=e.height*this.$parent.scale+"px",t.style.display="flex",t.classList.add("text_mark3"),"add"==this.model&&(t.onmouseenter=this.sealMouseenter,t.onmouseleave=this.sealMouseleave,t.onclick=this.sealClick,t.onmousedown=this.sealMoveTo),t.setAttribute("page",e.doc_page),t.setAttribute("textId",e.id),t.setAttribute("role_id",e.role_id),t.childNodes[0].childNodes[1].childNodes[1].childNodes[1].innerText=e.form_name,this.rolesList.forEach(function(n){e.role_id==n.role_id&&(t.childNodes[0].childNodes[1].childNodes[0].innerText=n.sign_role_name)}),t.childNodes[2].onclick=this.sealDeleteIt},signSeal:function(e){var t=this,n=document.querySelector(".componentDrag").cloneNode(!0),o=0;document.querySelector("#app").clientWidth>1026&&(o=document.querySelector(".el-scrollbar__view").clientWidth),document.onmousemove=function(e){document.querySelector("#pageContent").appendChild(n),n.style.display="flex",n.style.left=t.$parent.getPos(e).x-parseInt(n.clientWidth/2)-o+"px",n.style.top=t.$parent.getPos(e).y-100+"px",n.className="componentDrag text_mark3"},document.onmouseup=function(e){var o=(t.$parent.getPos(e).x,t.$parent.$refs.pdfBox.scrollLeft,parseInt(n.clientWidth/2),document.querySelector(".pdf-box").offsetLeft),l=t.$parent.getPos(e).y+t.$parent.scrollTop-parseInt(n.clientHeight/2)-100;o=document.querySelector(".pdf-box").clientWidth-50*t.$parent.scale,l<0?l=0:l>document.querySelector(".pdf-box").clientHeight-100*t.$parent.scale&&(l=document.querySelector(".pdf-box").clientHeight-100*t.$parent.scale);var s=0;l>t.$parent.pdfHeight*t.$parent.page_num?(l-=t.$parent.pdfHeight*t.$parent.page_num,s=t.$parent.page_num+1):(l-=t.$parent.pdfHeight*(t.$parent.page_num-1),s=t.$parent.page_num),l-=10*(s-1),n.style.left=o+"px",n.style.top=l+"px",n.style.height=100*t.$parent.scale+"px",n.style.width=50*t.$parent.scale+"px",n.style.position="absolute",document.querySelector("#pageContent").removeChild(n),document.querySelector("#can"+s).appendChild(n),document.onmousemove=null,document.onmouseup=null,n.onclick=t.sealClick,n.onmousedown=t.sealMoveTo,n.onmouseenter=t.sealMouseenter,n.onmouseleave=t.sealMouseleave,n.childNodes[2].onclick=t.sealDeleteIt,n.setAttribute("page",s),n.setAttribute("role_id",1)}},sealDeleteIt:function(e){return this.hidden(),this.deleteText(e.currentTarget.parentNode),e.currentTarget.parentNode.parentNode.removeChild(e.currentTarget.parentNode),e.stopPropagation(),e.preventDefault(),!1},deleteText:function(e){var t=this;this.textId=e.getAttribute("textId"),this.textId&&setTimeout(function(){var e=1==t.$route.query.fromCreate?"plugin.yun-sign.frontend.contract.delete-form":"plugin.yun-sign.frontend.template.delete-template-form";$http.post(e,{id:t.textId}).then(function(e){1===e.result||t.$message.error(e.msg)}).catch(function(e){console.log(e)})},500)},sealClick:function(e){return this.clearAll(),e.currentTarget.childNodes[0].style.display="flex",e.currentTarget.childNodes[2].style.display="block",e.currentTarget.classList.add("choose3"),e.currentTarget.onmouseleave=null,this.$parent.$refs.dpagingSealSet&&this.$parent.$refs.dpagingSealSet.initData(),l&&(l=!1),e.stopPropagation(),e.preventDefault(),!1},sealMouseenter:function(e){e.currentTarget.childNodes[0].style.display="flex",e.currentTarget.childNodes[2].style.display="block"},sealMouseleave:function(e){e.currentTarget.childNodes[0].style.display="none",e.currentTarget.childNodes[2].style.display="none"},sealMoveTo:function(e){var t=this;o=(new Date).getTime();var n=e.currentTarget,s=(e.clientX,n.offsetLeft,e.clientY-n.offsetTop);this.sealClick(e),document.onmousemove=function(e){var o=e.clientX,l=e.clientY-s;o=document.querySelector(".pdf-box").clientWidth-n.clientWidth,l<=0?l=0:l>=t.pdfHeight-n.clientHeight&&(l=t.pdfHeight-n.clientHeight),n.style.left=o+"px",n.style.top=l+"px"},document.onmouseup=function(e){(new Date).getTime()-o<400&&(l=!0),document.onmousemove=null,document.onmouseup=null}},clearAll:function(){for(var e=0;e<document.querySelectorAll(".text_mark3").length;e++)document.querySelectorAll(".text_mark3")[e].childNodes[0].style.display="none",document.querySelectorAll(".text_mark3")[e].childNodes[2].style.display="none",document.querySelectorAll(".text_mark3")[e].onmouseleave=this.sealMouseenter,document.querySelectorAll(".text_mark3")[e].classList.remove("choose3");this.hidden()},hidden:function(){this.$store.commit("SET_ACTIVE_CL","0")}}},i=(n("0jnj"),n("KHd+")),r=Object(i.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control-library-template"},[n("div",{staticClass:"control-library-component",on:{mousedown:e.signSeal}},[n("p",[e._v("骑缝章")]),e._m(0)]),e._v(" "),n("div",{staticClass:"componentDrag",on:{mousedown:e.signSeal}},[n("p",{staticClass:"sealCompInfo_3v9iQ"},[n("span",{staticClass:"need"},[e._v("*")]),n("span",[n("span",[e._v(e._s(e.defaultName))]),e._m(1)])]),e._m(2),n("div",{staticClass:"text_delete",on:{click:function(t){return t.stopPropagation(),e.TextDeleteIt(t)}}},[e._v("删除")]),n("p",{staticClass:"sealCompInfo_3v9iQ sealCompInfo_3v9iQ_bottom"},[e._v("日期格式")])])])},[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticStyle:{"margin-top":"6px"}},[t("i",{staticClass:"iconfont icon-fontclass-gerenyinzhang"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("em",[this._v("("),t("span",[this._v("骑缝章")]),this._v(")")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"itemConentStyle_2MWEL"},[t("div",{staticClass:"infoMsg_3NkPg"},[this._v("骑缝章")]),t("i",{staticClass:"iconfont icon-fontclass-gerenyinzhang"})])}],!1,null,null,null);r.options.__file="template.vue";t.a=r.exports},"c9/2":function(e,t,n){},h6is:function(e,t,n){"use strict";var o=n("4gw+");n.n(o).a},nCpL:function(e,t,n){},osUJ:function(e,t,n){"use strict";var o=n("EkpF");n.n(o).a},"p+5b":function(e,t,n){"use strict";var o=n("nCpL");n.n(o).a},"pz/4":function(e,t,n){},uXr2:function(e,t,n){"use strict";var o=0,l=!1,s={props:{clearCom:{type:Boolean,default:!1},model:{type:String,default:"add"}},watch:{clearCom:function(e,t){this.clearAll()}},data:function(){return{textId:""}},activated:function(){},components:{},computed:{},mounted:function(){},methods:{initData:function(e){var t=document.querySelector(".componentNumberInp").cloneNode(!0);document.querySelector("#can"+e.doc_page).appendChild(t),t.style.left=e.pos_x*this.$parent.scale+"px",t.style.top=e.pos_y*this.$parent.scale+"px",t.style.width=e.width*this.$parent.scale+"px",t.style.height=e.height*this.$parent.scale+"px",t.style.display="flex",t.classList.add("text_mark5"),"add"==this.model&&(t.onmouseenter=this.TextMouseenter,t.onmouseleave=this.TextMouseleave,t.onclick=this.textClick,t.onmousedown=this.moveTo),t.setAttribute("page",e.doc_page),t.setAttribute("textId",e.id),1==e.is_require?t.childNodes[0].childNodes[0].style.display="inline-block":t.childNodes[0].childNodes[0].style.display="none",t.childNodes[0].childNodes[1].innerText=e.form_name,t.childNodes[2].onblur=this.TextBlur,"add"==this.model?(t.childNodes[1].innerText=e.form_value,t.childNodes[3].onclick=this.TextDeleteIt):(t.childNodes[2].value=e.form_value,t.childNodes[2].onfocus=this.TextFocus)},TextFocus:function(e){e.currentTarget.parentNode.childNodes[0].style.display="flex"},TextBlur:function(e){e.currentTarget.value=e.currentTarget.value.replace(/\s+/g,""),"inline-block"==e.currentTarget.parentNode.childNodes[0].childNodes[0].style.display&&""==e.currentTarget.value?(e.currentTarget.parentNode.classList.add("needFill"),e.currentTarget.parentNode.childNodes[3].style.display="flex"):(e.currentTarget.parentNode.classList.remove("needFill"),e.currentTarget.parentNode.childNodes[3].style.display="none")},signText:function(e){var t=this,n=e.currentTarget.cloneNode(!0),o=0;document.querySelector("#app").clientWidth>1026&&(o=document.querySelector(".el-scrollbar__view").clientWidth),document.onmousemove=function(e){document.querySelector("#pageContent").appendChild(n),n.style.left=t.$parent.getPos(e).x-parseInt(n.clientWidth/2)-o+"px",n.style.top=t.$parent.getPos(e).y-95+"px",n.className="componentNumberInp text_mark5"},document.onmouseup=function(e){var l=t.$parent.getPos(e).x+t.$parent.$refs.pdfBox.scrollLeft-parseInt(n.clientWidth/2)-document.querySelector(".pdf-box").offsetLeft-o,s=t.$parent.getPos(e).y+t.$parent.scrollTop-parseInt(n.clientHeight/2)-130;l<0?l=0:l>document.querySelector(".pdf-box").clientWidth-n.clientWidth*t.$parent.scale&&(l=document.querySelector(".pdf-box").clientWidth-n.clientWidth*t.$parent.scale),s<0?s=0:s>document.querySelector(".pdf-box").clientHeight-28*t.$parent.scale&&(s=document.querySelector(".pdf-box").clientHeight-28*t.$parent.scale);var i=0;s>t.$parent.pdfHeight*t.$parent.page_num?(s-=t.$parent.pdfHeight*t.$parent.page_num,i=t.$parent.page_num+1):(s-=t.$parent.pdfHeight*(t.$parent.page_num-1),i=t.$parent.page_num),s-=10*(i-1),n.style.left=l+"px",n.style.top=s+"px",n.style.height=28*t.$parent.scale+"px",n.style.width=n.clientWidth*t.$parent.scale+"px",document.querySelector("#pageContent").removeChild(n),document.querySelector("#can"+i).appendChild(n),document.onmousemove=null,document.onmouseup=null,n.childNodes[1].innerText="数字",n.onclick=t.textClick,n.onmousedown=t.moveTo,n.onmouseenter=t.TextMouseenter,n.onmouseleave=t.TextMouseleave,n.childNodes[3].onclick=t.TextDeleteIt,n.setAttribute("page",i),n.setAttribute("number_type",0)}},TextWidthChange:function(e){var t=this,n=e.currentTarget.parentNode,o=e.clientX,l=n.offsetWidth;return document.onmousemove=function(e){n.style.width=l+(e.clientX-o)+"px",n.offsetWidth<=70&&(n.style.width="70px"),n.offsetWidth+n.offsetLeft>=t.$parent.pdfWidth&&(n.style.width=t.$parent.pdfWidth-n.offsetLeft+"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null},e.stopPropagation(),e.preventDefault(),!1},TextDeleteIt:function(e){return this.hidden(),this.deleteText(e.currentTarget.parentNode),e.currentTarget.parentNode.parentNode.removeChild(e.currentTarget.parentNode),e.stopPropagation(),e.preventDefault(),!1},deleteText:function(e){var t=this;this.textId=e.getAttribute("textId"),this.textId&&setTimeout(function(){var e=1==t.$route.query.fromCreate?"plugin.yun-sign.frontend.contract.delete-form":"plugin.yun-sign.frontend.template.delete-template-form";$http.post(e,{id:t.textId}).then(function(e){1===e.result||t.$message.error(e.msg)}).catch(function(e){console.log(e)})},500)},textClick:function(e){return this.clearAll(),e.currentTarget.childNodes[0].style.display="flex",e.currentTarget.childNodes[3].style.display="block",e.currentTarget.classList.add("choose5"),e.currentTarget.onmouseleave=null,this.$parent.$refs.unumberInpSet&&this.$parent.$refs.unumberInpSet.initData(),l&&(l=!1),e.stopPropagation(),e.preventDefault(),!1},TextMouseenter:function(e){e.currentTarget.childNodes[0].style.display="flex",e.currentTarget.childNodes[3].style.display="block"},TextMouseleave:function(e){e.currentTarget.childNodes[0].style.display="none",e.currentTarget.childNodes[3].style.display="none"},moveTo:function(e){var t=this;o=(new Date).getTime();var n=e.currentTarget,s=e.clientX-n.offsetLeft,i=e.clientY-n.offsetTop;this.textClick(e),document.onmousemove=function(e){var o=e.clientX-s,l=e.clientY-i;o<=0?o=0:o>=document.querySelector(".pdf-box").clientWidth-n.clientWidth&&(o=document.querySelector(".pdf-box").clientWidth-n.clientWidth),l<=0?l=0:l>=t.pdfHeight-n.clientHeight&&(l=t.pdfHeight-n.clientHeight),n.style.left=o+"px",n.style.top=l+"px"},document.onmouseup=function(e){(new Date).getTime()-o<400&&(l=!0),document.onmousemove=null,document.onmouseup=null}},clearAll:function(){for(var e=0;e<document.querySelectorAll(".text_mark5").length;e++)document.querySelectorAll(".text_mark5")[e].childNodes[0].style.display="none",document.querySelectorAll(".text_mark5")[e].childNodes[3].style.display="none",document.querySelectorAll(".text_mark5")[e].onmouseleave=this.TextMouseleave,document.querySelectorAll(".text_mark5")[e].classList.remove("choose5");this.hidden()},hidden:function(){this.$store.commit("SET_ACTIVE_CL","0")}}},i=(n("osUJ"),n("KHd+")),r=Object(i.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control-library-template"},["add"==e.model?n("div",{staticClass:"componentNumberInp",on:{mousedown:e.signText}},[e._m(0),n("p",[e._v("数字")]),e._m(1),n("div",{staticClass:"text_delete",on:{click:function(t){return t.stopPropagation(),e.TextDeleteIt(t)}}},[e._v("删除")])]):e._e(),e._v(" "),"edit"==e.model?n("div",{staticClass:"componentNumberInp edit-style"},[e._m(2),e._v(" "),n("input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入数字"}}),n("div",{staticClass:"errorInfo_3lZie"},[e._v("请填写当前控件")])]):e._e()])},[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"itemConentStyle"},[t("span",{staticClass:"need"},[this._v("*")]),t("span",[this._v("数字")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticStyle:{"margin-top":"6px"}},[t("i",{staticClass:"iconfont icon-ht_textstyle_delete"}),t("i",{staticClass:"iconfont icon-pm_auction_success"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"itemConentStyle"},[t("span",{staticClass:"need"}),t("span",[this._v("数字")])])}],!1,null,"a9d43e58",null);r.options.__file="template.vue";t.a=r.exports}}]);
|