{"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\\mailLinkmanList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\mail\\mailLinkmanList.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":315532800000},{"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.search\";\nimport \"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//\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 { mapState, mapActions } from 'vuex';\nexport default {\n  name: 'mailLinkmanList',\n  data: function data() {\n    var checkName = function checkName(rule, value, callback) {\n      var pattern = new RegExp(\"[`~!@#$%^&*()=|{}':;',\\\\[\\\\].<>《》/?~！@#￥……&*（）——|{}【】‘；：”“'。，、？ ]\");\n\n      if (value == '') {\n        callback(new Error('请输入联系人名称'));\n      } else if (pattern.test(value)) {\n        callback(new Error('联系人名称包含特殊字符，请重新输入'));\n      } else {\n        callback();\n      }\n    };\n\n    var checkphone = function checkphone(rule, value, callback) {\n      var reg = /^1[3|4|5|7|8][0-9]\\d{8}$/;\n\n      if (value == '') {\n        callback(new Error('请输入手机号'));\n      } else if (!reg.test(value)) {\n        callback(new Error('请输入正确的手机号!'));\n      } else {\n        callback();\n      }\n    };\n\n    return {\n      tableData: '',\n      dialogFormVisible: false,\n      fullscreenLoading: true,\n      multipleSelection: [],\n      formLabelWidth: '80px',\n      data: {\n        linkName: '',\n        mailId: '',\n        phone: ''\n      },\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    rows: function rows(state) {\n      return state.mail.mailLinkmanRows;\n    },\n    pagination: function pagination(state) {\n      return state.mail.mailLinkmanPagination;\n    },\n    total: function total(state) {\n      return state.mail.mailLinkmanTotal;\n    },\n    tree: function tree(state) {\n      return state.mail.tree;\n    }\n  }),\n  methods: {\n    //回车查询\n    searchEnterFun: function searchEnterFun(e) {\n      var keyCode = window.event ? e.keyCode : e.which;\n\n      if (keyCode == 13) {\n        this.search('find');\n      }\n    },\n    rowClick: function rowClick(row, column, event) {\n      this.$refs.htTable.toggleRowSelection(row);\n    },\n    //Loading 加载中\n    openFullScreen: function openFullScreen() {\n      this.fullscreenLoading = true;\n    },\n    handleSizeChange: function handleSizeChange(size) {\n      //每页下拉显示数据\n      this.$store.dispatch('mail/setMailLinkmanPaginationSize', size);\n      this.search();\n    },\n    handleCurrentChange: function handleCurrentChange(currentPage) {\n      //点击第几页\n      this.$store.dispatch('mail/setMailLinkmanPaginationPageNum', currentPage);\n      this.search();\n    },\n    search: function search(str) {\n      var _this = this;\n\n      this.openFullScreen();\n\n      if (str == 'find') {\n        this.$store.dispatch('mail/setMailLinkmanPaginationPageNum', 1);\n      }\n\n      var querys = []; //查询条件\n\n      var queryFilter = {};\n      var pageBean = {\n        pageBean: this.pagination\n      };\n\n      if (this.tableData == '') {\n        this.$store.dispatch('mail/getMailLinkmanByPagination', pageBean).then(function () {\n          _this.fullscreenLoading = false;\n        });\n      } else if (this.tableData != '') {\n        querys = [{\n          property: 'linkName',\n          value: this.tableData,\n          group: 'main',\n          operation: 'LIKE',\n          relation: 'OR'\n        }, {\n          property: 'mailId',\n          value: this.tableData,\n          group: 'main',\n          operation: 'LIKE',\n          relation: 'OR'\n        }];\n        queryFilter = {\n          pageBean: this.pagination,\n          querys: querys\n        };\n        this.$store.dispatch('mail/getMailLinkmanByPagination', queryFilter).then(function () {\n          _this.fullscreenLoading = false;\n        });\n      }\n    },\n    handleSelectionChange: function handleSelectionChange(val) {\n      this.multipleSelection = val;\n    },\n    deleted: function deleted() {\n      var _this2 = this;\n\n      if (this.multipleSelection == null || this.multipleSelection.length == 0) {\n        this.$message.warning('请选择联系人删除!');\n        return false;\n      }\n\n      this.$confirm('此操作将删除该联系人, 是否继续?', '提示', {\n        confirmButtonText: '确定',\n        cancelButtonText: '取消',\n        type: 'warning'\n      }).then(function () {\n        _this2.$store.dispatch('mail/deleteMaliLinkmanById', _this2.multipleSelection).then(function () {\n          _this2.search();\n        });\n      }).catch(function () {\n        _this2.$message({\n          type: 'info',\n          message: '已取消删除'\n        });\n      });\n    },\n    operating: function operating(id, action) {\n      if (action == 'add') {\n        this.$router.push('/mail/linkmanAdd');\n      } else if (action == 'edit') {\n        this.$router.push('/mail/linkmanEdit/' + id);\n      } else {\n        this.$router.push('/mail/linkmanGet/' + id);\n      }\n    },\n    submitForm: function submitForm(data) {\n      var _this3 = this;\n\n      this.$refs[data].validate(function (valid) {\n        if (valid) {\n          _this3.$store.dispatch('mail/saveMailLinkman', _this3.data).then(function () {\n            _this3.data = {\n              linkName: '',\n              mailId: '',\n              phone: ''\n            };\n            _this3.dialogFormVisible = false;\n\n            _this3.search();\n          });\n        } else {\n          _this3.$message.warning('您输入表单信息有误，请重新填写!');\n\n          return false;\n        }\n      });\n    },\n    openDialog: function openDialog() {\n      this.data = {\n        linkName: '',\n        mailId: '',\n        phone: ''\n      };\n      this.dialogFormVisible = true;\n    },\n    cancel: function cancel() {\n      this.data = {};\n      this.dialogFormVisible = false;\n    }\n  },\n  created: function created() {\n    var _this4 = 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/getMailLinkmanByPagination', pageBean).then(function () {\n      _this4.fullscreenLoading = false;\n    });\n  }\n};",null]}