{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\components\\mail\\mailLinkmanEdit.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\mail\\mailLinkmanEdit.vue","mtime":1675214577526},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.constructor\";\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 { mapState, mapActions } from \"vuex\";\nexport default {\n  props: [\"id\"],\n  name: \"mailLinkmanEdit\",\n  data: function data() {\n    var checkName = function checkName(rule, value, callback) {\n      var pattern = new RegExp(\"[`~!@#$%^&*()=|{}':;',\\\\[\\\\].<>《》/?~！@#￥……&*（）——|{}【】‘；：”“'。，、？ ]\");\n      if (value == \"\") {\n        callback(new Error(\"请输入联系人名称\"));\n      } else if (pattern.test(value)) {\n        callback(new Error(\"联系人名称包含特殊字符，请重新输入\"));\n      } else {\n        callback();\n      }\n    };\n    var checkphone = function checkphone(rule, value, callback) {\n      var reg = /^1[3|4|5|7|8][0-9]\\d{8}$/;\n      if (value == \"\") {\n        callback(new Error(\"请输入手机号\"));\n      } else if (!reg.test(value)) {\n        callback(new Error(\"请输入正确的手机号!\"));\n      } else {\n        callback();\n      }\n    };\n    return {\n      rules: {\n        mailId: [{\n          required: true,\n          message: '请输入邮箱地址',\n          trigger: 'blur'\n        }, {\n          type: 'email',\n          message: '请输入正确的邮箱地址',\n          trigger: 'blur,change'\n        }],\n        linkName: [{\n          required: true,\n          validator: checkName,\n          trigger: \"blur\"\n        }],\n        phone: [{\n          required: true,\n          validator: checkphone,\n          trigger: \"blur\"\n        }]\n      }\n    };\n  },\n  computed: mapState({\n    data: function data(state) {\n      return state.mail.mailLinkmanData;\n    }\n  }),\n  methods: {\n    back: function back() {\n      this.$router.go(-1); //返回上一层\n    },\n    submitForm: function submitForm(data) {\n      var _this = this;\n      this.$refs[data].validate(function (valid) {\n        if (valid) {\n          _this.$store.dispatch(\"mail/saveMailLinkman\", _this.data).then(function () {\n            _this.back();\n          });\n        } else {\n          _this.$message.warning(\"您输入表单信息有误，请重新填写!\");\n          return false;\n        }\n      });\n    }\n  },\n  created: function created() {\n    this.$store.dispatch(\"mail/getMailLinkmanById\", this.id);\n  }\n};",null]}