{"remainingRequest":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\message\\mail-template-config.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\message\\mail-template-config.vue","mtime":1581948666000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\babel.config.js","mtime":1581948662000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import debounce from 'lodash/debounce';\nexport default {\n data: function data() {\n return {\n visible: false,\n dataForm: {\n smtp: '',\n port: '',\n username: '',\n password: ''\n }\n };\n },\n computed: {\n dataRule: function dataRule() {\n return {\n smtp: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n port: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n username: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n password: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }]\n };\n }\n },\n methods: {\n init: function init() {\n var _this = this;\n this.visible = true;\n this.$nextTick(function () {\n _this.$refs['dataForm'].resetFields();\n _this.getInfo();\n });\n },\n // 获取信息\n getInfo: function getInfo() {\n var _this2 = this;\n this.$http.get('/sys/mailtemplate/config').then(function (_ref) {\n var res = _ref.data;\n if (res.code !== 0) {\n return _this2.$message.error(res.msg);\n }\n _this2.dataForm = res.data;\n }).catch(function () {});\n },\n // 表单提交\n dataFormSubmitHandle: debounce(function () {\n var _this3 = this;\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n _this3.$http.post('/sys/mailtemplate/saveConfig', _this3.dataForm).then(function (_ref2) {\n var res = _ref2.data;\n if (res.code !== 0) {\n return _this3.$message.error(res.msg);\n }\n _this3.$message({\n message: _this3.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: function onClose() {\n _this3.visible = false;\n _this3.$emit('refreshDataList');\n }\n });\n }).catch(function () {});\n });\n }, 1000, {\n 'leading': true,\n 'trailing': false\n })\n }\n};",{"version":3,"names":["debounce","data","visible","dataForm","smtp","port","username","password","computed","dataRule","required","message","$t","trigger","methods","init","_this","$nextTick","$refs","resetFields","getInfo","_this2","$http","get","then","_ref","res","code","$message","error","msg","catch","dataFormSubmitHandle","_this3","validate","valid","post","_ref2","type","duration","onClose","$emit"],"sources":["src/views/modules/message/mail-template-config.vue"],"sourcesContent":["\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ $t('cancel') }}\r\n {{ $t('confirm') }}\r\n \r\n \r\n\r\n\r\n\r\n"],"mappings":"AAwBA,OAAAA,QAAA;AACA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,OAAA;MACAC,QAAA;QACAC,IAAA;QACAC,IAAA;QACAC,QAAA;QACAC,QAAA;MACA;IACA;EACA;EACAC,QAAA;IACAC,QAAA,WAAAA,SAAA;MACA;QACAL,IAAA,GACA;UAAAM,QAAA;UAAAC,OAAA,OAAAC,EAAA;UAAAC,OAAA;QAAA,EACA;QACAR,IAAA,GACA;UAAAK,QAAA;UAAAC,OAAA,OAAAC,EAAA;UAAAC,OAAA;Q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