{"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\\bpmDeputy\\bpmDeputyList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\bpmDeputy\\bpmDeputyList.vue","mtime":1667327528903},{"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\nimport { mapState, mapActions } from \"vuex\";\nimport EipPopconfirmButton from \"@/components/eipControl/EipPopconfirmButton\";\n\nexport default {\n name:\"agentList\",\n components:{\n EipPopconfirmButton\n },\n data(){\n return {\n tableData:\"\",\n fullscreenLoading: true,\n checkBoxData: [],\n };\n },\n computed: mapState({\n rows: state => state.deputy.rows,\n pagination: state => state.deputy.pagination,\n total: state => state.deputy.total\n }),\n methods: {\n remove(){\n var ids=[];\n if(this.checkBoxData && this.checkBoxData.length>0){\n for (let index = 0; index < this.checkBoxData.length; index++) {\n ids.push(this.checkBoxData[index].id);\n }\n }\n //数组去重\n //this.checkBoxData = Array.from(new Set(this.checkBoxData));\n if(ids.length > 0){\n this.$store.dispatch(\"deputy/remove\",ids.join(\",\")).then((res)=>{\n this.search();\n });\n }else{\n this.$message({\n message: '请选择要删除的数据',\n type: 'warning'\n });\n }\n },\n handleChecked(value){\n this.checkBoxData = value;\n }\n ,\n //Loading 加载中\n openFullScreen() {\n this.fullscreenLoading = true;\n },\n // 查询\n search(str) {\n this.openFullScreen();\n if(str=='find'){\n this.$store.dispatch(\"deputy/setPaginationPageNum\",1);\n }\n let querys = []; //查询条件\n let queryFilter = {};\n let pageBean = {\"pageBean\":this.pagination};\n if (this.tableData == \"\") {\n this.$store.dispatch(\"deputy/getBpmDeputyList\",pageBean).then(()=>{\n this.fullscreenLoading = false;\n });\n }else{\n querys = [{property: \"user_name_\", value: this.tableData, group: \"main\", operation: \"LIKE\", relation: \"OR\"}];\n querys.push({property: \"agent_name_\", value: this.tableData, group: \"main\", operation: \"LIKE\", relation: \"OR\"});\n queryFilter = {\"pageBean\":this.pagination,querys};\n this.$store.dispatch(\"deputy/getBpmDeputyList\",queryFilter).then(()=>{\n this.fullscreenLoading = false;\n });\n }\n },\n //重置\n reset(){\n this.tableData =\"\";\n this.search(\"find\");\n },\n operating(id,action) {\n var title = action == \"edit\" ? \"编辑委托\" : action == \"add\" ? \"添加委托\" : \"查看委托\";\n if (action == \"add\") {\n this.$router.push(\"/bpmDeputy/bpmDeputySetting\");\n }\n else if(action == \"edit\"){\n this.$router.push(\"/bpmDeputy/bpmDeputySetting/\" + id);\n }\n },\n handleSizeChange: function (size) {//每页下拉显示数据\n this.$store.dispatch(\"deputy/setPaginationSize\",size);\n this.search();\n },\n handleCurrentChange: function(currentPage){//点击第几页\n this.$store.dispatch(\"deputy/setPaginationPageNum\",currentPage);\n this.search();\n },\n },\n created() {\n let pagination={pageBean:{\"page\":1,\"pageSize\":10,\"showTotal\":true}};\n this.$store.dispatch(\"deputy/getBpmDeputyList\",pagination).then(()=>{\n this.fullscreenLoading = false;\n });\n }\n};\n",null]}