{"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\\secretary\\secretaryList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\secretary\\secretaryList.vue","mtime":1667327529653},{"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//\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\tname:\"agentList\",\r\n components:{\r\n\t EipPopconfirmButton\r\n },\r\n\tdata(){\r\n\t\treturn {\r\n tableData:\"\",\r\n fullscreenLoading: true,\r\n checkBoxData: [],\r\n\t\t};\r\n },\r\n computed: mapState({\r\n rows: state => state.agent.rows,\r\n pagination: state => state.agent.pagination,\r\n total: state => state.agent.total\r\n }),\r\n\tmethods: {\r\n rowClick(row, column, event){\r\n this.$refs.htTable.toggleRowSelection(row);\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 //this.checkBoxData = Array.from(new Set(this.checkBoxData));\r\n if(ids.length > 0){\r\n this.$store.dispatch(\"agent/secretaryRemove\",ids).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 ,\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('find')\r\n }\r\n },\r\n // 查询\r\n search(str) {\r\n this.openFullScreen();\r\n if(str=='find'){\r\n this.$store.dispatch(\"agent/setPaginationPageNum\",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(\"agent/getSecretarylist\",pageBean).then(()=>{\r\n this.fullscreenLoading = false;\r\n });\r\n }else{\r\n querys = [{property: \"secretary_Name_\", value: this.tableData, group: \"ssmain\", operation: \"LIKE\", relation: \"OR\"},\r\n {property: \"share_Name_\", value: this.tableData, group: \"ssmain\", operation: \"LIKE\", relation: \"OR\"}];\r\n queryFilter = {\"pageBean\":this.pagination,querys};\r\n this.$store.dispatch(\"agent/getSecretarylist\",queryFilter).then(()=>{\r\n this.fullscreenLoading = false;\r\n });\r\n }\r\n },\r\n //重置\r\n reset(){\r\n this.tableData =\"\";\r\n this.search(\"find\");\r\n },\r\n\t\toperating(id,action) {\r\n var title = action == \"edit\" ? \"编辑委托\" : action == \"add\" ? \"添加委托\" : \"查看委托\";\r\n if (action == \"add\") {\r\n this.$router.push(\"/secretary/secretaryEdit/0\");\r\n }\r\n else if(action == \"edit\"){\r\n this.$router.push(\"/secretary/secretaryEdit/\" + id);\r\n }\r\n else{\r\n this.$router.push(\"/agent/agentGet/\" + id);\r\n }\r\n },\r\n handleSizeChange: function (size) {//每页下拉显示数据\r\n this.$store.dispatch(\"agent/setPaginationSize\",size);\r\n this.search();\r\n },\r\n handleCurrentChange: function(currentPage){//点击第几页\r\n this.$store.dispatch(\"agent/setPaginationPageNum\",currentPage);\r\n this.search();\r\n },\r\n },\r\n created() {\r\n let pagination={pageBean:{\"page\":1,\"pageSize\":10,\"showTotal\":true}};\r\n this.$store.dispatch(\"agent/getSecretarylist\",pagination).then(()=>{\r\n this.fullscreenLoading = false;\r\n });\r\n }\r\n};\r\n",null]}