{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\mail\\mailAdd.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\mail\\mailAdd.vue","mtime":1667327529575},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { quillEditor } from \"vue-quill-editor\"; //调用编辑器\n\nimport 'quill/dist/quill.core.css';\nimport 'quill/dist/quill.snow.css';\nimport 'quill/dist/quill.bubble.css';\nimport { Message } from \"element-ui\";\nimport FileUpload from \"@/components/common/fileUpload.vue\";\nimport { mapState, mapActions } from \"vuex\";\nexport default {\n name: \"mailAdd\",\n components: {\n quillEditor: quillEditor,\n FileUpload: FileUpload\n },\n data: function data() {\n return _defineProperty({\n str: '',\n Addresses: [],\n CAddresses: [],\n editorOption: {},\n list: [],\n queryAll: [],\n queryList: [],\n querys: [],\n loading: false,\n disabled: false,\n isShowAddress: 1,\n isShowCAdress: 1,\n data: {\n receAddresses: [],\n senderAddress: \"\",\n type: \"\",\n isReply: 0,\n fileIds: \"\",\n subject: \"\"\n },\n rules: {\n subject: [{\n required: true,\n message: '请输入主题',\n trigger: 'blur'\n }],\n receAddresses: [{\n type: 'array',\n required: true,\n message: '请选择收件人',\n trigger: 'change'\n }],\n content: [{\n required: true,\n message: \"请输入正文\",\n trigger: \"blur\"\n }]\n }\n }, \"editorOption\", {\n // 改变提示文字内容\n placeholder: '请输入内容......'\n });\n },\n methods: {\n back: function back() {\n this.$router.go(-1); //返回上一层\n },\n sendMail: function sendMail(action, data) {\n var _this = this;\n\n this.$refs[data].validate(function (valid) {\n if (valid) {\n _this.disabled = true;\n\n if (action == 2) {\n Message.info(\"正在发送邮件,请稍等!\");\n }\n\n _this.data.type = action;\n _this.data.receiverAddresses = _this.data.receAddresses.join(';');\n _this.data.copyToAddresses = _this.Addresses.join(';');\n _this.data.bcCAddresses = _this.CAddresses.join(';'); //附件\n\n if (_this.$refs.fileUpload.getFiles() != \"\") {\n _this.data.fileIds = JSON.stringify(_this.$refs.fileUpload.getFiles());\n }\n\n _this.$store.dispatch(\"mail/saveMail\", _this.data).then(function () {\n _this.back();\n }).catch(function () {\n _this.disabled = false;\n });\n } else {\n _this.$message.warning(\"您输入表单信息有误,请重新填写!\");\n\n return false;\n }\n });\n },\n remoteMethodAddress: function remoteMethodAddress(query) {\n var _this2 = this;\n\n if (query !== '') {\n this.loading = true;\n this.$store.dispatch(\"mail/getUserlistByPagination\", query);\n setTimeout(function () {\n _this2.queryAll = _this2.userRows;\n _this2.loading = false;\n }, 200);\n } else {\n this.queryAll = this.options;\n }\n },\n remoteMethodToAddress: function remoteMethodToAddress(query) {\n var _this3 = this;\n\n if (query !== '') {\n this.$store.dispatch(\"mail/getUserlistByPagination\", query);\n setTimeout(function () {\n _this3.queryList = _this3.userRows;\n }, 200);\n } else {\n this.queryList = this.options;\n }\n },\n remoteMethodCAddress: function remoteMethodCAddress(query) {\n var _this4 = this;\n\n if (query !== '') {\n this.$store.dispatch(\"mail/getUserlistByPagination\", query);\n setTimeout(function () {\n _this4.querys = _this4.userRows;\n }, 200);\n } else {\n this.querys = this.options;\n }\n },\n addAddress: function addAddress() {\n this.isShowAddress = 2;\n },\n deleteArress: function deleteArress() {\n this.isShowAddress = 1;\n this.Addresses = [];\n },\n addCAddresses: function addCAddresses() {\n this.isShowCAdress = 2;\n },\n deltetCAddresses: function deltetCAddresses() {\n this.isShowCAdress = 1;\n this.CAddresses = [];\n },\n selectAddress: function selectAddress(item) {\n this.data.senderAddress = item;\n }\n },\n computed: mapState({\n editor: function editor() {\n return this.$refs.myQuillEditor.quill;\n },\n rows: function rows(state) {\n return state.mail.mailSettingRows;\n },\n options: function options(state) {\n return state.mail.mailLinkmanRows;\n },\n userRows: function userRows(state) {\n return state.mail.userRows;\n }\n }),\n mounted: function mounted() {\n this.editor.container.style.height = \"260px\";\n },\n created: function created() {\n var _this5 = this;\n\n var pageBean = {\n \"pageBean\": {\n \"page\": \"1\",\n \"pageSize\": \"10\",\n \"showTotal\": \"true\"\n }\n }; //初次加载默认pageBean\n\n this.$store.dispatch(\"mail/getMailSettingByPagination\", pageBean).then(function (data) {\n var _iterator = _createForOfIteratorHelper(data),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var i = _step.value;\n\n if (i.isDefault == 1) {\n _this5.data.senderAddress = i.mailAddress;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n });\n this.$store.dispatch(\"mail/getMailLinkmanByPagination\", pageBean).then(function (maillst) {\n _this5.queryAll = maillst;\n _this5.queryList = maillst;\n _this5.querys = maillst;\n });\n }\n};",null]}