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