{"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\\agent\\agentList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\agent\\agentList.vue","mtime":1667327528887},{"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/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//\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: \"agentList\",\n  components: {\n    EipPopconfirmButton: EipPopconfirmButton\n  },\n  data: function data() {\n    return {\n      tableData: \"\",\n      fullscreenLoading: true,\n      checkBoxData: []\n    };\n  },\n  computed: mapState({\n    rows: function rows(state) {\n      return state.agent.rows;\n    },\n    pagination: function pagination(state) {\n      return state.agent.pagination;\n    },\n    total: function total(state) {\n      return state.agent.total;\n    }\n  }),\n  methods: {\n    rowClick: function rowClick(row, column, event) {\n      this.$refs.htTable.toggleRowSelection(row);\n    },\n    remove: function remove() {\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      //this.checkBoxData = Array.from(new Set(this.checkBoxData));\n\n\n      if (ids.length > 0) {\n        this.$store.dispatch(\"agent/remove\", ids.join(\",\")).then(function (res) {\n          _this.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('find');\n      }\n    },\n    // 查询\n    search: function search(str) {\n      var _this2 = this;\n\n      this.openFullScreen();\n\n      if (str == 'find') {\n        this.$store.dispatch(\"agent/setPaginationPageNum\", 1);\n      }\n\n      var querys = []; //查询条件\n\n      var queryFilter = {};\n      var pageBean = {\n        \"pageBean\": this.pagination\n      };\n\n      if (this.tableData == \"\") {\n        this.$store.dispatch(\"agent/getlistJson\", pageBean).then(function () {\n          _this2.fullscreenLoading = false;\n        });\n      } else {\n        querys = [{\n          property: \"subject_\",\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(\"agent/getlistJson\", queryFilter).then(function () {\n          _this2.fullscreenLoading = false;\n        });\n      }\n    },\n    //重置\n    reset: function reset() {\n      this.tableData = \"\";\n      this.search(\"find\");\n    },\n    operating: function operating(id, action) {\n      var title = action == \"edit\" ? \"编辑委托\" : action == \"add\" ? \"添加委托\" : \"查看委托\";\n\n      if (action == \"add\") {\n        this.$router.push(\"/agent/agentAdd\");\n      } else if (action == \"edit\") {\n        this.$router.push(\"/agent/agentEdit/\" + id);\n      } else {\n        this.$router.push(\"/agent/agentGet/\" + id);\n      }\n    },\n    handleSizeChange: function handleSizeChange(size) {\n      //每页下拉显示数据\n      this.$store.dispatch(\"agent/setPaginationSize\", size);\n      this.search();\n    },\n    handleCurrentChange: function handleCurrentChange(currentPage) {\n      //点击第几页\n      this.$store.dispatch(\"agent/setPaginationPageNum\", currentPage);\n      this.search();\n    }\n  },\n  created: function created() {\n    var _this3 = this;\n\n    var pagination = {\n      pageBean: {\n        \"page\": 1,\n        \"pageSize\": 10,\n        \"showTotal\": true\n      }\n    };\n    this.$store.dispatch(\"agent/getlistJson\", pagination).then(function () {\n      _this3.fullscreenLoading = false;\n    });\n  }\n};",null]}