{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\mailList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\mail\\mailList.vue","mtime":1667327529622},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"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\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"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":["import \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es6.regexp.search\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\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//\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: 'mailList',\n data: function data() {\n return {\n tableData: '',\n currentTree: {},\n defaultTree: [],\n fullscreenLoading: true,\n dialogFormVisible: false,\n multipleSelection: [],\n defaultProps: {\n children: 'children',\n label: 'nickName'\n },\n data: {\n linkName: '',\n mailId: '',\n phone: ''\n }\n };\n },\n computed: mapState({\n rows: function rows(state) {\n return state.mail.mailRows;\n },\n pagination: function pagination(state) {\n return state.mail.mailPagination;\n },\n total: function total(state) {\n return state.mail.mailTotal;\n },\n tree: function tree(state) {\n return state.mail.tree;\n },\n mailSettingDefault: function mailSettingDefault(state) {\n return state.mail.mailSettingDefault;\n }\n }),\n methods: {\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/setMailPaginationSize', size);\n this.search();\n },\n handleCurrentChange: function handleCurrentChange(currentPage) {\n //点击第几页\n this.$store.dispatch('mail/setMailPaginationPageNum', currentPage);\n this.search();\n },\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 search: function search(str) {\n var _this = this;\n\n this.openFullScreen();\n var id = null;\n var querys = []; //查询条件\n\n var queryFilter = {};\n var pageBean = {\n pageBean: this.pagination\n };\n\n if (!this.currentTree.id) {\n id = this.mailSettingDefault.id;\n } else {\n if (this.currentTree.isParent == false) {\n id = this.currentTree.id;\n } else {\n id = this.currentTree.parentId;\n }\n }\n\n if (str == 'find') {\n this.$store.dispatch('mail/setMailPaginationPageNum', 1);\n }\n\n if (this.tableData == '') {\n if (!this.currentTree.id) {\n querys = [{\n property: 'type',\n value: 1,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }, {\n property: 'setId',\n value: this.mailSettingDefault.id,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }];\n } else {\n if (!this.currentTree.types) {\n querys = [{\n property: 'setId',\n operation: 'EQUAL',\n group: 'main',\n value: this.currentTree.id,\n relation: 'AND'\n }];\n } else {\n querys = [{\n property: 'type',\n value: this.currentTree.types,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }, {\n property: 'setId',\n value: this.currentTree.parentId,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }];\n }\n }\n } else if (this.tableData != '') {\n if (!this.currentTree.id) {\n querys = [{\n property: 'subject',\n value: this.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'senderAddress',\n value: this.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'type',\n value: '1',\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }, {\n property: 'setId',\n value: this.mailSettingDefault.id,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }];\n } else {\n if (!this.currentTree.types) {\n querys = [{\n property: 'subject',\n value: this.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'senderAddress',\n value: this.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'setId',\n value: this.currentTree.id,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }];\n } else {\n querys = [{\n property: 'subject',\n value: this.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'senderAddress',\n value: this.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'type',\n value: this.currentTree.types,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }, {\n property: 'setId',\n value: this.currentTree.parentId,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }];\n }\n }\n }\n\n queryFilter = {\n pageBean: this.pagination,\n querys: querys\n };\n this.$store.dispatch('mail/getMailByPagination', queryFilter).then(function () {\n _this.fullscreenLoading = false;\n });\n },\n reset: function reset() {\n this.tableData = '';\n this.search();\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/deleteMaliById', _this2.multipleSelection).then(function () {\n _this2.$store.dispatch('mail/getMailTreeList');\n\n _this2.search();\n });\n }).catch(function () {\n _this2.$message({\n type: 'info',\n message: '已取消删除'\n });\n });\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n sysnc: function sysnc(id) {\n var _this3 = this;\n\n if (id == '') {\n id = this.mailSettingDefault.id;\n }\n\n Message.info('收信中,请稍等!');\n this.$store.dispatch('mail/getSysncById', id).then(function () {\n _this3.$store.dispatch('mail/getMailTreeList');\n\n _this3.search('find');\n });\n },\n treeClick: function treeClick(n, i, e) {\n this.currentTree = n;\n var type = n.types;\n var querys = []; //查询条件\n\n var queryFilter = {};\n\n if (!n.types) {\n if (this.tableData != '') {\n querys = [{\n property: 'setId',\n operation: 'EQUAL',\n group: 'main',\n value: n.id,\n relation: 'AND'\n }, {\n property: 'subject',\n value: this.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'senderAddress',\n value: this.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }];\n } else {\n querys = [{\n property: 'setId',\n operation: 'EQUAL',\n group: 'main',\n value: n.id,\n relation: 'AND'\n }];\n }\n\n queryFilter = {\n pageBean: this.pagination,\n querys: querys\n };\n this.$store.dispatch('mail/getMailByPagination', queryFilter);\n } else {\n if (this.tableData != '') {\n querys = [{\n property: 'subject',\n value: this.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'senderAddress',\n value: this.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'setId',\n value: n.parentId,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }, {\n property: 'type',\n value: type,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }];\n } else {\n querys = [{\n property: 'setId',\n value: n.parentId,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }, {\n property: 'type',\n value: type,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }];\n }\n\n queryFilter = {\n pageBean: this.pagination,\n querys: querys\n };\n this.$store.dispatch('mail/getMailByPagination', queryFilter);\n }\n },\n handleRowClick: function handleRowClick(row) {\n //打开页面,变成只读\n if (row.isRead == 0) {\n //idRead变成1,未读的变成已读\n this.$store.dispatch('mail/setMailByisRead', row.id);\n }\n\n this.$router.push('/mail/mailGet/' + row.id);\n },\n mailEdits: function mailEdits(row) {\n //打开页面,变成只读\n if (row.isRead == 0) {\n //idRead变成1,未读的变成已读\n this.$store.dispatch('mail/setMailByisRead', row.id);\n }\n\n this.$router.push('/mail/mailEdit/' + row.id);\n },\n sendMail: function sendMail() {\n this.$router.push('/mail/mailAdd');\n },\n saveMailman: function saveMailman(row) {\n var _this4 = this;\n\n this.data.linkName = row.senderName;\n this.data.mailId = row.senderAddress;\n this.$prompt('请输入邮箱联系人电话', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消'\n }).then(function (_ref) {\n var value = _ref.value;\n _this4.data.phone = value;\n\n _this4.$store.dispatch('mail/saveMailLinkman', _this4.data).then(function () {\n _this4.search();\n });\n }).catch(function () {});\n }\n },\n created: function created() {\n var _this5 = this;\n\n var ids = '';\n this.$store.dispatch('mail/getMailTreeList').then(function (treeList) {\n //展开tree默认选中\n var _iterator = _createForOfIteratorHelper(treeList),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var i = _step.value;\n\n if (i.isDefault == 1) {\n _this5.$refs.tree.setCurrentKey(i.children[0].id);\n\n ids = i.id;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n var querys = [{\n property: 'type',\n value: 1,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }, {\n property: 'setId',\n value: ids,\n group: 'main',\n operation: 'EQUAL',\n relation: 'AND'\n }];\n var pageBean = {\n pageBean: {\n page: '1',\n pageSize: '10',\n showTotal: 'true'\n }\n }; //初次加载默认pageBean\n\n var queryFilter = {\n pageBean: pageBean,\n querys: querys\n };\n\n _this5.$store.dispatch('mail/getMailByPagination', queryFilter).then(function () {\n //页面加载调用tudo.js里面的分页方法\n _this5.fullscreenLoading = false;\n });\n });\n },\n mounted: function mounted() {}\n};",null]}