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