epx-frame 5.0.3 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/lib/0.js +1 -1
  2. package/lib/1.js +1 -1
  3. package/lib/115.js +1 -1
  4. package/lib/131.js +2 -2
  5. package/lib/132.js +1 -1
  6. package/lib/2.js +1 -1
  7. package/lib/components/Link.js +1 -1
  8. package/lib/components/add-form-item.js +1 -1
  9. package/lib/components/add-form.js +2 -2
  10. package/lib/components/ai-agent-page.js +1 -1
  11. package/lib/components/ai-chat-page.js +1 -1
  12. package/lib/components/ai-import-page.js +2 -2
  13. package/lib/components/ai-import.js +1 -1
  14. package/lib/components/alert.js +1 -1
  15. package/lib/components/app-index.js +1 -1
  16. package/lib/components/app-nav.js +2 -2
  17. package/lib/components/app-tabs.js +1 -1
  18. package/lib/components/apply-form.js +1 -1
  19. package/lib/components/approval-index-page.js +2 -2
  20. package/lib/components/approval-index.js +2 -2
  21. package/lib/components/base-page.js +2 -2
  22. package/lib/components/button.js +1 -1
  23. package/lib/components/card-form-item.js +1 -1
  24. package/lib/components/card.js +1 -1
  25. package/lib/components/carousel.js +1 -1
  26. package/lib/components/category-list.js +1 -1
  27. package/lib/components/chart.js +2 -2
  28. package/lib/components/check-history.js +2 -2
  29. package/lib/components/collapse.js +1 -1
  30. package/lib/components/color-picker.js +1 -1
  31. package/lib/components/component.js +1 -1
  32. package/lib/components/config-page.js +2 -2
  33. package/lib/components/contacts.js +1 -1
  34. package/lib/components/dashboard.js +1 -1
  35. package/lib/components/div.js +1 -1
  36. package/lib/components/dropdown.js +2 -2
  37. package/lib/components/edit-entity-list.js +1 -1
  38. package/lib/components/entity-add-page.js +2 -2
  39. package/lib/components/entity-apply-page.js +2 -2
  40. package/lib/components/entity-card-list.js +1 -1
  41. package/lib/components/entity-list-find-page.js +2 -2
  42. package/lib/components/entity-list-find.js +3 -1
  43. package/lib/components/entity-list-page.js +2 -2
  44. package/lib/components/entity-list.js +2 -2
  45. package/lib/components/entity-no-submit-sub-list.js +1 -1
  46. package/lib/components/entity-sub-grid.js +2 -2
  47. package/lib/components/entity-sub-list.js +2 -2
  48. package/lib/components/entity-tree-find-page.js +2 -2
  49. package/lib/components/entity-tree-find.js +2 -2
  50. package/lib/components/export-file.js +1 -1
  51. package/lib/components/export.js +2 -2
  52. package/lib/components/flow-num.js +1 -1
  53. package/lib/components/footer.js +1 -1
  54. package/lib/components/form-field.js +1 -1
  55. package/lib/components/form-item.js +2 -2
  56. package/lib/components/form.js +2 -2
  57. package/lib/components/formula.js +1 -1
  58. package/lib/components/gauge.js +1 -1
  59. package/lib/components/grid.js +1 -1
  60. package/lib/components/header.js +1 -1
  61. package/lib/components/html.js +1 -1
  62. package/lib/components/icon.js +1 -1
  63. package/lib/components/iframe.js +1 -1
  64. package/lib/components/image.js +1 -1
  65. package/lib/components/import-file.js +1 -1
  66. package/lib/components/import.js +2 -2
  67. package/lib/components/layout.js +1 -1
  68. package/lib/components/list.js +1 -1
  69. package/lib/components/load-page.js +1 -1
  70. package/lib/components/m-entity-add-page.js +2 -2
  71. package/lib/components/m-entity-dept-find.js +1 -1
  72. package/lib/components/m-entity-list-find.js +1 -1
  73. package/lib/components/m-entity-list.js +1 -1
  74. package/lib/components/m-entity-no-submit-sub-list.js +2 -2
  75. package/lib/components/m-entity-tree-find.js +1 -1
  76. package/lib/components/m-entity-user-find.js +1 -1
  77. package/lib/components/menu-index.js +1 -1
  78. package/lib/components/menu.js +1 -1
  79. package/lib/components/mine.js +1 -1
  80. package/lib/components/module-index-page.js +2 -2
  81. package/lib/components/module-list-page.js +2 -2
  82. package/lib/components/module-list.js +1 -1
  83. package/lib/components/module-tabs-page.js +2 -2
  84. package/lib/components/nav-add-form.js +1 -1
  85. package/lib/components/num.js +1 -1
  86. package/lib/components/org-chart.js +1 -1
  87. package/lib/components/page-help.js +1 -1
  88. package/lib/components/page-tabs.js +1 -1
  89. package/lib/components/page.js +2 -2
  90. package/lib/components/pagination.js +1 -1
  91. package/lib/components/progress-chart.js +1 -1
  92. package/lib/components/progress.js +1 -1
  93. package/lib/components/report-chart.js +2 -2
  94. package/lib/components/report-html.js +2 -2
  95. package/lib/components/report-preview.js +2 -2
  96. package/lib/components/report.js +2 -2
  97. package/lib/components/router-view.js +1 -1
  98. package/lib/components/scope.js +2 -2
  99. package/lib/components/search-bar.js +1 -1
  100. package/lib/components/search-list.js +1 -1
  101. package/lib/components/search.js +2 -2
  102. package/lib/components/step-item.js +1 -1
  103. package/lib/components/step.js +1 -1
  104. package/lib/components/tab-bar.js +1 -1
  105. package/lib/components/tab-tags.js +1 -1
  106. package/lib/components/tabs.js +1 -1
  107. package/lib/components/tag.js +1 -1
  108. package/lib/components/task-list-page.js +2 -2
  109. package/lib/components/task-list.js +2 -2
  110. package/lib/components/template.js +2 -2
  111. package/lib/components/text-editor.js +1 -1
  112. package/lib/components/text.js +1 -1
  113. package/lib/components/title.js +1 -1
  114. package/lib/components/video.js +1 -1
  115. package/lib/components/visual-config-page.js +2 -2
  116. package/lib/epx-frame.common.js +1 -1
  117. package/lib/http.js +2 -2
  118. package/lib/router.js +2 -2
  119. package/lib/store.js +2 -2
  120. package/lib/utils/Config.js +1 -1
  121. package/lib/utils/axios.js +2 -2
  122. package/lib/utils/chartTheme.js +1 -1
  123. package/lib/utils/fieldFactory.js +2 -2
  124. package/lib/utils/formula.js +1 -1
  125. package/lib/utils/index.js +2 -2
  126. package/lib/utils/loadComponent.js +1 -1
  127. package/lib/utils/loadLibrary.js +1 -1
  128. package/lib/utils/meta.js +1 -1
  129. package/lib/utils/mixins/component.js +2 -2
  130. package/lib/utils/mixins/global.js +2 -2
  131. package/lib/utils/mixins/index.js +2 -2
  132. package/lib/utils/page.js +1 -1
  133. package/lib/utils/pdf.viewer.js +2 -2
  134. package/lib/utils/util.js +1 -1
  135. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
- module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=783)}({0:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(7);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},12:function(e,t){e.exports=require("core-js/modules/es.array.find.js")},18:function(e,t,n){"use strict";function r(e,t,n,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(r=function(e,t,n,o){function c(t,n){r(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(c("next",0),c("throw",1),c("return",2))})(e,t,n,o)}function o(){
1
+ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=787)}({0:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(7);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},11:function(e,t){e.exports=require("core-js/modules/es.array.find.js")},18:function(e,t,n){"use strict";function r(e,t,n,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(r=function(e,t,n,o){function c(t,n){r(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(c("next",0),c("throw",1),c("return",2))})(e,t,n,o)}function o(){
2
2
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
3
- var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",c=n.toStringTag||"@@toStringTag";function a(n,o,i,c){var a=o&&o.prototype instanceof s?o:s,f=Object.create(a.prototype);return r(f,"_invoke",function(n,r,o){var i,c,a,s=0,f=o||[],l=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,c=0,a=e,p.n=n,u}};function d(n,r){for(c=n,a=r,t=0;!l&&s&&!o&&t<f.length;t++){var o,i=f[t],d=p.p,h=i[2];n>3?(o=h===r)&&(a=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return u;throw l=!0,r}return function(o,f,h){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,h),c=f,a=h;(t=c<2?e:a)||!l;){i||(c?c<3?(c>1&&(p.n=-1),d(c,a)):p.n=a:p.v=a);try{if(s=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(l=p.n<0)?a:n.call(r,p))!==u)break}catch(t){i=e,c=1,a=t}finally{s=1}}return{value:t,done:l}}}(n,i,c),!0),f}var u={};function s(){}function f(){}function l(){}t=Object.getPrototypeOf;var p=[][i]?t(t([][i]())):(r(t={},i,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,r(e,c,"GeneratorFunction")),e.prototype=Object.create(d),e}return f.prototype=l,r(d,"constructor",l),r(l,"constructor",f),f.displayName="GeneratorFunction",r(l,c,"GeneratorFunction"),r(d),r(d,c,"Generator"),r(d,i,(function(){return this})),r(d,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:a,m:h}})()}n.d(t,"a",(function(){return o}))},19:function(e,t){e.exports=require("core-js/modules/es.iterator.constructor.js")},2:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c,a){var u,s="function"==typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),c?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},s._ssrRegister=u):o&&(u=a?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var f=s.render;s.render=function(e,t){return u.call(t),f(e,t)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,u):[u]}return{exports:e,options:s}}n.d(t,"a",(function(){return r}))},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(5);function o(e){var t=function(e,t){if("object"!=Object(r.a)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Object(r.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(r.a)(t)?t:t+""}},24:function(e,t){e.exports=require("epx-frame/lib/utils/mixins/component")},28:function(e,t){e.exports=require("core-js/modules/es.iterator.find.js")},3:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),c=[];function a(e){for(var t=-1,n=0;n<c.length;n++)if(c[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,f="".concat(u," ").concat(s);n[u]=s+1;var l=a(f),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(c[l].references++,c[l].updater(p)):c.push({identifier:f,updater:v(p,t),references:1}),r.push(f)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var c=i(e.insert||"head");if(!c)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");c.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var i=document.createTextNode(o),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(i,c[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function v(e,t){var n,r,o;if(t.singleton){var i=m++;n=h||(h=s(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=s(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=a(n[r]);c[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var f=a(n[s]);0===c[f].references&&(c[f].updater(),c.splice(f,1))}n=i}}}},33:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var c=e.apply(t,n);function a(e){r(c,o,i,a,u,"next",e)}function u(e){r(c,o,i,a,u,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},4:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(o[c]=!0)}for(var a=0;a<e.length;a++){var u=[].concat(e[a]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},5:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},522:function(e,t,n){"use strict";var r=n(4),o=n.n(r)()((function(e){return e[1]}));o.push([e.i,':root{--color-primary: 8,116,231 }.epx-report-html{display:flex;box-sizing:border-box;padding:10px;background:#fff;height:100%;overflow:auto}.epx-report-html--dark{background:hsla(0,0%,100%,.1);color:#fff}.epx-report-html--technology{background:hsla(0,0%,100%,.1);backdrop-filter:blur(4px);position:relative;color:#fff}.epx-report-html--technology::before{content:"";position:absolute;top:0;display:block;width:100%;height:1px;background:linear-gradient(90deg, rgba(45, 164, 247, 0) 0%, #2DA4F7 50%, rgba(45, 164, 247, 0) 100%);opacity:.5}.epx-report-html--technology::after{content:"";position:absolute;bottom:0;display:block;width:100%;height:1px;background:linear-gradient(90deg, rgba(45, 164, 247, 0) 0%, #2DA4F7 50%, rgba(45, 164, 247, 0) 100%);opacity:.5}.epx-report-html__placeholder{text-align:center;font-size:18px;font-weight:bold}',""]),t.a=o},6:function(e,t){e.exports=require("core-js/modules/es.object.to-string.js")},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(23);function o(e,t,n){return(t=Object(r.a)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},783:function(e,t,n){"use strict";n.r(t);n(8);var r=function(){var e=this,t=e._self._c;return t("div",{class:["epx-report-html","epx-report-html--"+e.compTheme],style:e.style},[e.reportHtml?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"epx-report-html__content",domProps:{innerHTML:e._s(e.reportHtml)}}):e.loading?e._e():t("div",{staticClass:"epx-report-html__placeholder"},[e._v("请配置电子表单内容")])])};r._withStripped=!0;var o=n(18),i=n(33),c=n(0),a=(n(12),n(6),n(19),n(28),n(24)),u={name:"epx-report-html","justify-content":"center","align-items":"center",props:{theme:String},mixins:[n.n(a).a],data:function(){return{loading:!0,reportHtml:""}},computed:{compTheme:function(){return this.$configs.theme&&"0"!==this.$configs.theme?this.$configs.theme:this.theme},style:function(){var e=this.$configs,t=e["justify-content"],n=e["align-items"];return Object(c.a)({justifyContent:t||"center",alignItems:n||"center"},this.$component.style)}},methods:{getReportInfo:function(){var e=this,t=this.$configs,n=t.code,r=void 0===n?this.$query.code:n,o=t.id,i=void 0===o?this.$query.id:o,a={};return i?a["scope.ID"]=i:r&&(a["scope.CODE"]=r),this.$http.find(Object(c.a)({entityId:"FM_FORM"},a)).then((function(t){return e.reportInfo=t?t.data:null,e.reportInfo})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},preview:function(){var e=this;return Object(i.a)(Object(o.a)().m((function t(){var n,r,i,a,u,s,f,l,p,d,h;return Object(o.a)().w((function(t){for(;;)switch(t.n){case 0:if(n=e.$query.params,r=void 0===n?{}:n,i=e.$configs.params,a=void 0===i?{}:i,u=e.$configs,s=u.code,f=void 0===s?e.$query.code:s,l=u.id,p=void 0===l?e.$query.id:l,e.loading=!0,f){t.n=3;break}return t.n=1,e.getReportInfo();case 1:if(d=t.v){t.n=2;break}return t.a(2);case 2:f=d.CODE;case 3:h=e.$formatParams(a),e.$http.save(Object(c.a)(Object(c.a)({action:"preview",entityId:"FM_FORM",code:f,id:p},r),h)).then((function(t){e.reportHtml=t.content;var n=document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.styleSheet?r.styleSheet.cssText=t.style:r.appendChild(document.createTextNode(t.style)),n.appendChild(r),e.loading=!1})).catch((function(t){e.loading=!1,e.$message.error(t.message)}));case 4:return t.a(2)}}),t)})))()}},mounted:function(){},created:function(){this.preview()}},s=n(3),f=n.n(s),l=n(522),p={insert:"head",singleton:!1},d=(f()(l.a,p),l.a.locals,n(2)),h=Object(d.a)(u,r,[],!1,null,null,null).exports;h.install=function(e){e.component(h.name,h)};t.default=h},8:function(e,t){e.exports=require("core-js/modules/es.function.name.js")}});
3
+ var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",c=n.toStringTag||"@@toStringTag";function a(n,o,i,c){var a=o&&o.prototype instanceof s?o:s,f=Object.create(a.prototype);return r(f,"_invoke",function(n,r,o){var i,c,a,s=0,f=o||[],l=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,c=0,a=e,p.n=n,u}};function d(n,r){for(c=n,a=r,t=0;!l&&s&&!o&&t<f.length;t++){var o,i=f[t],d=p.p,h=i[2];n>3?(o=h===r)&&(a=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return u;throw l=!0,r}return function(o,f,h){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,h),c=f,a=h;(t=c<2?e:a)||!l;){i||(c?c<3?(c>1&&(p.n=-1),d(c,a)):p.n=a:p.v=a);try{if(s=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(l=p.n<0)?a:n.call(r,p))!==u)break}catch(t){i=e,c=1,a=t}finally{s=1}}return{value:t,done:l}}}(n,i,c),!0),f}var u={};function s(){}function f(){}function l(){}t=Object.getPrototypeOf;var p=[][i]?t(t([][i]())):(r(t={},i,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,r(e,c,"GeneratorFunction")),e.prototype=Object.create(d),e}return f.prototype=l,r(d,"constructor",l),r(l,"constructor",f),f.displayName="GeneratorFunction",r(l,c,"GeneratorFunction"),r(d),r(d,c,"Generator"),r(d,i,(function(){return this})),r(d,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:a,m:h}})()}n.d(t,"a",(function(){return o}))},19:function(e,t){e.exports=require("core-js/modules/es.iterator.constructor.js")},2:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c,a){var u,s="function"==typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),c?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},s._ssrRegister=u):o&&(u=a?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var f=s.render;s.render=function(e,t){return u.call(t),f(e,t)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,u):[u]}return{exports:e,options:s}}n.d(t,"a",(function(){return r}))},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(5);function o(e){var t=function(e,t){if("object"!=Object(r.a)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Object(r.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(r.a)(t)?t:t+""}},24:function(e,t){e.exports=require("epx-frame/lib/utils/mixins/component")},28:function(e,t){e.exports=require("core-js/modules/es.iterator.find.js")},3:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),c=[];function a(e){for(var t=-1,n=0;n<c.length;n++)if(c[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,f="".concat(u," ").concat(s);n[u]=s+1;var l=a(f),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(c[l].references++,c[l].updater(p)):c.push({identifier:f,updater:v(p,t),references:1}),r.push(f)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var c=i(e.insert||"head");if(!c)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");c.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var i=document.createTextNode(o),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(i,c[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function v(e,t){var n,r,o;if(t.singleton){var i=m++;n=h||(h=s(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=s(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=a(n[r]);c[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var f=a(n[s]);0===c[f].references&&(c[f].updater(),c.splice(f,1))}n=i}}}},32:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var c=e.apply(t,n);function a(e){r(c,o,i,a,u,"next",e)}function u(e){r(c,o,i,a,u,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},4:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(o[c]=!0)}for(var a=0;a<e.length;a++){var u=[].concat(e[a]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},5:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},531:function(e,t,n){"use strict";var r=n(4),o=n.n(r)()((function(e){return e[1]}));o.push([e.i,':root{--color-primary: 8,116,231 }.epx-report-html{display:flex;box-sizing:border-box;padding:10px;background:#fff;height:100%;overflow:auto}.epx-report-html--dark{background:hsla(0,0%,100%,.1);color:#fff}.epx-report-html--technology{background:hsla(0,0%,100%,.1);backdrop-filter:blur(4px);position:relative;color:#fff}.epx-report-html--technology::before{content:"";position:absolute;top:0;display:block;width:100%;height:1px;background:linear-gradient(90deg, rgba(45, 164, 247, 0) 0%, #2DA4F7 50%, rgba(45, 164, 247, 0) 100%);opacity:.5}.epx-report-html--technology::after{content:"";position:absolute;bottom:0;display:block;width:100%;height:1px;background:linear-gradient(90deg, rgba(45, 164, 247, 0) 0%, #2DA4F7 50%, rgba(45, 164, 247, 0) 100%);opacity:.5}.epx-report-html__placeholder{text-align:center;font-size:18px;font-weight:bold}',""]),t.a=o},6:function(e,t){e.exports=require("core-js/modules/es.object.to-string.js")},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(23);function o(e,t,n){return(t=Object(r.a)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},787:function(e,t,n){"use strict";n.r(t);n(8);var r=function(){var e=this,t=e._self._c;return t("div",{class:["epx-report-html","epx-report-html--"+e.compTheme],style:e.style},[e.reportHtml?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"epx-report-html__content",domProps:{innerHTML:e._s(e.reportHtml)}}):e.loading?e._e():t("div",{staticClass:"epx-report-html__placeholder"},[e._v("请配置电子表单内容")])])};r._withStripped=!0;var o=n(18),i=n(32),c=n(0),a=(n(11),n(6),n(19),n(28),n(24)),u={name:"epx-report-html","justify-content":"center","align-items":"center",props:{theme:String},mixins:[n.n(a).a],data:function(){return{loading:!0,reportHtml:""}},computed:{compTheme:function(){return this.$configs.theme&&"0"!==this.$configs.theme?this.$configs.theme:this.theme},style:function(){var e=this.$configs,t=e["justify-content"],n=e["align-items"];return Object(c.a)({justifyContent:t||"center",alignItems:n||"center"},this.$component.style)}},methods:{getReportInfo:function(){var e=this,t=this.$configs,n=t.code,r=void 0===n?this.$query.code:n,o=t.id,i=void 0===o?this.$query.id:o,a={};return i?a["scope.ID"]=i:r&&(a["scope.CODE"]=r),this.$http.find(Object(c.a)({entityId:"FM_FORM"},a)).then((function(t){return e.reportInfo=t?t.data:null,e.reportInfo})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},preview:function(){var e=this;return Object(i.a)(Object(o.a)().m((function t(){var n,r,i,a,u,s,f,l,p,d,h;return Object(o.a)().w((function(t){for(;;)switch(t.n){case 0:if(n=e.$query.params,r=void 0===n?{}:n,i=e.$configs.params,a=void 0===i?{}:i,u=e.$configs,s=u.code,f=void 0===s?e.$query.code:s,l=u.id,p=void 0===l?e.$query.id:l,e.loading=!0,f){t.n=3;break}return t.n=1,e.getReportInfo();case 1:if(d=t.v){t.n=2;break}return t.a(2);case 2:f=d.CODE;case 3:h=e.$formatParams(a),e.$http.save(Object(c.a)(Object(c.a)({action:"preview",entityId:"FM_FORM",code:f,id:p},r),h)).then((function(t){e.reportHtml=t.content;var n=document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.styleSheet?r.styleSheet.cssText=t.style:r.appendChild(document.createTextNode(t.style)),n.appendChild(r),e.loading=!1})).catch((function(t){e.loading=!1,e.$message.error(t.message)}));case 4:return t.a(2)}}),t)})))()}},mounted:function(){},created:function(){this.preview()}},s=n(3),f=n.n(s),l=n(531),p={insert:"head",singleton:!1},d=(f()(l.a,p),l.a.locals,n(2)),h=Object(d.a)(u,r,[],!1,null,null,null).exports;h.install=function(e){e.component(h.name,h)};t.default=h},8:function(e,t){e.exports=require("core-js/modules/es.function.name.js")}});
@@ -1,3 +1,3 @@
1
- module.exports=function(e){function t(t){for(var r,o,i=t[0],a=t[1],c=0,u=[];c<i.length;c++)o=i[c],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&u.push(n[o][0]),n[o]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);for(s&&s(t);u.length;)u.shift()()}var r={},n={92:0};function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=r,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/dist/",o.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var c=0;c<i.length;c++)t(i[c]);var s=a;return o(o.s=784)}({0:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(7);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},10:function(e,t){e.exports=require("core-js/modules/es.array.map.js")},100:function(e,t){e.exports=require("core-js/modules/web.url-search-params.size.js")},12:function(e,t){e.exports=require("core-js/modules/es.array.find.js")},13:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(9);function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},14:function(e,t){e.exports=require("core-js/modules/es.array.includes.js")},16:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(13);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Object(n.a)(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){s=!0,a=e},f:function(){try{c||null==r.return||r.return()}finally{if(s)throw a}}}}},18:function(e,t,r){"use strict";function n(e,t,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(n=function(e,t,r,o){function a(t,r){n(e,t,(function(e){return this._invoke(t,r,e)}))}t?i?i(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(a("next",0),a("throw",1),a("return",2))})(e,t,r,o)}function o(){
1
+ module.exports=function(e){function t(t){for(var r,o,i=t[0],a=t[1],c=0,u=[];c<i.length;c++)o=i[c],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&u.push(n[o][0]),n[o]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);for(s&&s(t);u.length;)u.shift()()}var r={},n={92:0};function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=r,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/dist/",o.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var c=0;c<i.length;c++)t(i[c]);var s=a;return o(o.s=788)}({0:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(7);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},10:function(e,t){e.exports=require("core-js/modules/es.array.map.js")},100:function(e,t){e.exports=require("core-js/modules/web.url-search-params.size.js")},11:function(e,t){e.exports=require("core-js/modules/es.array.find.js")},13:function(e,t){e.exports=require("core-js/modules/es.array.includes.js")},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(9);function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},16:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(14);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Object(n.a)(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){s=!0,a=e},f:function(){try{c||null==r.return||r.return()}finally{if(s)throw a}}}}},18:function(e,t,r){"use strict";function n(e,t,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(n=function(e,t,r,o){function a(t,r){n(e,t,(function(e){return this._invoke(t,r,e)}))}t?i?i(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(a("next",0),a("throw",1),a("return",2))})(e,t,r,o)}function o(){
2
2
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
3
- var e,t,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function c(r,o,i,a){var c=o&&o.prototype instanceof u?o:u,d=Object.create(c.prototype);return n(d,"_invoke",function(r,n,o){var i,a,c,u=0,d=o||[],l=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!l&&u&&!o&&t<d.length;t++){var o,i=d[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw l=!0,n}return function(o,d,h){if(u>1)throw TypeError("Generator is already running");for(l&&1===d&&p(d,h),a=d,c=h;(t=a<2?e:c)||!l;){i||(a?a<3?(a>1&&(f.n=-1),p(a,c)):f.n=c:f.v=c);try{if(u=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(l=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{u=1}}return{value:t,done:l}}}(r,i,a),!0),d}var s={};function u(){}function d(){}function l(){}t=Object.getPrototypeOf;var f=[][i]?t(t([][i]())):(n(t={},i,(function(){return this})),t),p=l.prototype=u.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,n(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return d.prototype=l,n(p,"constructor",l),n(l,"constructor",d),d.displayName="GeneratorFunction",n(l,a,"GeneratorFunction"),n(p),n(p,a,"Generator"),n(p,i,(function(){return this})),n(p,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:c,m:h}})()}r.d(t,"a",(function(){return o}))},19:function(e,t){e.exports=require("core-js/modules/es.iterator.constructor.js")},2:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a,c){var s,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=s):o&&(s=c?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var d=u.render;u.render=function(e,t){return s.call(t),d(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,s):[s]}return{exports:e,options:u}}r.d(t,"a",(function(){return n}))},21:function(e,t){e.exports=require("core-js/modules/es.string.includes.js")},22:function(e,t){e.exports=require("core-js/modules/es.object.keys.js")},223:function(e,t){e.exports=require("jspdf")},23:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(5);function o(e){var t=function(e,t){if("object"!=Object(n.a)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=Object(n.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(n.a)(t)?t:t+""}},24:function(e,t){e.exports=require("epx-frame/lib/utils/mixins/component")},25:function(e,t){e.exports=require("core-js/modules/es.iterator.map.js")},26:function(e,t){e.exports=require("core-js/modules/es.array.push.js")},27:function(e,t){e.exports=require("core-js/modules/web.dom-collections.iterator.js")},28:function(e,t){e.exports=require("core-js/modules/es.iterator.find.js")},3:function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function c(e){for(var t=-1,r=0;r<a.length;r++)if(a[r].identifier===e){t=r;break}return t}function s(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],u=r[s]||0,d="".concat(s," ").concat(u);r[s]=u+1;var l=c(d),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(a[l].references++,a[l].updater(f)):a.push({identifier:d,updater:v(f,t),references:1}),n.push(d)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var d,l=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function f(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var h=null,m=0;function v(e,t){var r,n,o;if(t.singleton){var i=m++;r=h||(h=u(t)),n=f.bind(null,r,i,!1),o=f.bind(null,r,i,!0)}else r=u(t),n=p.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=c(r[n]);a[o].references--}for(var i=s(e,t),u=0;u<r.length;u++){var d=c(r[u]);0===a[d].references&&(a[d].updater(),a.splice(d,1))}r=i}}}},33:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,s,"next",e)}function s(e){n(a,o,i,c,s,"throw",e)}c(void 0)}))}}r.d(t,"a",(function(){return o}))},35:function(e,t){e.exports=require("core-js/modules/es.string.iterator.js")},39:function(e,t){e.exports=require("core-js/modules/es.array.iterator.js")},4:function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);n&&o[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),t.push(s))}},t}},47:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(13);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||Object(n.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},49:function(e,t){e.exports=require("core-js/modules/es.promise.js")},5:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,"a",(function(){return n}))},523:function(e,t,r){"use strict";var n=r(4),o=r.n(n)()((function(e){return e[1]}));o.push([e.i,"[data-v-1efc4044]:root{--color-primary: 8,116,231 }.container[data-v-1efc4044]{width:100%;height:100%}.report-header[data-v-1efc4044]{height:56px;background:#fff;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8e8e8}.report-body[data-v-1efc4044]{height:calc(100% - 58px);width:100%;box-sizing:border-box;padding:10px;background:#fff;overflow:auto}.report-back[data-v-1efc4044]{font-size:20px;cursor:pointer;position:relative;top:1px}.mobile-content[data-v-1efc4044] table{width:100% !important}",""]),t.a=o},595:function(e,t){e.exports=require("@hufe921/canvas-editor")},6:function(e,t){e.exports=require("core-js/modules/es.object.to-string.js")},7:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(23);function o(e,t,r){return(t=Object(n.a)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},784:function(e,t,r){"use strict";r.r(t);r(8);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container",style:e.$component.style},[t("div",{staticClass:"report-header"},[t("div",{staticClass:"report-title"},[t("span",{staticClass:"report-name"},[e._v(e._s(e.$component.title||e.reportInfo.TITLE||"报表预览"))])]),t("div",{staticClass:"report-operate"},[e.$isMobile?[t("el-dropdown",[t("span",[t("i",{staticClass:"el-icon-more",staticStyle:{"font-size":"18px"}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.showOperates.includes("downloadPdf")&&("wordReport"===e.reportInfo.TYPE||e.pdfUrl)?t("el-dropdown-item",{nativeOn:{click:function(t){return e.downloadPdf.apply(null,arguments)}}},[e._v("下载pdf")]):e._e(),e.showOperates.includes("downloadWord")?t("el-dropdown-item",{nativeOn:{click:function(t){return e.downloadWord.apply(null,arguments)}}},[e._v("下载Word")]):e._e(),"excelReport"===e.reportInfo.TYPE&&e.showOperates.includes("downloadExcel")?t("el-dropdown-item",{nativeOn:{click:function(t){return e.exportExcel.apply(null,arguments)}}},[e._v("下载excel")]):e._e(),e.showOperates.includes("print")?t("el-dropdown-item",{nativeOn:{click:function(t){return e.print.apply(null,arguments)}}},[e._v("打印")]):e._e()],1)],1)]:[e.showOperates.includes("downloadPdf")&&("wordReport"===e.reportInfo.TYPE||e.pdfUrl)?t("el-button",{attrs:{type:"primary"},on:{click:e.downloadPdf}},[e._v("下载pdf")]):e._e(),e.showOperates.includes("downloadWord")?t("el-button",{attrs:{type:"primary"},on:{click:e.downloadWord}},[e._v("下载Word")]):e._e(),"excelReport"===e.reportInfo.TYPE&&e.showOperates.includes("downloadExcel")?t("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[e._v("下载excel")]):e._e(),e.showOperates.includes("print")?t("el-button",{attrs:{type:"primary"},on:{click:e.print}},[e._v("打印")]):e._e()]],2)]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"report-body"},["excelReport"===e.reportInfo.TYPE?t("div",{class:{"mobile-content":e.$isMobile},domProps:{innerHTML:e._s(e.reportHtml)}}):e._l(e.numPages,(function(e){return t("canvas",{key:e,ref:"canvas"+e,refInFor:!0})}))],2),e.showOperates.includes("print")?t("iframe",{ref:"iframe",style:{position:"absolute",top:0,left:0,opacity:0,zIndex:-1},attrs:{src:e.pdfUrl}}):e._e()])};n._withStripped=!0;var o=r(18),i=r(16),a=r(33),c=r(0),s=r(47),u=(r(12),r(14),r(39),r(10),r(22),r(6),r(49),r(21),r(35),r(27),r(82),r(83),r(84),r(26),r(19),r(28),r(25),r(98),r(99),r(100),r(223)),d=r(24),l={name:"epx-report-preview",style:{margin:0},mixins:[r.n(d).a],props:{formData:{type:Object,default:function(){return{}}}},data:function(){return{reportInfo:{},reportHtml:"",pdfUrl:"",pdfName:"",numPages:[],loading:!0}},computed:{showOperates:function(){var e=this.$query,t=e.printOperates,r=e.downloadPdfFlag,n=void 0===r||r,o=e.downloadWordFlag,i=void 0===o||o,a=e.downloadExcelFlag,c=void 0===a||a,s=e.printFlag,u=void 0===s||s,d=this.$configs,l=d.printOperates,f=void 0===l?t:l,p=d.downloadPdfFlag,h=void 0===p?n:p,m=d.downloadWordFlag,v=void 0===m?i:m,b=d.downloadExcelFlag,y=void 0===b?c:b,g=d.printFlag,w=void 0===g?u:g;if(f)return f;var j=[];return h&&j.push("downloadPdf"),v&&j.push("downloadWord"),y&&j.push("downloadExcel"),w&&j.push("print"),j}},watch:{},methods:{getReportInfo:function(){var e=this,t=this.$configs.code,r=void 0===t?this.$query.code:t;this.loading=!0,this.$http.find({entityId:"FM_FORM","scope.CODE":r}).then((function(t){e.reportInfo=t.data,"excelReport"===t.data.TYPE?e.previewExcel():"wordReport"===t.data.TYPE?e.previewWord():e.previewForm(),(e.showOperates.includes("print")||e.showOperates.includes("downloadPdf"))&&e.exportPdf()})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},loadEditor:function(){var e=this;return Promise.all([Promise.resolve().then(r.t.bind(null,595,7))]).then((function(t){var r=Object(s.a)(t,1)[0];return e.CanvasEditor=r,{Editor:r.Editor,EditorMode:r.EditorMode}}))},previewExcel:function(){var e=this,t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,o=void 0===n?{}:n,i=this.$configs.code,a=void 0===i?this.$query.code:i,s=this.$formatParams(o,this.formData);this.$http.save(Object(c.a)(Object(c.a)({action:"preview",entityId:"FM_FORM",code:a,id:this.$query.id},r),s)).then((function(t){e.reportHtml=t.content;var r=document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=t.style:n.appendChild(document.createTextNode(t.style)),r.appendChild(n),e.loading=!1})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},previewWord:function(){var e=this,t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,s=void 0===n?{}:n,d=this.$formatParams(s,this.formData),l=this.$configs.code,f=void 0===l?this.$query.code:l;this.$http.save(Object(c.a)(Object(c.a)({action:"transferWord",entityId:"FM_FORM",code:f,id:this.$query.id},r),d)).then(function(){var t=Object(a.a)(Object(o.a)().m((function t(r){var n,s,d,l,f,p,h,m,v,b,y,g,w,j;return Object(o.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:n=r?JSON.parse(r):{},s=n.data,d=void 0===s?{header:[],main:[],footer:[]}:s,l=n.options,f=void 0===l?{}:l,p=Object(i.a)(d.main),t.p=1,p.s();case 2:if((h=p.n()).done){t.n=5;break}if(!(m=h.value).extension||!m.value||"photo"!==m.extension.fieldType&&"signature"!==m.extension.fieldType){t.n=4;break}return m.type="image",t.n=3,e.$util.urlToBase64(e.$util.getFileUrl(m.value));case 3:v=t.v,b=v.data,y=v.width,g=v.height,m.value=b,m.width=m.extension.imageWidth||y,m.height=m.extension.imageHeight||g;case 4:t.n=2;break;case 5:t.n=7;break;case 6:t.p=6,j=t.v,p.e(j);case 7:return t.p=7,p.f(),t.f(7);case 8:w=document.createElement("div"),e.loadEditor(function(){var t=Object(a.a)(Object(o.a)().m((function t(r){var n,i,a,s,l,p,h,m;return Object(o.a)().w((function(t){for(;;)switch(t.n){case 0:return n=r.Editor,i=r.EditorMode,e.printEditor=new n(w,Object(c.a)({mode:i.PRINT},d),f),a=f.printPixelRatio,s=f.width,l=f.height,t.n=1,e.printEditor.command.getImage({pixelRatio:a,mode:i.PRINT});case 1:p=t.v,h=new u.jsPDF({unit:"px",format:[s,l]}),p.map((function(e,t){h.addImage(e,"PNG",0,t,s,l),t!==p.length-1&&h.addPage()})),m=h.output("bloburi"),e.pdfUrl=m,e.$util.usePlugin("pdf").then((function(t){e.pdfjs=t,e.pdfjs.getDocument({url:m,cMapUrl:"/cmaps/",cMapPacked:!0}).promise.then((function(t){e.pdfDoc=t,e.numPages=e.pdfDoc.numPages,e.$nextTick((function(){e.loading=!1,e.renderPage(1)}))}))}));case 2:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}());case 9:return t.a(2)}}),t,null,[[1,6,7,8]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},previewForm:function(){var e=this,t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,o=void 0===n?{}:n,i=this.$formatParams(o,this.formData),a=this.$configs.code,s=void 0===a?this.$query.code:a;this.$http.save(Object(c.a)(Object(c.a)({action:"exportPdf",entityId:"FM_FORM",code:s,id:this.$query.id},r),i),{responseType:"blob"}).then((function(t){var r=t.blob,n=(t.filename,e),o=window.URL.createObjectURL(r);e.loading=!1,e.$util.usePlugin("pdf").then((function(t){e.pdfjs=t,e.pdfjs.getDocument({url:o,cMapUrl:"/cmaps/",cMapPacked:!0}).promise.then((function(t){e.pdfDoc=t,e.numPages=e.pdfDoc.numPages,n.$nextTick((function(){n.loading=!1,n.renderPage(1)}))}))}))})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},renderPage:function(e){var t=this;this.pdfDoc.getPage(e).then((function(r){var n=t.$refs["canvas"+e][0],o=n.getContext("2d"),i=r.getViewport({scale:2});document.querySelector("meta[name=viewport]").setAttribute("content","width=device-width"),n.width=i.width,n.height=i.height,n.style.width="100%";var a={canvasContext:o,viewport:i};r.render(a),t.numPages>e&&t.renderPage(e+1)}))},exportExcel:function(){var e=this,t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,o=void 0===n?{}:n,i=this.$formatParams(o,this.formData),a=this.$configs.code,s=void 0===a?this.$query.code:a;this.$http.save(Object(c.a)(Object(c.a)({action:"exportExcel",entityId:"FM_FORM",code:s,id:this.$query.id},r),i),{responseType:"blob"}).then((function(e){var t=e.blob,r=e.filename,n=document.createElement("a");document.body.appendChild(n);var o=URL.createObjectURL(t);n.href=o,n.download=r,n.click(),window.URL.revokeObjectURL(o),document.body.removeChild(n)})).catch((function(t){e.$message.error(t.message)}))},exportPdf:function(){var e=this;if("wordReport"!==this.reportInfo.TYPE){var t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,o=void 0===n?{}:n,i=this.$formatParams(o,this.formData),a=this.$configs.code,s=void 0===a?this.$query.code:a;this.$http.save(Object(c.a)(Object(c.a)({action:"exportPdf",entityId:"FM_FORM",code:s,id:this.$query.id},r),i),{responseType:"blob"}).then((function(t){var r=t.blob,n=t.filename,o=window.URL.createObjectURL(r);e.pdfUrl=o,e.pdfName=n})).catch((function(t){e.$message.error(t.message)}))}},print:function(){this.$refs.iframe.contentWindow.print()},downloadPdf:function(){if("wordReport"===this.reportInfo.TYPE)this.previewWord();else{var e=document.createElement("a");document.body.appendChild(e),e.href=this.pdfUrl,e.download=this.pdfName,e.click(),document.body.removeChild(e)}},downloadWord:function(){var e=this,t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,o=void 0===n?{}:n,i=this.$formatParams(o,this.formData),a=this.$configs.code,s=void 0===a?this.$query.code:a;this.$http.save(Object(c.a)(Object(c.a)({action:"exportWord",entityId:"FM_FORM",code:s,id:this.$query.id},r),i),{responseType:"blob"}).then((function(e){var t=e.blob,r=e.filename,n=document.createElement("a");document.body.appendChild(n);var o=URL.createObjectURL(t);n.href=o,n.download=r,n.click(),window.URL.revokeObjectURL(o),document.body.removeChild(n)})).catch((function(t){e.$message.error(t.message)}))}},mounted:function(){},created:function(){this.getReportInfo()},beforeDestroy:function(){}},f=r(3),p=r.n(f),h=r(523),m={insert:"head",singleton:!1},v=(p()(h.a,m),h.a.locals,r(2)),b=Object(v.a)(l,n,[],!1,null,"1efc4044",null).exports;b.install=function(e){e.component(b.name,b)};t.default=b},8:function(e,t){e.exports=require("core-js/modules/es.function.name.js")},82:function(e,t){e.exports=require("core-js/modules/web.url.js")},83:function(e,t){e.exports=require("core-js/modules/web.url.to-json.js")},84:function(e,t){e.exports=require("core-js/modules/web.url-search-params.js")},9:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))},98:function(e,t){e.exports=require("core-js/modules/web.url-search-params.delete.js")},99:function(e,t){e.exports=require("core-js/modules/web.url-search-params.has.js")}});
3
+ var e,t,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function c(r,o,i,a){var c=o&&o.prototype instanceof u?o:u,d=Object.create(c.prototype);return n(d,"_invoke",function(r,n,o){var i,a,c,u=0,d=o||[],l=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!l&&u&&!o&&t<d.length;t++){var o,i=d[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw l=!0,n}return function(o,d,h){if(u>1)throw TypeError("Generator is already running");for(l&&1===d&&p(d,h),a=d,c=h;(t=a<2?e:c)||!l;){i||(a?a<3?(a>1&&(f.n=-1),p(a,c)):f.n=c:f.v=c);try{if(u=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(l=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{u=1}}return{value:t,done:l}}}(r,i,a),!0),d}var s={};function u(){}function d(){}function l(){}t=Object.getPrototypeOf;var f=[][i]?t(t([][i]())):(n(t={},i,(function(){return this})),t),p=l.prototype=u.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,n(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return d.prototype=l,n(p,"constructor",l),n(l,"constructor",d),d.displayName="GeneratorFunction",n(l,a,"GeneratorFunction"),n(p),n(p,a,"Generator"),n(p,i,(function(){return this})),n(p,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:c,m:h}})()}r.d(t,"a",(function(){return o}))},19:function(e,t){e.exports=require("core-js/modules/es.iterator.constructor.js")},2:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a,c){var s,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=s):o&&(s=c?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var d=u.render;u.render=function(e,t){return s.call(t),d(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,s):[s]}return{exports:e,options:u}}r.d(t,"a",(function(){return n}))},21:function(e,t){e.exports=require("core-js/modules/es.string.includes.js")},22:function(e,t){e.exports=require("core-js/modules/es.object.keys.js")},229:function(e,t){e.exports=require("jspdf")},23:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(5);function o(e){var t=function(e,t){if("object"!=Object(n.a)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=Object(n.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(n.a)(t)?t:t+""}},24:function(e,t){e.exports=require("epx-frame/lib/utils/mixins/component")},25:function(e,t){e.exports=require("core-js/modules/es.iterator.map.js")},26:function(e,t){e.exports=require("core-js/modules/web.dom-collections.iterator.js")},27:function(e,t){e.exports=require("core-js/modules/es.array.push.js")},28:function(e,t){e.exports=require("core-js/modules/es.iterator.find.js")},3:function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function c(e){for(var t=-1,r=0;r<a.length;r++)if(a[r].identifier===e){t=r;break}return t}function s(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],u=r[s]||0,d="".concat(s," ").concat(u);r[s]=u+1;var l=c(d),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(a[l].references++,a[l].updater(f)):a.push({identifier:d,updater:v(f,t),references:1}),n.push(d)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var d,l=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function f(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var h=null,m=0;function v(e,t){var r,n,o;if(t.singleton){var i=m++;r=h||(h=u(t)),n=f.bind(null,r,i,!1),o=f.bind(null,r,i,!0)}else r=u(t),n=p.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=c(r[n]);a[o].references--}for(var i=s(e,t),u=0;u<r.length;u++){var d=c(r[u]);0===a[d].references&&(a[d].updater(),a.splice(d,1))}r=i}}}},32:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,s,"next",e)}function s(e){n(a,o,i,c,s,"throw",e)}c(void 0)}))}}r.d(t,"a",(function(){return o}))},35:function(e,t){e.exports=require("core-js/modules/es.string.iterator.js")},39:function(e,t){e.exports=require("core-js/modules/es.array.iterator.js")},4:function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);n&&o[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),t.push(s))}},t}},47:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(14);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||Object(n.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},49:function(e,t){e.exports=require("core-js/modules/es.promise.js")},5:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,"a",(function(){return n}))},532:function(e,t,r){"use strict";var n=r(4),o=r.n(n)()((function(e){return e[1]}));o.push([e.i,"[data-v-1efc4044]:root{--color-primary: 8,116,231 }.container[data-v-1efc4044]{width:100%;height:100%}.report-header[data-v-1efc4044]{height:56px;background:#fff;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8e8e8}.report-body[data-v-1efc4044]{height:calc(100% - 58px);width:100%;box-sizing:border-box;padding:10px;background:#fff;overflow:auto}.report-back[data-v-1efc4044]{font-size:20px;cursor:pointer;position:relative;top:1px}.mobile-content[data-v-1efc4044] table{width:100% !important}",""]),t.a=o},6:function(e,t){e.exports=require("core-js/modules/es.object.to-string.js")},604:function(e,t){e.exports=require("@hufe921/canvas-editor")},7:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(23);function o(e,t,r){return(t=Object(n.a)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},788:function(e,t,r){"use strict";r.r(t);r(8);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container",style:e.$component.style},[t("div",{staticClass:"report-header"},[t("div",{staticClass:"report-title"},[t("span",{staticClass:"report-name"},[e._v(e._s(e.$component.title||e.reportInfo.TITLE||"报表预览"))])]),t("div",{staticClass:"report-operate"},[e.$isMobile?[t("el-dropdown",[t("span",[t("i",{staticClass:"el-icon-more",staticStyle:{"font-size":"18px"}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.showOperates.includes("downloadPdf")&&("wordReport"===e.reportInfo.TYPE||e.pdfUrl)?t("el-dropdown-item",{nativeOn:{click:function(t){return e.downloadPdf.apply(null,arguments)}}},[e._v("下载pdf")]):e._e(),e.showOperates.includes("downloadWord")?t("el-dropdown-item",{nativeOn:{click:function(t){return e.downloadWord.apply(null,arguments)}}},[e._v("下载Word")]):e._e(),"excelReport"===e.reportInfo.TYPE&&e.showOperates.includes("downloadExcel")?t("el-dropdown-item",{nativeOn:{click:function(t){return e.exportExcel.apply(null,arguments)}}},[e._v("下载excel")]):e._e(),e.showOperates.includes("print")?t("el-dropdown-item",{nativeOn:{click:function(t){return e.print.apply(null,arguments)}}},[e._v("打印")]):e._e()],1)],1)]:[e.showOperates.includes("downloadPdf")&&("wordReport"===e.reportInfo.TYPE||e.pdfUrl)?t("el-button",{attrs:{type:"primary"},on:{click:e.downloadPdf}},[e._v("下载pdf")]):e._e(),e.showOperates.includes("downloadWord")?t("el-button",{attrs:{type:"primary"},on:{click:e.downloadWord}},[e._v("下载Word")]):e._e(),"excelReport"===e.reportInfo.TYPE&&e.showOperates.includes("downloadExcel")?t("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[e._v("下载excel")]):e._e(),e.showOperates.includes("print")?t("el-button",{attrs:{type:"primary"},on:{click:e.print}},[e._v("打印")]):e._e()]],2)]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"report-body"},["excelReport"===e.reportInfo.TYPE?t("div",{class:{"mobile-content":e.$isMobile},domProps:{innerHTML:e._s(e.reportHtml)}}):e._l(e.numPages,(function(e){return t("canvas",{key:e,ref:"canvas"+e,refInFor:!0})}))],2),e.showOperates.includes("print")?t("iframe",{ref:"iframe",style:{position:"absolute",top:0,left:0,opacity:0,zIndex:-1},attrs:{src:e.pdfUrl}}):e._e()])};n._withStripped=!0;var o=r(18),i=r(16),a=r(32),c=r(0),s=r(47),u=(r(11),r(13),r(39),r(10),r(22),r(6),r(49),r(21),r(35),r(26),r(82),r(83),r(84),r(27),r(19),r(28),r(25),r(98),r(99),r(100),r(229)),d=r(24),l={name:"epx-report-preview",style:{margin:0},mixins:[r.n(d).a],props:{formData:{type:Object,default:function(){return{}}}},data:function(){return{reportInfo:{},reportHtml:"",pdfUrl:"",pdfName:"",numPages:[],loading:!0}},computed:{showOperates:function(){var e=this.$query,t=e.printOperates,r=e.downloadPdfFlag,n=void 0===r||r,o=e.downloadWordFlag,i=void 0===o||o,a=e.downloadExcelFlag,c=void 0===a||a,s=e.printFlag,u=void 0===s||s,d=this.$configs,l=d.printOperates,f=void 0===l?t:l,p=d.downloadPdfFlag,h=void 0===p?n:p,m=d.downloadWordFlag,v=void 0===m?i:m,b=d.downloadExcelFlag,y=void 0===b?c:b,g=d.printFlag,w=void 0===g?u:g;if(f)return f;var j=[];return h&&j.push("downloadPdf"),v&&j.push("downloadWord"),y&&j.push("downloadExcel"),w&&j.push("print"),j}},watch:{},methods:{getReportInfo:function(){var e=this,t=this.$configs.code,r=void 0===t?this.$query.code:t;this.loading=!0,this.$http.find({entityId:"FM_FORM","scope.CODE":r}).then((function(t){e.reportInfo=t.data,"excelReport"===t.data.TYPE?e.previewExcel():"wordReport"===t.data.TYPE?e.previewWord():e.previewForm(),(e.showOperates.includes("print")||e.showOperates.includes("downloadPdf"))&&e.exportPdf()})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},loadEditor:function(){var e=this;return Promise.all([Promise.resolve().then(r.t.bind(null,604,7))]).then((function(t){var r=Object(s.a)(t,1)[0];return e.CanvasEditor=r,{Editor:r.Editor,EditorMode:r.EditorMode}}))},previewExcel:function(){var e=this,t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,o=void 0===n?{}:n,i=this.$configs.code,a=void 0===i?this.$query.code:i,s=this.$formatParams(o,this.formData);this.$http.save(Object(c.a)(Object(c.a)({action:"preview",entityId:"FM_FORM",code:a,id:this.$query.id},r),s)).then((function(t){e.reportHtml=t.content;var r=document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=t.style:n.appendChild(document.createTextNode(t.style)),r.appendChild(n),e.loading=!1})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},previewWord:function(){var e=this,t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,s=void 0===n?{}:n,d=this.$formatParams(s,this.formData),l=this.$configs.code,f=void 0===l?this.$query.code:l;this.$http.save(Object(c.a)(Object(c.a)({action:"transferWord",entityId:"FM_FORM",code:f,id:this.$query.id},r),d)).then(function(){var t=Object(a.a)(Object(o.a)().m((function t(r){var n,s,d,l,f,p,h,m,v,b,y,g,w,j;return Object(o.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:n=r?JSON.parse(r):{},s=n.data,d=void 0===s?{header:[],main:[],footer:[]}:s,l=n.options,f=void 0===l?{}:l,p=Object(i.a)(d.main),t.p=1,p.s();case 2:if((h=p.n()).done){t.n=5;break}if(!(m=h.value).extension||!m.value||"photo"!==m.extension.fieldType&&"signature"!==m.extension.fieldType){t.n=4;break}return m.type="image",t.n=3,e.$util.urlToBase64(e.$util.getFileUrl(m.value));case 3:v=t.v,b=v.data,y=v.width,g=v.height,m.value=b,m.width=m.extension.imageWidth||y,m.height=m.extension.imageHeight||g;case 4:t.n=2;break;case 5:t.n=7;break;case 6:t.p=6,j=t.v,p.e(j);case 7:return t.p=7,p.f(),t.f(7);case 8:w=document.createElement("div"),e.loadEditor(function(){var t=Object(a.a)(Object(o.a)().m((function t(r){var n,i,a,s,l,p,h,m;return Object(o.a)().w((function(t){for(;;)switch(t.n){case 0:return n=r.Editor,i=r.EditorMode,e.printEditor=new n(w,Object(c.a)({mode:i.PRINT},d),f),a=f.printPixelRatio,s=f.width,l=f.height,t.n=1,e.printEditor.command.getImage({pixelRatio:a,mode:i.PRINT});case 1:p=t.v,h=new u.jsPDF({unit:"px",format:[s,l]}),p.map((function(e,t){h.addImage(e,"PNG",0,t,s,l),t!==p.length-1&&h.addPage()})),m=h.output("bloburi"),e.pdfUrl=m,e.$util.usePlugin("pdf").then((function(t){e.pdfjs=t,e.pdfjs.getDocument({url:m,cMapUrl:"/cmaps/",cMapPacked:!0}).promise.then((function(t){e.pdfDoc=t,e.numPages=e.pdfDoc.numPages,e.$nextTick((function(){e.loading=!1,e.renderPage(1)}))}))}));case 2:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}());case 9:return t.a(2)}}),t,null,[[1,6,7,8]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},previewForm:function(){var e=this,t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,o=void 0===n?{}:n,i=this.$formatParams(o,this.formData),a=this.$configs.code,s=void 0===a?this.$query.code:a;this.$http.save(Object(c.a)(Object(c.a)({action:"exportPdf",entityId:"FM_FORM",code:s,id:this.$query.id},r),i),{responseType:"blob"}).then((function(t){var r=t.blob,n=(t.filename,e),o=window.URL.createObjectURL(r);e.loading=!1,e.$util.usePlugin("pdf").then((function(t){e.pdfjs=t,e.pdfjs.getDocument({url:o,cMapUrl:"/cmaps/",cMapPacked:!0}).promise.then((function(t){e.pdfDoc=t,e.numPages=e.pdfDoc.numPages,n.$nextTick((function(){n.loading=!1,n.renderPage(1)}))}))}))})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},renderPage:function(e){var t=this;this.pdfDoc.getPage(e).then((function(r){var n=t.$refs["canvas"+e][0],o=n.getContext("2d"),i=r.getViewport({scale:2});document.querySelector("meta[name=viewport]").setAttribute("content","width=device-width"),n.width=i.width,n.height=i.height,n.style.width="100%";var a={canvasContext:o,viewport:i};r.render(a),t.numPages>e&&t.renderPage(e+1)}))},exportExcel:function(){var e=this,t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,o=void 0===n?{}:n,i=this.$formatParams(o,this.formData),a=this.$configs.code,s=void 0===a?this.$query.code:a;this.$http.save(Object(c.a)(Object(c.a)({action:"exportExcel",entityId:"FM_FORM",code:s,id:this.$query.id},r),i),{responseType:"blob"}).then((function(e){var t=e.blob,r=e.filename,n=document.createElement("a");document.body.appendChild(n);var o=URL.createObjectURL(t);n.href=o,n.download=r,n.click(),window.URL.revokeObjectURL(o),document.body.removeChild(n)})).catch((function(t){e.$message.error(t.message)}))},exportPdf:function(){var e=this;if("wordReport"!==this.reportInfo.TYPE){var t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,o=void 0===n?{}:n,i=this.$formatParams(o,this.formData),a=this.$configs.code,s=void 0===a?this.$query.code:a;this.$http.save(Object(c.a)(Object(c.a)({action:"exportPdf",entityId:"FM_FORM",code:s,id:this.$query.id},r),i),{responseType:"blob"}).then((function(t){var r=t.blob,n=t.filename,o=window.URL.createObjectURL(r);e.pdfUrl=o,e.pdfName=n})).catch((function(t){e.$message.error(t.message)}))}},print:function(){this.$refs.iframe.contentWindow.print()},downloadPdf:function(){if("wordReport"===this.reportInfo.TYPE)this.previewWord();else{var e=document.createElement("a");document.body.appendChild(e),e.href=this.pdfUrl,e.download=this.pdfName,e.click(),document.body.removeChild(e)}},downloadWord:function(){var e=this,t=this.$query.params,r=void 0===t?{}:t,n=this.$configs.params,o=void 0===n?{}:n,i=this.$formatParams(o,this.formData),a=this.$configs.code,s=void 0===a?this.$query.code:a;this.$http.save(Object(c.a)(Object(c.a)({action:"exportWord",entityId:"FM_FORM",code:s,id:this.$query.id},r),i),{responseType:"blob"}).then((function(e){var t=e.blob,r=e.filename,n=document.createElement("a");document.body.appendChild(n);var o=URL.createObjectURL(t);n.href=o,n.download=r,n.click(),window.URL.revokeObjectURL(o),document.body.removeChild(n)})).catch((function(t){e.$message.error(t.message)}))}},mounted:function(){},created:function(){this.getReportInfo()},beforeDestroy:function(){}},f=r(3),p=r.n(f),h=r(532),m={insert:"head",singleton:!1},v=(p()(h.a,m),h.a.locals,r(2)),b=Object(v.a)(l,n,[],!1,null,"1efc4044",null).exports;b.install=function(e){e.component(b.name,b)};t.default=b},8:function(e,t){e.exports=require("core-js/modules/es.function.name.js")},82:function(e,t){e.exports=require("core-js/modules/web.url.js")},83:function(e,t){e.exports=require("core-js/modules/web.url.to-json.js")},84:function(e,t){e.exports=require("core-js/modules/web.url-search-params.js")},9:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))},98:function(e,t){e.exports=require("core-js/modules/web.url-search-params.delete.js")},99:function(e,t){e.exports=require("core-js/modules/web.url-search-params.has.js")}});