{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/profile.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/profile.vue","mtime":1740130327258},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n\nimport axios from \"axios\";\nimport API from \"@/api.js\";\n\nexport default {\n name: \"profile\",\n props: [\"appid\"],\n data() {\n return {\n tabPosition: \"left\",\n input: \"\",\n number: \"\",\n e_mail: \"\",\n cellphone: \"\",\n password: \"\",\n newpassword: \"\",\n nohark: \"\",\n contentDialogVisible: \"\",\n pagingdevice: 8, //每页多少条数据\n currentPage: 1, //按角色来添加更多\n currentPageaddress: 2, //按通讯录来添加更多\n Addaquery: 2, //按查询来添加更多\n agency: \"\",\n affirm: \"\",\n dialogInput: \"\",\n textarea: \"\",\n valueAgency: \"\",\n roleValue: [], //按角色分组里面的v-model\n tabulated: [], //存着角色列表的数据\n RoleDepartment: [], //按部门分组里面的v-model\n Rolechoice: [], //存着按部门分组的数据\n Onlineusers: [], //存放在线用户的数据\n Currentonlineusers: [], //存放在线用户的v-model\n linkmanRole: [], //存放通讯录的v-model\n linkmancontact: [], //存放代理设置里面通讯录的数据\n Queryall: [], //存放代理设置里面查询的v-model\n ActionRolesearch: [], //存放代理设置里面查询的数据\n radio: \"1\",\n radio2: \"1\",\n radioDialog: \"1\",\n activeName: \"first\", //点击选择里面弹出框的tabs\n pageSize: 10,\n pageNom: 1,\n popup: false, //选择的弹框\n Successfulpopup: false,\n failurepopup: false,\n showAttr: false,\n showReveal: false,\n showCreateGroupDiv: false,\n dialogVisible: false,\n centerDialogVisible: false,\n Agencydialog: false,\n innerVisible: false,\n AgencyDialogVisible: false,\n RemoveVisibel: false,\n value: \"\",\n picker1: \"\",\n picker2: \"\",\n inputNull: [],\n tableData: [],\n multipleSelection: [],\n process: [],\n currentRow: [],\n selectedIDs: [],\n Emptyrole: [], //存放按角色分组的数据\n appId: \"\", //获取到的软件id\n options: [\n {\n value: \"选项1\",\n label: \"并行聚合自动节点\"\n },\n {\n value: \"选项2\",\n label: \"并行非聚合自动节点\"\n },\n {\n value: \"选项3\",\n label: \"主流程\"\n },\n {\n value: \"选项4\",\n label: \"允许前台手动修改流程\"\n },\n {\n value: \"选项5\",\n label: \"到达时触发通知\"\n },\n {\n value: \"选项6\",\n label: \"加签主办人\"\n },\n {\n value: \"选项7\",\n label: \"加签协办人\"\n },\n {\n value: \"选项8\",\n label: \"发文_并行不选中\"\n },\n {\n value: \"选项9\",\n label: \"发文_并行选中\"\n },\n {\n value: \"选项10\",\n label: \"发文_并行选中锁定\"\n },\n {\n value: \"选项11\",\n label: \"发文流程_聚合\"\n },\n {\n value: \"选项12\",\n label: \"发文流程_非聚合\"\n },\n {\n value: \"选项13\",\n label: \"发起人上级部门\"\n },\n {\n value: \"选项14\",\n label: \"子流程\"\n }\n ],\n linkman: [\n {\n name: \"王小虎\"\n },\n {\n name: \"马小龙\"\n },\n {\n name: \"张小狼\"\n }\n ],\n props: {\n label: \"name\",\n children: \"zones\",\n isLeaf: \"leaf\"\n }\n };\n },\n created() {\n this.ContentBox();\n this.dialogensure();\n this.proxys();\n this.contacts();\n this.Roleoftree();\n this.Roleusersets();\n this.inquire();\n //获取软件列表\n API.GetsoFtwareList({\n onSucess: response => {\n let newData = response.data.data.applications.map(item => {\n return {\n id: item.id\n };\n });\n this.appId = newData[0];\n console.log(this.appId);\n }\n });\n },\n methods: {\n //获取部门为树形结构的用户集合\n handleNodeClick(event) {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/users/selectbox/department\",\n method: \"get\",\n params: {\n deptId: event.id\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n id: item.id,\n name: item.name\n };\n });\n this.Rolechoice = newData;\n })\n .catch(error => {\n console.log(error);\n });\n },\n fountain() {\n this.centerDialogVisible = !this.centerDialogVisible;\n },\n //伪删除\n removeAction(index) {\n this.RemoveVisibel = true;\n this.linkman.splice(index, 1);\n },\n construction() {\n this.centerDialogVisible = true;\n this.innerVisible = false;\n },\n setCurrent(rows) {\n if (rows) {\n rows.forEach(row => {\n this.$refs.Current.toggleRowSelection(row);\n });\n } else {\n this.$refs.Current.clearSelection();\n }\n },\n handleCurrentChange(val) {\n this.currentRow = val;\n let ids = [];\n this.currentRow.map(item => {\n ids.push(item.id);\n });\n this.selectedIDs = ids;\n },\n toggleSelection(rows) {\n if (rows) {\n rows.forEach(row => {\n this.$refs.multipleTable.toggleRowSelection(row);\n });\n } else {\n this.$refs.multipleTable.clearSelection();\n }\n },\n //新建代理信息的弹框\n innerAgencyVisible() {\n this.innerVisible = false;\n this.centerDialogVisible = false;\n },\n handleSelectionChange(val) {\n this.multipleSelection = val;\n console.log(this.multipleSelection);\n },\n contentNowrap() {\n if (this.multipleSelection.length == 0) {\n alert(\"请至少选择一个用户!\");\n } else {\n this.AgencyDialogVisible = !this.AgencyDialogVisible;\n }\n },\n replacement() {\n this.agency = \"\";\n },\n reset() {\n this.$refs.in.value = \"\";\n },\n addSkin() {\n if (this.showAttr == true) {\n this.showAttr = false;\n } else {\n this.showAttr = true;\n this.showReveal = false;\n }\n },\n //代理设置里面的查询\n Rolequeryname() {\n let data = [];\n axios({\n url: \"obpm\" + \"/runtime/users/selectbox/search\",\n method: \"get\",\n params: {\n keyWord: \"\",\n pageSize: this.pagingdevice,\n pageNum: this.Addaquery++\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n id: item.id,\n name: item.name\n };\n });\n data = newData;\n this.ActionRolesearch = data.concat(this.ActionRolesearch);\n })\n .catch(error => {\n console.log(error);\n });\n },\n // 模糊查询用户\n inquire() {\n axios({\n url: \"obpm\" + \"/runtime/users/selectbox/search\",\n method: \"get\",\n params: {\n keyWord: \"\",\n pageSize: this.pagingdevice,\n pageNum: 1\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n id: item.id,\n name: item.name\n };\n });\n this.ActionRolesearch = newData;\n })\n .catch(error => {\n console.log(error);\n });\n },\n addModality() {\n if (this.showReveal == true) {\n this.sshowReveal = false;\n } else {\n this.showReveal = true;\n this.showAttr = false;\n }\n },\n //通讯录添加更多\n Addaddressbook() {\n let data = [];\n axios({\n url: \"obpm\" + \"/runtime/users/selectbox/contacts\",\n method: \"get\",\n params: {\n contactsId: \"all\",\n pageSize: this.pagingdevice,\n pageNum: this.currentPageaddress++\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n id: item.id,\n name: item.name\n };\n });\n data = newData;\n this.linkmancontact = data.concat(this.linkmancontact);\n })\n .catch(error => {\n console.log(error);\n });\n },\n //获取以通讯录为树形结构的用户集合\n Allcontacts() {\n axios({\n url: \"obpm\" + \"/runtime/users/selectbox/contacts\",\n method: \"get\",\n params: {\n contactsId: \"all\",\n pageSize: this.pagingdevice,\n pageNum: 1\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n id: item.id,\n name: item.name\n };\n });\n this.linkmancontact = newData;\n })\n .catch(error => {\n console.log(error);\n });\n },\n //获取按部门列表的数据\n loadNode(node, resolve) {\n if (node.level === 0) {\n axios({\n url:\n \"obpm\" + \"/portal/component/user/getDepartmentsByParentId.action\",\n method: \"get\",\n params: {\n parentId: \"\"\n }\n })\n .then(res => {\n resolve(res.data.data);\n })\n .catch(error => {\n console.log(error);\n });\n } else {\n axios({\n url:\n \"obpm\" + \"/portal/component/user/getDepartmentsByParentId.action\",\n method: \"get\",\n params: {\n parentId: node.key\n }\n })\n .then(res => {\n resolve(res.data.data);\n })\n .catch(error => {\n console.log(error);\n });\n }\n },\n //拿到按角色分组的已选择用户的数据\n Actionpopup() {\n for (let i = 0; i < this.tabulated.length; i++) {\n for (let j = 0; j < this.roleValue.length; j++) {\n if (this.tabulated[i].id == this.roleValue[j]) {\n this.dialogInput = this.tabulated[i].name;\n }\n }\n }\n for (let i = 0; i < this.Rolechoice.length; i++) {\n for (let j = 0; j < this.RoleDepartment.length; j++) {\n if (this.Rolechoice[i].id == this.RoleDepartment[j]) {\n this.dialogInput = this.Rolechoice[i].name;\n }\n }\n }\n for (let i = 0; i < this.Onlineusers.length; i++) {\n for (let j = 0; j < this.Currentonlineusers.length; j++) {\n if (this.Onlineusers[i].id == this.Currentonlineusers[j]) {\n this.dialogInput = this.Onlineusers[i].name;\n }\n }\n }\n for (let i = 0; i < this.linkmancontact.length; i++) {\n for (let j = 0; j < this.linkmanRole.length; j++) {\n if (this.linkmancontact[i].id == this.linkmanRole[j]) {\n this.dialogInput = this.linkmancontact[i].name;\n }\n }\n }\n for (let i = 0; i < this.ActionRolesearch.length; i++) {\n for (let j = 0; j < this.Queryall.length; j++) {\n if (this.ActionRolesearch[i].id == this.Queryall[j]) {\n this.dialogInput = this.ActionRolesearch[i].name;\n }\n }\n }\n this.popup = false;\n },\n //按角色列表来进行拼接\n Addmore() {\n let ids = [];\n let data = [];\n this.Emptyrole.map(list => {\n ids.push(list.id);\n });\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/users/selectbox/role\",\n method: \"get\",\n params: {\n roleId: ids[0],\n pageSize: this.pagingdevice,\n pageNum: 1 + this.currentPage++\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n id: item.id,\n name: item.name\n };\n });\n data = newData;\n this.tabulated = data.concat(this.tabulated);\n })\n .catch(error => {\n console.log(error);\n });\n },\n //按角色分组列表数据\n roleClick(id) {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/users/selectbox/role\",\n method: \"get\",\n params: {\n roleId: id,\n pageSize: this.pagingdevice,\n pageNum: this.currentPage\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n id: item.id,\n name: item.name\n };\n });\n this.tabulated = newData;\n })\n .catch(error => {\n console.log(error);\n });\n },\n //点击选择时出现弹框\n Actionchoice() {\n this.popup = !this.popup;\n },\n //获取在线用户的子用户\n Actioncurrentuser(id) {\n axios({\n url: \"obpm\" + \"/runtime/users/selectbox/onlines\",\n method: \"get\",\n params: {\n deptId: id\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n id: item.id,\n name: item.name\n };\n });\n this.Onlineusers = newData;\n })\n .catch(error => {\n console.log(error);\n });\n },\n //获取在线用户集合\n Roleusersets() {\n axios({\n url: \"obpm\" + \"/runtime/users/selectbox/onlines\",\n method: \"get\"\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n id: item.id,\n name: item.name\n };\n });\n this.Onlineusers = newData;\n })\n .catch(error => {\n console.log(error);\n });\n },\n //获取以角色为树形结构的用户合集\n Roleoftree() {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/users/selectbox/role\",\n method: \"get\"\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n name: item.name,\n id: item.id\n };\n });\n this.Emptyrole = newData;\n })\n .catch(error => {\n console.log(error);\n });\n },\n // 通讯录新建分组新增数据\n dialogensure() {\n this.dialogVisible = false;\n },\n // 获取通讯录分组\n contacts() {\n axios({\n url: \"obpm\" + \"/runtime/users/selectbox/contacts/group\",\n method: \"get\"\n })\n .then(res => {\n console.log(res);\n })\n .catch(error => {\n console.log(error);\n });\n },\n // 删除代理\n DELETEusersetups() {\n if (this.selectedIDs == \"\") {\n alert(\"请至少选择一个!\");\n } else {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/usersetups/proxys\",\n method: \"delete\",\n data: this.selectedIDs\n })\n .then(res => {\n if (res.status == 200) {\n this.proxys();\n }\n console.log(res);\n })\n .catch(error => {\n console.log(error);\n });\n }\n },\n // 保存代理信息\n centerDialog() {\n if (this.dialogInput == \"\") {\n alert(\"请选择授权人\");\n } else if (this.picker1 == \"\") {\n alert(\"请选择开始日期\");\n } else if (this.picker2 == \"\") {\n alert(\"请选择结束日期\");\n } else {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/usersetups/proxys/save\",\n method: \"post\",\n data: {\n proxyMode: this.radio2,\n flowName: this.value,\n agentsName: this.dialogInput,\n startProxyTime: this.picker1,\n endProxyTime: this.picker2,\n state: this.radioDialog,\n description: this.textarea\n }\n })\n .then(res => {\n if (res.status == 200) {\n this.proxys();\n }\n })\n .catch(error => {\n console.log(error);\n });\n this.innerVisible = !this.innerVisible;\n this.value = \"\";\n this.dialogInput = \"\";\n this.picker1 = \"\";\n this.picker2 = \"\";\n this.textarea = \"\";\n }\n },\n // 获取代理列表\n proxys() {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/usersetups/proxys\",\n method: \"get\",\n params: {\n linesPerPage: 10,\n pageNo: 1\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n id: item.id,\n flowName: item.flowName,\n proxyMode: item.proxyMode,\n description: item.description,\n agentsName: item.agentsName,\n state: item.state\n };\n });\n this.process = newData;\n })\n .catch(error => {\n console.log(error);\n });\n },\n //获取代理设置分页数据的请求\n handlAgentpaging(value) {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/usersetups/proxys\",\n method: \"get\",\n params: {\n linesPerPage: 10,\n pageNo: value\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n id: item.id,\n flowName: item.flowName,\n proxyMode: item.proxyMode,\n description: item.description,\n agentsName: item.agentsName,\n state: item.state\n };\n });\n if (res.status == 200) {\n this.proxys();\n }\n this.process = newData;\n })\n .catch(error => {\n console.log(error);\n });\n },\n //通讯录分页请求\n Addressbookpaging(value) {\n axios({\n url: \"obpm\" + \"/runtime/users/selectbox/contacts\",\n method: \"get\",\n params: {\n contactsId: \"\",\n pageSize: this.pageSize,\n pageNum: value\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n dept: item.dept,\n mobile: item.mobile,\n email: item.email\n };\n });\n this.tableData = newData;\n })\n .catch(error => {\n console.log(error);\n });\n console.log(value);\n },\n // 请求通讯录里面要渲染的数据\n ContentBox() {\n axios({\n url: \"obpm\" + \"/runtime/users/selectbox/contacts\",\n method: \"get\",\n params: {\n contactsId: \"\",\n pageSize: this.pageSize,\n pageNum: this.pageNom\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n dept: item.dept,\n mobile: item.mobile,\n email: item.email\n };\n });\n this.tableData = newData;\n })\n .catch(function(error) {\n console.log(error);\n });\n },\n // 这是皮肤样式的请求\n Userskin() {\n API.SkinSetting(\n {\n skin: \"H5\"\n },\n {\n onSucess: response => {\n if (response.status == 200) {\n alert(\"H5样式皮肤设置成功!\");\n window.location = \"http://localhost:8080/obpm/portal/H5/main.jsp\";\n }\n },\n onError: error => {\n console.log(error);\n }\n }\n );\n },\n // 这是个人基本信息的请求\n UserSetups() {\n API.PersonalInformationSettings(\n {\n name: this.input,\n email: this.e_mail,\n telephone: this.cellphone\n },\n {\n onSucess: response => {\n if (response.status == 200) {\n this.Successfulpopup = !this.Successfulpopup;\n } else {\n this.failurepopup = true;\n }\n },\n onError: error => {\n console.log(error);\n }\n }\n );\n }\n }\n};\n",null]}