{"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\\mailEdit.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\mail\\mailEdit.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 _defineProperty from \"D:/jenkins/workspace/xq-web-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\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 props: [\"id\"],\n name: \"mailEdit\",\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 }\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);\n this.$store.dispatch(\"mail/getMailLinkmanByPagination\", pageBean).then(function (maillst) {\n _this5.queryAll = maillst;\n _this5.queryList = maillst;\n _this5.querys = maillst;\n });\n this.$store.dispatch(\"mail/getMailById\", this.id).then(function (mails) {\n if (mails.type == 3) {\n _this5.data.senderAddress = mails.senderAddress;\n _this5.data.subject = mails.subject;\n _this5.data.content = mails.content;\n } else if (mails.type == 1) {\n _this5.data.senderAddress = mails.receiverAddresses;\n _this5.data.content = \"\";\n _this5.data.subject = \"回复:\" + mails.subject;\n }\n\n if (mails.receiverAddresses != null && mails.receiverAddresses != \"\") {\n if (mails.type == 3) {\n _this5.data.receAddresses.push(mails.receiverAddresses);\n } else if (mails.type == 1) {\n _this5.data.receAddresses.push(mails.senderAddress);\n }\n }\n\n if (mails.copyToAddresses != null && mails.copyToAddresses != \"\") {\n _this5.isShowAddress = 2;\n\n _this5.Addresses.push(mails.copyToAddresses);\n }\n\n if (mails.bcCAddresses != null && mails.bcCAddresses != \"\") {\n _this5.isShowCAdress = 2;\n\n _this5.CAddresses.push(mails.bcCAddresses);\n }\n });\n }\n};",null]}