export-dialog.js 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. exports.ids = [12];
  2. exports.modules = {
  3. /***/ 166:
  4. /***/ (function(module, exports) {
  5. // Exports
  6. module.exports = {
  7. };
  8. /***/ }),
  9. /***/ 187:
  10. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11. "use strict";
  12. __webpack_require__.r(__webpack_exports__);
  13. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ExportDialog_vue_vue_type_style_index_0_id_1381fc6c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(166);
  14. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ExportDialog_vue_vue_type_style_index_0_id_1381fc6c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ExportDialog_vue_vue_type_style_index_0_id_1381fc6c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  15. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ExportDialog_vue_vue_type_style_index_0_id_1381fc6c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ExportDialog_vue_vue_type_style_index_0_id_1381fc6c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  16. /***/ }),
  17. /***/ 197:
  18. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19. "use strict";
  20. // ESM COMPAT FLAG
  21. __webpack_require__.r(__webpack_exports__);
  22. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ExportDialog.vue?vue&type=template&id=1381fc6c&scoped=true
  23. var render = function render() {
  24. var _vm = this,
  25. _c = _vm._self._c;
  26. return _c('el-dialog', {
  27. attrs: {
  28. "lock-scroll": false,
  29. "title": _vm.title,
  30. "visible": _vm.visible,
  31. "width": "700px",
  32. "before-close": _vm.handleClose,
  33. "close-on-click-modal": false,
  34. "top": "0"
  35. },
  36. on: {
  37. "update:visible": function ($event) {
  38. _vm.visible = $event;
  39. }
  40. }
  41. }, [_c('el-form', {
  42. ref: "ruleForm",
  43. attrs: {
  44. "model": _vm.emailForm,
  45. "rules": _vm.rules
  46. }
  47. }, _vm._l(_vm.emailForm, function (val, key) {
  48. return _c('el-form-item', {
  49. key: key,
  50. attrs: {
  51. "label": _vm.labelShow ? key : '',
  52. "label-width": _vm.labelWidth + 'px',
  53. "prop": key
  54. }
  55. }, [_c('el-input', {
  56. attrs: {
  57. "readonly": ""
  58. },
  59. model: {
  60. value: _vm.emailForm[key],
  61. callback: function ($$v) {
  62. _vm.$set(_vm.emailForm, key, $$v);
  63. },
  64. expression: "emailForm[key]"
  65. }
  66. }), _c('el-button', {
  67. class: key,
  68. attrs: {
  69. "data-clipboard-text": _vm.emailForm[key],
  70. "type": "primary"
  71. },
  72. on: {
  73. "click": function ($event) {
  74. $event.preventDefault();
  75. return _vm.copyUrl(key);
  76. }
  77. }
  78. }, [_vm._v("copy link")])], 1);
  79. }), 1)], 1);
  80. };
  81. var staticRenderFns = [];
  82. // CONCATENATED MODULE: ./components/ExportDialog.vue?vue&type=template&id=1381fc6c&scoped=true
  83. // EXTERNAL MODULE: external "clipboard"
  84. var external_clipboard_ = __webpack_require__(140);
  85. var external_clipboard_default = /*#__PURE__*/__webpack_require__.n(external_clipboard_);
  86. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ExportDialog.vue?vue&type=script&lang=js
  87. /* harmony default export */ var ExportDialogvue_type_script_lang_js = ({
  88. props: {
  89. title: {
  90. type: String,
  91. default: 'Send Email'
  92. },
  93. sendbtnCext: {
  94. type: String,
  95. default: 'SUBMIT REQUEST'
  96. },
  97. isSendPdf: {
  98. type: Boolean,
  99. default: false
  100. },
  101. labelShow: {
  102. type: Boolean,
  103. default: true
  104. },
  105. emailForm: {},
  106. rules: {},
  107. labelWidth: Number,
  108. visible: {
  109. type: Boolean,
  110. default: false
  111. }
  112. },
  113. methods: {
  114. copyUrl(key) {
  115. let clipboard = new external_clipboard_default.a(`.${key}`);
  116. clipboard.on('success', e => {
  117. this.$message.success("link copied to clipboard"); // 利用Element组件给予成功提示
  118. clipboard.destroy(); // 释放内存
  119. });
  120. clipboard.on('error', e => {
  121. this.$message.error('The browser does not support automatic replication'); // 给予错误提示信息
  122. clipboard.destroy(); // 释放内存
  123. });
  124. },
  125. handleClose() {
  126. this.$emit('update:visible', false);
  127. }
  128. }
  129. });
  130. // CONCATENATED MODULE: ./components/ExportDialog.vue?vue&type=script&lang=js
  131. /* harmony default export */ var components_ExportDialogvue_type_script_lang_js = (ExportDialogvue_type_script_lang_js);
  132. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  133. var componentNormalizer = __webpack_require__(2);
  134. // CONCATENATED MODULE: ./components/ExportDialog.vue
  135. function injectStyles (context) {
  136. var style0 = __webpack_require__(187)
  137. if (style0.__inject__) style0.__inject__(context)
  138. }
  139. /* normalize component */
  140. var component = Object(componentNormalizer["a" /* default */])(
  141. components_ExportDialogvue_type_script_lang_js,
  142. render,
  143. staticRenderFns,
  144. false,
  145. injectStyles,
  146. "1381fc6c",
  147. "5781176c"
  148. )
  149. /* harmony default export */ var ExportDialog = __webpack_exports__["default"] = (component.exports);
  150. /***/ })
  151. };;
  152. //# sourceMappingURL=export-dialog.js.map