{"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\\message\\messageReceiverList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\message\\messageReceiverList.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\r\nimport { mapState, mapActions } from \"vuex\";\r\nimport EipPopconfirmButton from \"@/components/eipControl/EipPopconfirmButton\";\r\n\r\nexport default {\r\n name: \"messageReceiverList\",\r\n components: {\r\n EipPopconfirmButton,\r\n },\r\n data() {\r\n return {\r\n rowData: {},\r\n dialogVisible: false,\r\n tableData: \"\",\r\n fullscreenLoading: true,\r\n checkBoxData: [],\r\n readOption: 1,\r\n filterQuery:{\r\n property:\"receiveTime\",\r\n value: 1,\r\n operation:\"EQUAL\",\r\n relation:\"AND\",\r\n group:\"filterTime\"\r\n },\r\n filterParams: {\r\n receiveTimeOrder: 'desc'\r\n }\r\n };\r\n },\r\n watch: {\r\n readOption: function(newVal) {\r\n this.filterQuery.value = newVal;\r\n this.$store.dispatch(\"messageReceiver/setPaginationPageNum\", 1);\r\n this.search();\r\n }\r\n },\r\n computed: mapState({\r\n rows: (state) => state.messageReceiver.rows,\r\n pagination: (state) => state.messageReceiver.pagination,\r\n total: (state) => state.messageReceiver.total,\r\n }),\r\n methods: {\r\n mark() {\r\n var ids = [];\r\n if (this.checkBoxData && this.checkBoxData.length > 0) {\r\n for (let index = 0; index < this.checkBoxData.length; index++) {\r\n ids.push(this.checkBoxData[index].id);\r\n }\r\n }\r\n if (ids.length > 0) {\r\n this.$store\r\n .dispatch(\"messageReceiver/mark\", ids)\r\n .then((res) => {\r\n this.search();\r\n });\r\n } else {\r\n this.$message({\r\n message: \"请选择要标记的数据\",\r\n type: \"warning\",\r\n });\r\n }\r\n },\r\n detail(row) {\r\n this.$store.dispatch(\"messageReceiver/detail\", row.id).then((res) => {\r\n this.rowData = res;\r\n this.dialogVisible = true;\r\n this.search();\r\n });\r\n },\r\n remove() {\r\n var ids = [];\r\n if (this.checkBoxData && this.checkBoxData.length > 0) {\r\n for (let index = 0; index < this.checkBoxData.length; index++) {\r\n ids.push(this.checkBoxData[index].id);\r\n }\r\n }\r\n\r\n if (ids.length > 0) {\r\n this.$store\r\n .dispatch(\"messageReceiver/remove\", ids.join(\",\"))\r\n .then((res) => {\r\n this.search();\r\n });\r\n } else {\r\n this.$message({\r\n message: \"请选择要删除的数据\",\r\n type: \"warning\",\r\n });\r\n }\r\n },\r\n handleChecked(value) {\r\n this.checkBoxData = value;\r\n },\r\n //Loading 加载中\r\n openFullScreen() {\r\n this.fullscreenLoading = true;\r\n },\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()\r\n }\r\n },\r\n // 查询\r\n search() {\r\n this.openFullScreen();\r\n let queryFilter = {pageBean: this.pagination};\r\n if (this.filterQuery.value === 2){\r\n queryFilter = Object.assign(queryFilter, {params: this.filterParams});\r\n }\r\n let querys = [];\r\n if (this.tableData === \"\") {\r\n querys = [this.filterQuery];\r\n } else {\r\n querys = [\r\n {\r\n property: \"subject\",\r\n value: \"%\" + this.tableData + \"%\",\r\n group: \"main\",\r\n operation: \"LIKE\",\r\n relation: \"OR\"\r\n },\r\n this.filterQuery\r\n ];\r\n }\r\n queryFilter = Object.assign(queryFilter, {querys});\r\n this.$store\r\n .dispatch(\"messageReceiver/getlistJson\", queryFilter)\r\n .then(() => {\r\n this.fullscreenLoading = false;\r\n });\r\n this.$store.dispatch(\"messageReceiver/setMsgbadge\");\r\n },\r\n //重置\r\n reset() {\r\n this.tableData = \"\";\r\n this.search();\r\n },\r\n operating(id, action) {\r\n var title =\r\n action == \"edit\"\r\n ? \"编辑常用语\"\r\n : action == \"add\"\r\n ? \"添加常用语\"\r\n : \"查看常用语\";\r\n if (action == \"add\") {\r\n this.$router.push(\"/messageReceiver/messageReceiverAdd\");\r\n } else if (action == \"edit\") {\r\n this.$router.push(\"/messageReceiver/messageReceiverEdit/\" + id);\r\n } else {\r\n this.$router.push(\"/messageReceiver/messageReceiverGet/\" + id);\r\n }\r\n },\r\n handleSizeChange: function (size) {\r\n //每页下拉显示数据\r\n this.$store.dispatch(\"messageReceiver/setPaginationSize\", size);\r\n this.search();\r\n },\r\n handleCurrentChange: function (currentPage) {\r\n //点击第几页\r\n this.$store.dispatch(\"messageReceiver/setPaginationPageNum\", currentPage);\r\n this.search();\r\n },\r\n receiveTimeSortChange({column, prop, order}) {\r\n if (order === 'ascending'){\r\n this.filterParams.receiveTimeOrder = 'asc';\r\n }else{\r\n this.filterParams.receiveTimeOrder = 'desc';\r\n }\r\n this.search();\r\n }\r\n },\r\n created() {\r\n //默认显示未读消息\r\n let pagination = { pageBean: { page: 1, pageSize: 20, showTotal: true },querys:[this.filterQuery] };\r\n this.$store.dispatch(\"messageReceiver/getlistJson\", pagination).then(() => {\r\n this.fullscreenLoading = false;\r\n });\r\n this.$store.dispatch(\"messageReceiver/setMsgbadge\");\r\n }\r\n};\r\n",null]}