123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680 |
- exports.ids = [13,41,43,44,45];
- exports.modules = {
- /***/ 181:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 192:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // Any plugins you want to use has to be imported
- // Detail plugins list see https://www.tinymce.com/docs/plugins/
- // Custom builds see https://www.tinymce.com/download/custom-builds/
- const plugins = ['advlist autolink autosave code colorpicker colorpicker contextmenu directionality fullscreen hr insertdatetime link lists nonbreaking noneditable paste preview print save spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount'];
- //anchor codesample emoticons pagebreak searchreplace image imagetools media
- /* harmony default export */ __webpack_exports__["default"] = (plugins);
- /***/ }),
- /***/ 193:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // Here is a list of the toolbar
- // Detail list see https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols
- const toolbar = ['searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample', 'hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen'];
- /* harmony default export */ __webpack_exports__["default"] = (toolbar);
- /***/ }),
- /***/ 194:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- let callbacks = [];
- function loadedTinymce() {
- // to fixed https://github.com/PanJiaChen/vue-element-admin/issues/2144
- // check is successfully downloaded script
- return window.tinymce;
- }
- const dynamicLoadScript = (src, callback) => {
- const existingScript = document.getElementById(src);
- const cb = callback || function () {};
- if (!existingScript) {
- const script = document.createElement('script');
- script.src = src; // src url for the third-party library being loaded.
- script.id = src;
- document.body.appendChild(script);
- callbacks.push(cb);
- const onEnd = 'onload' in script ? stdOnEnd : ieOnEnd;
- onEnd(script);
- }
- if (existingScript && cb) {
- if (loadedTinymce()) {
- cb(null, existingScript);
- } else {
- callbacks.push(cb);
- }
- }
- function stdOnEnd(script) {
- script.onload = function () {
- // this.onload = null here is necessary
- // because even IE9 works not like others
- this.onerror = this.onload = null;
- for (const cb of callbacks) {
- cb(null, script);
- }
- callbacks = null;
- };
- script.onerror = function () {
- this.onerror = this.onload = null;
- cb(new Error('Failed to load ' + src), script);
- };
- }
- function ieOnEnd(script) {
- script.onreadystatechange = function () {
- if (this.readyState !== 'complete' && this.readyState !== 'loaded') return;
- this.onreadystatechange = null;
- for (const cb of callbacks) {
- cb(null, script); // there is no way to catch loading errors in IE8
- }
- callbacks = null;
- };
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (dynamicLoadScript);
- /***/ }),
- /***/ 204:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // 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/Tinymce/index.vue?vue&type=template&id=a9d38a5e&scoped=true
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('div', {
- staticClass: "tinymce-container",
- class: {
- fullscreen: _vm.fullscreen
- },
- style: {
- width: _vm.containerWidth
- }
- }, [_vm._ssrNode("<textarea" + _vm._ssrAttr("id", _vm.tinymceId) + " class=\"tinymce-textarea\" data-v-a9d38a5e></textarea>")]);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/Tinymce/index.vue?vue&type=template&id=a9d38a5e&scoped=true
- // EXTERNAL MODULE: ./components/Tinymce/plugins.js
- var plugins = __webpack_require__(192);
- // EXTERNAL MODULE: ./components/Tinymce/toolbar.js
- var toolbar = __webpack_require__(193);
- // EXTERNAL MODULE: ./components/Tinymce/dynamicLoadScript.js
- var dynamicLoadScript = __webpack_require__(194);
- // 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/Tinymce/index.vue?vue&type=script&lang=js
- /**
- * docs:
- * https://panjiachen.github.io/vue-element-admin-site/feature/component/rich-editor.html#tinymce
- */
- // import editorImage from './components/EditorImage'
- // why use this cdn, detail see https://github.com/PanJiaChen/tinymce-all-in-one
- const tinymceCDN = '//cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.3/tinymce.min.js';
- /* harmony default export */ var Tinymcevue_type_script_lang_js = ({
- name: 'Tinymce',
- // components: { editorImage },
- props: {
- id: {
- type: String,
- default: function () {
- return 'vue-tinymce-' + +new Date() + ((Math.random() * 1000).toFixed(0) + '');
- }
- },
- value: {
- type: String,
- default: ''
- },
- toolbar: {
- type: Array,
- required: false,
- default() {
- return [];
- }
- },
- menubar: {
- type: String,
- default: 'file edit insert view format table'
- },
- height: {
- type: [Number, String],
- required: false,
- default: 360
- },
- width: {
- type: [Number, String],
- required: false,
- default: 'auto'
- }
- },
- data() {
- return {
- hasChange: false,
- hasInit: false,
- tinymceId: this.id,
- fullscreen: false,
- languageTypeList: {
- 'en': 'en',
- 'zh': 'zh_CN',
- 'es': 'es_MX',
- 'ja': 'ja'
- }
- };
- },
- computed: {
- language() {
- return this.languageTypeList[this.$store.getters.language];
- },
- containerWidth() {
- const width = this.width;
- if (/^[\d]+(\.[\d]+)?$/.test(width)) {
- // matches `100`, `'100'`
- return `${width}px`;
- }
- return width;
- }
- },
- watch: {
- value(val) {
- if (!this.hasChange && this.hasInit) {
- this.$nextTick(() => window.tinymce.get(this.tinymceId).setContent(val || ''));
- }
- },
- language() {
- this.destroyTinymce();
- this.$nextTick(() => this.initTinymce());
- }
- },
- mounted() {
- this.init();
- },
- activated() {
- if (window.tinymce) {
- this.initTinymce();
- }
- },
- deactivated() {
- this.destroyTinymce();
- },
- destroyed() {
- this.destroyTinymce();
- },
- methods: {
- init() {
- // dynamic load tinymce from cdn
- Object(dynamicLoadScript["default"])(tinymceCDN, err => {
- if (err) {
- this.$message.error(err.message);
- return;
- }
- this.initTinymce();
- });
- },
- initTinymce() {
- const _this = this;
- window.tinymce.init({
- language: this.language,
- selector: `#${this.tinymceId}`,
- height: this.height,
- body_class: 'panel-body ',
- object_resizing: false,
- toolbar: this.toolbar.length > 0 ? this.toolbar : toolbar["default"],
- menubar: this.menubar,
- plugins: plugins["default"],
- end_container_on_empty_block: true,
- powerpaste_word_import: 'clean',
- code_dialog_height: 450,
- code_dialog_width: 1000,
- advlist_bullet_styles: 'square',
- advlist_number_styles: 'default',
- imagetools_cors_hosts: ['www.tinymce.com', 'codepen.io'],
- default_link_target: '_blank',
- link_title: false,
- nonbreaking_force_tab: true,
- // inserting nonbreaking space need Nonbreaking Space Plugin
- init_instance_callback: editor => {
- if (_this.value) {
- editor.setContent(_this.value);
- }
- _this.hasInit = true;
- editor.on('NodeChange Change KeyUp SetContent', () => {
- this.hasChange = true;
- this.$emit('input', editor.getContent());
- });
- },
- setup(editor) {
- editor.on('FullscreenStateChanged', e => {
- _this.fullscreen = e.state;
- });
- },
- // it will try to keep these URLs intact
- // https://www.tiny.cloud/docs-3x/reference/configuration/Configuration3x@convert_urls/
- // https://stackoverflow.com/questions/5196205/disable-tinymce-absolute-to-relative-url-conversions
- convert_urls: false
- // 整合七牛上传
- // images_dataimg_filter(img) {
- // setTimeout(() => {
- // const $image = $(img);
- // $image.removeAttr('width');
- // $image.removeAttr('height');
- // if ($image[0].height && $image[0].width) {
- // $image.attr('data-wscntype', 'image');
- // $image.attr('data-wscnh', $image[0].height);
- // $image.attr('data-wscnw', $image[0].width);
- // $image.addClass('wscnph');
- // }
- // }, 0);
- // return img
- // },
- // images_upload_handler(blobInfo, success, failure, progress) {
- // progress(0);
- // const token = _this.$store.getters.token;
- // getToken(token).then(response => {
- // const url = response.data.qiniu_url;
- // const formData = new FormData();
- // formData.append('token', response.data.qiniu_token);
- // formData.append('key', response.data.qiniu_key);
- // formData.append('file', blobInfo.blob(), url);
- // upload(formData).then(() => {
- // success(url);
- // progress(100);
- // })
- // }).catch(err => {
- // failure('出现未知问题,刷新页面,或者联系程序员')
- // console.log(err);
- // });
- // },
- });
- },
- destroyTinymce() {
- const tinymce = window.tinymce.get(this.tinymceId);
- if (this.fullscreen) {
- tinymce.execCommand('mceFullScreen');
- }
- if (tinymce) {
- tinymce.destroy();
- }
- },
- setContent(value) {
- window.tinymce.get(this.tinymceId).setContent(value);
- },
- getContent() {
- window.tinymce.get(this.tinymceId).getContent();
- },
- imageSuccessCBK(arr) {
- arr.forEach(v => window.tinymce.get(this.tinymceId).insertContent(`<img class="wscnph" src="${v.url}" >`));
- }
- }
- });
- // CONCATENATED MODULE: ./components/Tinymce/index.vue?vue&type=script&lang=js
- /* harmony default export */ var components_Tinymcevue_type_script_lang_js = (Tinymcevue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/Tinymce/index.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(220)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_Tinymcevue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "a9d38a5e",
- "2f101c14"
-
- )
- /* harmony default export */ var Tinymce = __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /***/ 220:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* 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_index_vue_vue_type_style_index_0_id_a9d38a5e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(181);
- /* 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_index_vue_vue_type_style_index_0_id_a9d38a5e_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_index_vue_vue_type_style_index_0_id_a9d38a5e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
- /* 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_index_vue_vue_type_style_index_0_id_a9d38a5e_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_index_vue_vue_type_style_index_0_id_a9d38a5e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /***/ }),
- /***/ 278:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 338:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* 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_FormDialog_vue_vue_type_style_index_0_id_2aff96f1_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(278);
- /* 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_FormDialog_vue_vue_type_style_index_0_id_2aff96f1_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_FormDialog_vue_vue_type_style_index_0_id_2aff96f1_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
- /* 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_FormDialog_vue_vue_type_style_index_0_id_2aff96f1_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_FormDialog_vue_vue_type_style_index_0_id_2aff96f1_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /***/ }),
- /***/ 375:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // 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/FormDialog.vue?vue&type=template&id=2aff96f1&scoped=true
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('el-dialog', {
- attrs: {
- "lock-scroll": false,
- "title": _vm.title,
- "visible": _vm.visible,
- "width": "700px",
- "before-close": _vm.handleClose,
- "top": _vm.top,
- "show-close": false
- },
- on: {
- "update:visible": function ($event) {
- _vm.visible = $event;
- }
- }
- }, [_c('el-form', {
- ref: "ruleForm",
- attrs: {
- "model": _vm.emailForm,
- "rules": _vm.rules
- }
- }, _vm._l(_vm.comEnquiryConfig, function (item) {
- return _c('el-form-item', {
- key: item.prop,
- style: {
- marginBottom: _vm.marginBottom + 'px'
- },
- attrs: {
- "label": item.prop,
- "label-width": _vm.labelWidth,
- "prop": item.prop
- }
- }, [item.type === 'text' ? _c('span', [_vm._v(_vm._s(_vm.emailForm[item.prop]))]) : _vm._e(), _vm._v(" "), item.type === 'input' ? _c('el-input', {
- attrs: {
- "type": item.type,
- "clearable": ""
- },
- model: {
- value: _vm.emailForm[item.prop],
- callback: function ($$v) {
- _vm.$set(_vm.emailForm, item.prop, $$v);
- },
- expression: "emailForm[item.prop]"
- }
- }) : item.type === 'textarea' ? _c('el-input', {
- attrs: {
- "type": "textarea",
- "rows": 5,
- "clearable": ""
- },
- model: {
- value: _vm.emailForm[item.prop],
- callback: function ($$v) {
- _vm.$set(_vm.emailForm, item.prop, $$v);
- },
- expression: "emailForm[item.prop]"
- }
- }) : item.type === 'tinymce' ? _c('tinymce', {
- attrs: {
- "height": 240
- },
- model: {
- value: _vm.emailForm[item.prop],
- callback: function ($$v) {
- _vm.$set(_vm.emailForm, item.prop, $$v);
- },
- expression: "emailForm[item.prop]"
- }
- }) : item.type === 'select' && item.isShow ? _c('el-select', {
- attrs: {
- "clearable": "",
- "filterable": "",
- "placeholder": item.placeholder ? item.placeholder : 'Please select'
- },
- model: {
- value: _vm.emailForm[item.prop],
- callback: function ($$v) {
- _vm.$set(_vm.emailForm, item.prop, $$v);
- },
- expression: "emailForm[item.prop]"
- }
- }, _vm._l(item.selectlist, function (i) {
- return _c('el-option', {
- key: i.id,
- attrs: {
- "label": i.name,
- "value": i.name
- }
- });
- }), 1) : item.type === 'checkbox' ? _c('el-checkbox-group', {
- model: {
- value: _vm.emailForm[item.prop],
- callback: function ($$v) {
- _vm.$set(_vm.emailForm, item.prop, $$v);
- },
- expression: "emailForm[item.prop]"
- }
- }, _vm._l(item.selectlist, function (i, k) {
- return _c('el-checkbox', {
- key: k,
- attrs: {
- "label": k + 1
- }
- }, [_vm._v(_vm._s(i))]);
- }), 1) : _vm._e()], 1);
- }), 1), _vm._v(" "), _c('div', {
- staticClass: "dialog-footer",
- attrs: {
- "slot": "footer"
- },
- slot: "footer"
- }, [_c('el-button', {
- attrs: {
- "type": "primary",
- "loading": _vm.$store.state.product.loading
- },
- on: {
- "click": _vm.handleSend
- }
- }, [_vm._v(_vm._s(_vm.sendbtnCext))]), _vm._v(" "), _c('el-button', {
- attrs: {
- "type": "info",
- "plain": ""
- },
- on: {
- "click": _vm.handleClose
- }
- }, [_vm._v(_vm._s(_vm.cancelbtnCext))])], 1)], 1);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/FormDialog.vue?vue&type=template&id=2aff96f1&scoped=true
- // EXTERNAL MODULE: ./components/Tinymce/index.vue + 4 modules
- var Tinymce = __webpack_require__(204);
- // EXTERNAL MODULE: external "vuex"
- var external_vuex_ = __webpack_require__(6);
- // 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/FormDialog.vue?vue&type=script&lang=js
- /* harmony default export */ var FormDialogvue_type_script_lang_js = ({
- components: {
- Tinymce: Tinymce["default"]
- },
- props: {
- title: {
- type: String,
- default: 'Send Email'
- },
- sendbtnCext: {
- type: String,
- default: 'Send Enquiry'
- },
- cancelbtnCext: {
- type: String,
- default: 'Cancel'
- },
- top: {
- type: String,
- default: '5vh'
- },
- isSendPdf: {
- type: Boolean,
- default: false
- },
- emailForm: {},
- enquiryConfig: [],
- rules: {},
- labelWidth: {
- type: Number,
- default: 150
- },
- marginBottom: {
- type: Number,
- default: 20
- },
- visible: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {
- downloading: false
- };
- },
- computed: {
- comEnquiryConfig() {
- return this.enquiryConfig.filter(item => {
- if (!item.hasOwnProperty('isShow') || item.isShow) {
- return item;
- }
- });
- }
- },
- methods: {
- ...Object(external_vuex_["mapMutations"])('product', ['setLoading']),
- handleClose() {
- this.$emit('update:visible', false);
- },
- handleSend() {
- this.$refs.ruleForm.validate(valid => {
- if (valid) {
- this.setLoading(true);
- if (this.isSendPdf) {
- // Bus.$emit("sendPdf");
- this.$emit("handleSend");
- } else {
- this.$emit("handleSend");
- }
- } else {
- return false;
- }
- });
- }
- }
- });
- // CONCATENATED MODULE: ./components/FormDialog.vue?vue&type=script&lang=js
- /* harmony default export */ var components_FormDialogvue_type_script_lang_js = (FormDialogvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/FormDialog.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(338)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_FormDialogvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "2aff96f1",
- "45dfc6da"
-
- )
- /* harmony default export */ var FormDialog = __webpack_exports__["default"] = (component.exports);
- /* nuxt-component-imports */
- installComponents(component, {Tinymce: __webpack_require__(204).default})
- /***/ })
- };;
- //# sourceMappingURL=form-dialog.js.map
|