download-dialog.js 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. exports.ids = [11];
  2. exports.modules = {
  3. /***/ 243:
  4. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5. "use strict";
  6. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
  7. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
  8. /* harmony default export */ __webpack_exports__["a"] = (new vue__WEBPACK_IMPORTED_MODULE_0___default.a());
  9. /***/ }),
  10. /***/ 277:
  11. /***/ (function(module, exports) {
  12. // Exports
  13. module.exports = {
  14. };
  15. /***/ }),
  16. /***/ 337:
  17. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18. "use strict";
  19. __webpack_require__.r(__webpack_exports__);
  20. /* 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_DownloadDialog_vue_vue_type_style_index_0_id_b2eaa3aa_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(277);
  21. /* 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_DownloadDialog_vue_vue_type_style_index_0_id_b2eaa3aa_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_DownloadDialog_vue_vue_type_style_index_0_id_b2eaa3aa_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  22. /* 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_DownloadDialog_vue_vue_type_style_index_0_id_b2eaa3aa_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_DownloadDialog_vue_vue_type_style_index_0_id_b2eaa3aa_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  23. /***/ }),
  24. /***/ 374:
  25. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26. "use strict";
  27. // ESM COMPAT FLAG
  28. __webpack_require__.r(__webpack_exports__);
  29. // 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/DownloadDialog.vue?vue&type=template&id=b2eaa3aa&scoped=true
  30. var render = function render() {
  31. var _vm = this,
  32. _c = _vm._self._c;
  33. return _c('el-dialog', {
  34. attrs: {
  35. "lock-scroll": false,
  36. "title": "Quote Created",
  37. "visible": _vm.visible,
  38. "width": "500px",
  39. "before-close": _vm.handleClose,
  40. "show-close": false,
  41. "center": "",
  42. "top": "0"
  43. },
  44. on: {
  45. "update:visible": function ($event) {
  46. _vm.visible = $event;
  47. }
  48. }
  49. }, [_c('div', {
  50. staticClass: "content"
  51. }, [_vm._v("How would you like to receive the quote")]), _vm._v(" "), _c('div', {
  52. staticClass: "dialog-footer",
  53. attrs: {
  54. "slot": "footer"
  55. },
  56. slot: "footer"
  57. }, [_c('el-button', {
  58. attrs: {
  59. "type": "danger",
  60. "loading": _vm.downloading
  61. },
  62. on: {
  63. "click": _vm.handleDownload
  64. }
  65. }, [_vm._v("DOWNLOAD")]), _vm._v(" "), _c('el-button', {
  66. attrs: {
  67. "type": "danger"
  68. },
  69. on: {
  70. "click": _vm.handleSend
  71. }
  72. }, [_vm._v("SEND MAIL")]), _vm._v(" "), _c('el-button', {
  73. attrs: {
  74. "type": "danger",
  75. "plain": ""
  76. },
  77. on: {
  78. "click": _vm.handleClose
  79. }
  80. }, [_vm._v("CANCEL")])], 1)]);
  81. };
  82. var staticRenderFns = [];
  83. // CONCATENATED MODULE: ./components/DownloadDialog.vue?vue&type=template&id=b2eaa3aa&scoped=true
  84. // EXTERNAL MODULE: ./plugins/bus.js
  85. var bus = __webpack_require__(243);
  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/DownloadDialog.vue?vue&type=script&lang=js
  87. /* harmony default export */ var DownloadDialogvue_type_script_lang_js = ({
  88. props: {
  89. visible: {
  90. type: Boolean,
  91. default: false
  92. }
  93. },
  94. data() {
  95. return {
  96. downloading: false
  97. };
  98. },
  99. mounted() {
  100. bus["a" /* default */].$on("finishDownload", data => {
  101. this.downloading = false;
  102. });
  103. },
  104. beforeDestroy() {
  105. // 取消监听
  106. bus["a" /* default */].$off("finishDownload");
  107. },
  108. methods: {
  109. handleDownload() {
  110. this.downloading = true;
  111. bus["a" /* default */].$emit("sendDownload");
  112. },
  113. handleSend() {
  114. this.$emit("handleSend");
  115. },
  116. handleClose() {
  117. this.$emit("update:visible", false);
  118. }
  119. }
  120. });
  121. // CONCATENATED MODULE: ./components/DownloadDialog.vue?vue&type=script&lang=js
  122. /* harmony default export */ var components_DownloadDialogvue_type_script_lang_js = (DownloadDialogvue_type_script_lang_js);
  123. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  124. var componentNormalizer = __webpack_require__(2);
  125. // CONCATENATED MODULE: ./components/DownloadDialog.vue
  126. function injectStyles (context) {
  127. var style0 = __webpack_require__(337)
  128. if (style0.__inject__) style0.__inject__(context)
  129. }
  130. /* normalize component */
  131. var component = Object(componentNormalizer["a" /* default */])(
  132. components_DownloadDialogvue_type_script_lang_js,
  133. render,
  134. staticRenderFns,
  135. false,
  136. injectStyles,
  137. "b2eaa3aa",
  138. "5ab8229e"
  139. )
  140. /* harmony default export */ var DownloadDialog = __webpack_exports__["default"] = (component.exports);
  141. /***/ })
  142. };;
  143. //# sourceMappingURL=download-dialog.js.map