{"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\\mailSettingList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\mail\\mailSettingList.vue","mtime":1675214577589},{"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.search\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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\";\nimport { Message } from 'element-ui';\nexport default {\n  name: \"mailSetting\",\n  data: function data() {\n    return {\n      tableData: \"\",\n      fullscreenLoading: true,\n      multipleSelection: []\n    };\n  },\n  computed: mapState({\n    rows: function rows(state) {\n      return state.mail.mailSettingRows;\n    },\n    pagination: function pagination(state) {\n      return state.mail.mailSettingPagination;\n    },\n    total: function total(state) {\n      return state.mail.mailSettingTotal;\n    }\n  }),\n  methods: {\n    //回车查询\n    searchEnterFun: function searchEnterFun(e) {\n      var keyCode = window.event ? e.keyCode : e.which;\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/setMailSettingPaginationSize\", size);\n      this.search();\n    },\n    handleCurrentChange: function handleCurrentChange(currentPage) {\n      //点击第几页\n      this.$store.dispatch(\"mail/setMailSettingPaginationPageNum\", currentPage);\n      this.search();\n    },\n    search: function search(str) {\n      var _this = this;\n      this.openFullScreen();\n      if (str == 'find') {\n        this.$store.dispatch(\"mail/setMailSettingPaginationPageNum\", 1);\n      }\n      var querys = []; //查询条件\n      var queryFilter = {};\n      var pageBean = {\n        \"pageBean\": this.pagination\n      };\n      if (this.tableData == \"\") {\n        this.$store.dispatch(\"mail/getMailSettingByPagination\", pageBean).then(function () {\n          _this.fullscreenLoading = false;\n        });\n      } else if (this.tableData != \"\") {\n        querys = [{\n          property: \"nickName\",\n          value: this.tableData,\n          group: \"main\",\n          operation: \"LIKE\",\n          relation: \"OR\"\n        }, {\n          property: \"mailAddress\",\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/getMailSettingByPagination\", queryFilter).then(function () {\n          _this.fullscreenLoading = false;\n        });\n      }\n    },\n    reset: function reset() {\n      this.tableData = \"\";\n      this.search();\n    },\n    handleSelectionChange: function handleSelectionChange(val) {\n      this.multipleSelection = val;\n    },\n    deleted: function deleted() {\n      var _this2 = this;\n      if (this.multipleSelection == null || this.multipleSelection.length == 0) {\n        this.$message.warning(\"请选择邮箱删除!\");\n        return false;\n      }\n      this.$confirm('此操作将删除该配置, 是否继续?', '提示', {\n        confirmButtonText: '确定',\n        cancelButtonText: '取消',\n        type: 'warning'\n      }).then(function () {\n        _this2.$store.dispatch(\"mail/deleteMaliSettingById\", _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 == \"edit\") {\n        this.$router.push(\"/mail/settingEdit/\" + id);\n      } else if (action == \"add\") {\n        this.$router.push(\"/mail/settingAdd\");\n      } else {\n        this.$router.push(\"/mail/settingGet/\" + id);\n      }\n    },\n    setDefault: function setDefault(id) {\n      var _this3 = this;\n      this.$store.dispatch(\"mail/setMailSettingDefaultById\", id).then(function () {\n        _this3.search();\n      });\n    },\n    testConnect: function testConnect(id) {\n      var _this4 = this;\n      Message.info(\"测试连接可能需要点时间,请耐心等候下。\");\n      this.$store.dispatch(\"mail/testMailConnectById\", id).then(function () {\n        _this4.search();\n      });\n    }\n  },\n  created: function created() {\n    var _this5 = this;\n    var pageBean = {\n      \"pageBean\": {\n        \"page\": \"1\",\n        \"pageSize\": \"10\",\n        \"showTotal\": \"true\"\n      }\n    }; //初次加载默认pageBean\n    this.$store.dispatch(\"mail/getMailSettingByPagination\", pageBean).then(function () {\n      _this5.fullscreenLoading = false;\n    });\n  }\n};",null]}