{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/profile.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/profile.vue","mtime":1739760944322},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["\nimport form_selectApprover_flowpanel from \"@/components/form_selectApprover_flowpanel.vue\";\nimport API from \"@/api.js\";\n\nexport default {\n name: \"profile\",\n props: [\"appid\"],\n components: {\n form_selectApprover_flowpanel,\n },\n computed: {\n baseInfoma() {\n return this.$store.state.myProfile;\n },\n },\n data() {\n return {\n currentPage: 1,\n labelPosition: \"right\",\n startDay: \"\",\n endDay: \"\",\n description: \"\",\n flowName: \"\",\n selectFlowId: \"\",\n authorizedUser: \"\",\n authorizedUserId: \"\",\n flowData: [],\n checkedFlowId: [],\n\n information: \"\",\n tabPosition: \"left\",\n oldPassword: \"\", //\n newPassword: \"\",\n affirmPassword: \"\",\n\n userVisible: false, //用户选择框弹窗\n isProxys: true,\n owner: \"\",\n proxyMode: \"0\",\n row_count: 0, //代理设置分页总数\n flowId: \"\",\n addressBookVisible: false, //通讯录弹窗\n newGroupName: \"\",\n groupId: \"\",\n groupList: [], //通讯录分组列表\n selectGroup: [], //选中的通讯录数据\n groupValue: \"\",\n nohark: \"\", //通讯录查询关键字\n isOneGroup: false,\n currentGroupId: \"\",\n agency: \"\",\n radio: \"1\",\n pageSize: 10,\n pageNum: 1,\n centerDialogVisible: false,\n innerVisible: false,\n AgencyDialogVisible: false,\n value: \"\",\n tableData: [],\n tableDataNum: 0,\n multipleSelection: [],\n process: [],\n currentRow: [],\n selectedIDs: [],\n appId: \"\", //获取到的软件id\n saveApproverStatus: \"\",\n state: \"1\",\n currentRowId: \"\",\n currentGroupName: \"\",\n addUserTogroup: \"\",\n allSoftware: [],\n selectSoftwareId: \"\",\n currentAppid: \"\",\n searchFlowValue: \"\",\n isShowError: false, //是否出现邮箱或者手机验证消息\n };\n },\n created() {\n this.baseInfo();\n this.ContentBox();\n this.proxys();\n this.contactsGroup();\n //获取软件列表\n API.GetsoFtwareList({\n onSucess: (response) => {\n let newData = [];\n response.data.data.applications.forEach((app) => {\n if (app.id != \"km\" && app.id != \"pm\" && app.id != \"qm\") {\n newData.push(app);\n }\n });\n this.allSoftware = newData;\n this.selectSoftwareId = this.$root.appid;\n },\n });\n },\n methods: {\n handleIconSearch(value) {\n let appId = this.$root.appid;\n this.$api.getSearchProxysFlows(appId, value, {\n onSucess: (res) => {\n let flowData = res.data.data;\n let arr = [];\n for (let key in flowData) {\n let obj = {};\n if (key) {\n obj.id = key;\n obj.name = flowData[key];\n arr.push(obj);\n }\n }\n this.flowData = arr;\n },\n });\n },\n onChange(e) {\n this.currentAppid = e;\n this.proxys();\n },\n showInnerDialog() {\n let appId = this.currentAppid ? this.currentAppid : this.$root.appid;\n this.$api.getProxysFlow(appId, {\n onSucess: (res) => {\n let flowData = res.data.data;\n let arr = [];\n for (let key in flowData) {\n let obj = {};\n if (key) {\n obj.id = key;\n obj.name = flowData[key];\n arr.push(obj);\n }\n }\n\n console.log(\"arr---->\", arr);\n this.flowData = arr;\n this.$nextTick(() => {\n for (let i = 0; i < arr.length; i++) {\n if (this.flowId == arr[i].id) {\n this.$refs.flowTable.toggleRowSelection(arr[i]);\n }\n }\n });\n },\n });\n this.innerVisible = true;\n },\n changeHandler() {\n this.state = \"1\";\n },\n //移出分组\n moveOutOfGroup() {\n if (this.selectGroup.length < 1) {\n this.$message({\n message: this.$t(\"msg.select_atLeastOne\"),\n type: \"warning\",\n });\n } else {\n this.$confirm(\n this.$t(\"msg.comfirm\") +\n `${this.selectGroup.length}` +\n this.$t(\"msg.move_group\"),\n this.$t(\"msg.move\"),\n {\n confirmButtonText: this.$t(\"msg.confirm\"),\n cancelButtonText: this.$t(\"btns.cancel\"),\n type: \"warning\",\n }\n )\n .then(() => {\n let arr = [];\n for (let i = 0; i < this.selectGroup.length; i++) {\n arr.push(this.selectGroup[i].id);\n }\n this.$api.deleteGroupUserList(this.currentGroupId, arr, {\n onSucess: (res) => {\n if (res.data.errcode == 0) {\n // this.selectGroup.forEach((item,index) => {\n\n // for(let i=0; i {\n this.tableDataNum = response.data.data.rowCount;\n let newData = response.data.data.datas.map((item) => {\n return {\n name: item.name,\n dept: item.dept,\n mobile: item.mobile,\n email: item.email,\n id: item.id,\n deptId: item.deptId,\n };\n });\n this.tableData = newData;\n },\n }\n );\n\n this.$notify({\n title: this.$t(\"msg.es\"),\n message: \"\",\n type: \"success\",\n });\n }\n },\n });\n })\n .catch(() => {});\n }\n },\n\n //点击分组展示分组数据\n toPacketData(item) {\n this.selectGroup = [];\n this.isOneGroup = true;\n this.currentGroupId = item.id;\n this.$api.getContact(item.id, {\n onSucess: (res) => {\n this.tableData = res.data.data.datas;\n this.tableDataNum = res.data.data.rowCount;\n this.pageNum = 1;\n },\n });\n },\n //通讯录添加新数据到分组\n addToGroup() {\n let arr = [];\n this.selectGroup.forEach((item) => {\n arr.push(item.id);\n });\n let id = this.groupValue;\n if (id) {\n this.$api.addDataToGroup(id, arr, {\n onSucess: (res) => {\n this.AgencyDialogVisible = false;\n this.selectGroup = [];\n this.$refs.multipleTable.clearSelection();\n this.groupValue = \"\";\n if (res.data.errcode == 0) {\n this.$notify({\n title: this.$t(\"msg.op_ss\"),\n message: \"\",\n type: \"success\",\n });\n }\n },\n });\n } else {\n this.$message({\n message: this.$t(\"msg.select_move_group\"),\n type: \"warning\",\n });\n }\n },\n //通讯录删除分组\n deleteGroup(item, index) {\n this.$confirm(this.$t(\"msg.del_group\"), this.$t(\"delete\"), {\n confirmButtonText: this.$t(\"msg.confirm\"),\n cancelButtonText: this.$t(\"btns.cancel\"),\n type: \"warning\",\n })\n .then(() => {\n let id = item.id;\n this.$api.deleteGroup(id, {\n onSucess: (res) => {\n if (res.data.errcode == 0) {\n this.groupList.splice(index, 1);\n this.$notify({\n title: this.$t(\"msg.es\"),\n message: \"\",\n type: \"success\",\n });\n }\n },\n });\n })\n .catch(() => {});\n },\n\n //通讯录新建分组保存\n doNewGroup() {\n if (this.groupId) {\n if (!this.newGroupName) {\n this.$message({\n message: this.$t(\"placeholder.group_name\"),\n type: \"warning\",\n });\n } else {\n this.$api.editContactGroup(this.groupId, this.newGroupName, {\n onSucess: (res) => {\n let data = res.data.data;\n for (let i = 0; i < this.groupList.length; i++) {\n if (this.groupList[i].id == data.id) {\n this.groupList[i] = data;\n break;\n }\n }\n this.addressBookVisible = false;\n },\n });\n }\n } else {\n if (!this.newGroupName) {\n this.$message({\n message: this.$t(\"placeholder.group_name\"),\n type: \"warning\",\n });\n } else {\n let name = this.newGroupName;\n this.$api.saveContactGroup(name, {\n onSucess: (res) => {\n let data = res.data.data;\n this.groupList.push(data);\n this.addressBookVisible = false;\n },\n });\n }\n }\n },\n //通讯录新建分组\n setNewGroup(item) {\n if (item) {\n this.currentGroupName = this.$t(\"profile.edit_group\");\n this.newGroupName = item.name;\n this.groupId = item.id;\n } else {\n this.currentGroupName = this.$t(\"profile.new_group\");\n this.newGroupName = \"\";\n this.groupId = \"\";\n }\n this.addressBookVisible = true;\n },\n\n //代理设置编辑流程\n fountain(row, index) {\n let id = row.id;\n this.currentRowId = id;\n let appId = this.currentAppid ? this.currentAppid : this.$root.appid;\n this.$api.editProxysFlow(appId, id, {\n onSucess: (res) => {\n if (res.data.data) {\n let data = res.data.data;\n this.authorizedUser = data.agentsName;\n this.description = data.description;\n this.startDay = data.startProxyTime;\n this.endDay = data.endProxyTime;\n this.flowName = data.flowName;\n this.owner = data.owner;\n this.state = data.state;\n this.proxyMode = data.proxyMode.toString();\n this.flowId = data.flowId;\n }\n this.centerDialogVisible = true;\n },\n });\n },\n\n //代理设置删除流程\n deleteFlow(row, index) {\n this.$confirm(this.$t(\"msg.del_data\"), this.$t(\"delete\"), {\n confirmButtonText: this.$t(\"msg.confirm\"),\n cancelButtonText: this.$t(\"btns.cancel\"),\n type: \"warning\",\n })\n .then(() => {\n let appId = this.currentAppid ? this.currentAppid : this.$root.appid;\n let id = row.id;\n let arrIds = [];\n arrIds.push(id);\n this.$api.deleteProxysFlow(appId, arrIds, {\n onSucess: (res) => {\n if (res.data.errcode == 0) {\n this.process.splice(index, 1);\n this.$notify({\n title: this.$t(\"msg.es\"),\n message: \"\",\n type: \"success\",\n });\n }\n },\n });\n })\n .catch(() => {});\n },\n\n // 删除代理\n DELETEusersetups() {\n if (this.selectedIDs == \"\") {\n this.$message({\n message: this.$t(\"msg.least_one\"),\n type: \"warning\",\n });\n } else {\n this.$confirm(\n this.$t(\"msg.confirm_to_del\") +\n `${this.selectedIDs.length}` +\n this.$t(\"msg.t_data\"),\n this.$t(\"delete\"),\n {\n confirmButtonText: this.$t(\"msg.confirm\"),\n cancelButtonText: this.$t(\"btns.cancel\"),\n type: \"warning\",\n }\n )\n .then(() => {\n let appId = this.currentAppid\n ? this.currentAppid\n : this.$root.appid;\n let arrIds = this.selectedIDs;\n this.$api.deleteProxysFlow(appId, arrIds, {\n onSucess: (res) => {\n if (res.data.errcode == 0) {\n this.$notify({\n title: this.$t(\"msg.es\"),\n message: \"\",\n type: \"success\",\n });\n this.proxys();\n }\n },\n });\n })\n .catch(() => {});\n }\n },\n\n //代理设置查询流程\n searchFlow() {\n let appId = this.currentAppid ? this.currentAppid : this.$root.appid;\n let jsonData = {\n flowName: this.agency,\n linesPerPage: 10,\n pageNo: 1,\n };\n this.$api.getproxys(appId, jsonData, {\n onSucess: (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 console.log(\"this.process--->\", this.process);\n },\n });\n },\n\n //代理设置选择授权用户\n selectApprover(name, id, selectedUsersList) {\n this.userVisible = false;\n this.authorizedUser = name;\n this.authorizedUserId = id;\n let obj = {};\n obj.row = selectedUsersList;\n this.saveApproverStatus = obj;\n },\n\n //展示用户选择框\n showUserDialg() {\n this.userVisible = true;\n },\n\n //选择流程弹窗按确定后的数据\n getFlowName() {\n this.flowName = \"\";\n this.selectFlowId = \"\";\n if (this.checkedFlowId && this.checkedFlowId.length > 0) {\n this.checkedFlowId.forEach((item) => {\n this.flowName += item.name + \";\";\n this.selectFlowId += item.id + \";\";\n });\n this.innerVisible = false;\n } else {\n this.flowName = \"\";\n this.selectFlowId = \"\";\n }\n },\n\n //流程选择中的数据\n handleSelectionChange(val) {\n this.checkedFlowId = val;\n },\n\n //通讯录选择中的数据\n handleGrounpChange(val) {\n this.selectGroup = val;\n },\n\n //打开代理弹窗并获取流程数据\n construction() {\n this.proxyMode = \"0\";\n this.state = \"1\";\n this.currentRowId = \"\";\n this.saveApproverStatus = \"\";\n this.authorizedUser = \"\";\n this.description = \"\";\n this.endDay = \"\";\n this.startDay = \"\";\n this.selectFlowId = \"\";\n this.flowName = \"\";\n this.centerDialogVisible = true;\n this.innerVisible = false;\n let appId = this.currentAppid ? this.currentAppid : this.$root.appid;\n this.$api.getProxysFlow(appId, {\n onSucess: (res) => {\n let flowData = res.data.data;\n let arr = [];\n for (let key in flowData) {\n let obj = {};\n if (key) {\n obj.id = key;\n obj.name = flowData[key];\n arr.push(obj);\n }\n }\n console.log(\"arr---->\", arr);\n this.flowData = arr;\n },\n });\n },\n\n // 保存代理信息\n centerDialog() {\n if (!this.authorizedUser) {\n this.$message({\n message: this.$t(\"view.select_authorizer\"),\n type: \"warning\",\n });\n } else if (!this.startDay) {\n this.$message({\n message: this.$t(\"view.select_start_date\"),\n type: \"warning\",\n });\n } else if (!this.endDay) {\n this.$message({\n message: this.$t(\"view.select_end_date\"),\n type: \"warning\",\n });\n } else {\n let startTime = new Date(this.startDay);\n startTime = startTime.getTime();\n let endTime = new Date(this.endDay);\n endTime = endTime.getTime();\n\n if (startTime > endTime) {\n this.$message({\n message: this.$t(\"view.end_than_start\"),\n type: \"warning\",\n });\n } else {\n let appId = this.currentAppid ? this.currentAppid : this.$root.appid;\n let id = this.currentRowId ? this.currentRowId : \"\";\n let data = {\n agents: this.authorizedUserId,\n agentsName: this.authorizedUser,\n description: this.description,\n endProxyTime: endTime,\n flowId: this.proxyMode == \"0\" ? this.selectFlowId : \"\",\n flowName:\n this.proxyMode == \"0\"\n ? this.flowName\n : this.$t(\"view.total_flow\"),\n owner: this.$store.state.userId,\n proxyMode: parseInt(this.proxyMode),\n startProxyTime: startTime,\n state: this.state,\n };\n this.$api.saveProxys(appId, data, id, {\n onSucess: (res) => {\n if (res.data.errcode == 40014) {\n this.centerDialogVisible = false;\n this.$notify.error({\n title: this.$t(\"msg.err\"),\n message: res.data.errmsg,\n });\n } else {\n this.centerDialogVisible = false;\n this.$notify({\n title: this.$t(\"msg.ss\"),\n message: \"\",\n type: \"success\",\n });\n this.proxys();\n }\n },\n });\n }\n }\n },\n //校验邮箱\n checkedEmail() {\n var emailReg = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$/;\n if (\n !emailReg.test(this.information.email) &&\n this.information.email !== \"\" &&\n this.information.email !== null\n ) {\n this.$notify({\n title: this.$t(\"view.noagree_email\"),\n message: \"\",\n type: \"warning\",\n });\n this.isShowError = true;\n return;\n }\n },\n //校验手机\n checkedMobile() {\n var phoneReg = /^1\\d{10}$/;\n console.log(\n !phoneReg.test(this.information.mobile) && !this.information.mobile\n );\n console.log(this.information.mobile);\n if (\n !phoneReg.test(this.information.mobile) &&\n this.information.mobile !== \"\" &&\n this.information.mobile !== null\n ) {\n this.$notify({\n title: this.$t(\"view.noagree_tel\"),\n message: \"\",\n type: \"warning\",\n });\n this.isShowError = true;\n return;\n }\n },\n\n // 个人基本信息保存的请求\n UserSetups() {\n // let Base64 = require('js-base64').Base64;\n // this.isShowError = false;\n // this.checkedEmail();\n // this.checkedMobile();\n // if(!this.isShowError){\n if (this.oldPassword) {\n if (!this.newPassword) {\n this.$notify({\n title: this.$t(\"view.new_pwd_notnull\"),\n message: \"\",\n type: \"warning\",\n });\n } else {\n if (!this.affirmPassword) {\n this.$notify({\n title: this.$t(\"view.old_new_same\"),\n message: \"\",\n type: \"warning\",\n });\n } else if (this.newPassword !== this.affirmPassword) {\n this.$notify({\n title: this.$t(\"view.old_new_same\"),\n message: \"\",\n type: \"warning\",\n });\n } else if (this.newPassword == this.affirmPassword) {\n let ap = this.affirmPassword;\n let np = this.newPassword;\n let op = this.oldPassword;\n // ap = Base64.encode(this.affirmPassword)\n // np = Base64.encode(this.newPassword)\n // op = Base64.encode(this.oldPassword)\n // let ap1 = ap.substr(0,2)\n // let ap2 = ap.substr(2)\n\n // let np1 = np.substr(0,2)\n // let np2 = np.substr(2)\n\n // let op1 = op.substr(0,2)\n // let op2 = op.substr(2)\n\n // ap = ap2 + ap1\n // np = np2 + np1\n // op = op2 + op1\n\n let data = {\n userName: localStorage.getItem(\"userName\"),\n confirmedPassword: this.$getCodeRSA(ap),\n newPassword: this.$getCodeRSA(np),\n password: this.$getCodeRSA(op),\n };\n this.$api.updatePassword(data, {\n onSucess: (res) => {\n if (res.data.status == 200) {\n //res.data.errcode == 0\n this.$notify({\n title: this.$t(\"view.update_ss\"),\n message: \"\",\n type: \"success\",\n });\n } else {\n this.$notify({\n title: res.data.message,\n message: \"\",\n type: \"error\",\n });\n }\n },\n });\n }\n }\n } else if (!this.oldPassword && this.affirmPassword) {\n this.$notify({\n title: this.$t(\"view.old_pwd_notnull\"),\n message: \"\",\n type: \"warning\",\n });\n } else if (this.newPassword) {\n if (!this.oldPassword) {\n this.$notify({\n title: this.$t(\"view.old_pwd_notnull\"),\n message: \"\",\n type: \"warning\",\n });\n }\n }\n this.$api.PersonalInformationSettings(\n {\n name: this.information.name,\n email: this.information.email,\n telephone: this.information.mobile,\n },\n {\n onSucess: (response) => {\n if (\n !this.oldPassword &&\n !this.newPassword &&\n !this.affirmPassword\n ) {\n if (response.status == 200) {\n this.$notify({\n title: this.$t(\"msg.ss\"),\n message: \"\",\n type: \"success\",\n });\n }\n }\n },\n onError: (error) => {\n console.log(error);\n },\n }\n );\n // }\n },\n\n baseInfo() {\n this.information = this.$store.state.myProfile;\n },\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\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\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\n //通讯录{{$t('profile.add')}}\n contentNowrap() {\n this.addUserTogroup = this.$t(\"view.add_to_group\");\n if (this.selectGroup.length == 0) {\n this.$message({\n message: this.$t(\"profile.select_one_user\"),\n type: \"warning\",\n });\n } else {\n this.$api.getContactGroup({\n onSucess: (res) => {\n this.groupList = res.data.data.datas;\n },\n });\n this.AgencyDialogVisible = true;\n }\n },\n replacement() {\n this.agency = \"\";\n },\n reset() {\n this.nohark = \"\";\n },\n\n // 通讯录查询用户\n inquire() {\n this.pageNum = 1;\n let params = {\n contactsId: this.currentGroupId ? this.currentGroupId : \"\",\n userName: this.nohark,\n pageSize: 10,\n pageNum: 1,\n };\n this.$api.getSearchContact(params, {\n onSucess: (res) => {\n let newData = res.data.data.datas.map((item) => {\n return {\n name: item.name,\n dept: item.dept,\n mobile: item.mobile,\n email: item.email,\n id: item.id,\n deptId: item.deptId,\n };\n });\n this.tableData = newData;\n this.tableDataNum = res.data.data.rowCount;\n },\n });\n },\n\n // 获取代理列表\n proxys() {\n let appId = this.currentAppid ? this.currentAppid : this.$root.appid;\n let jsonData = {\n flowName: \"\",\n linesPerPage: 10,\n pageNo: 1,\n };\n this.$api.getproxys(appId, jsonData, {\n onSucess: (res) => {\n this.row_count = res.data.data.rowCount;\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 console.log(\"this.process--->\", this.process);\n },\n });\n },\n\n // 获取通讯录分组\n contactsGroup() {\n this.$api.getContactGroup({\n onSucess: (res) => {\n this.groupList = res.data.data.datas;\n },\n });\n },\n\n //获取代理设置分页数据的请求\n handlAgentpaging(ev) {\n let appId = this.currentAppid ? this.currentAppid : this.$root.appid;\n let jsonData = {\n flowName: this.agency,\n linesPerPage: 10,\n pageNo: ev,\n };\n this.$api.getproxys(appId, jsonData, {\n onSucess: (res) => {\n this.row_count = res.data.data.rowCount;\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 console.log(\"this.process--->\", this.process);\n },\n });\n },\n //通讯录分页请求\n Addressbookpaging(num) {\n if (this.currentGroupId) {\n this.$api.getAddressBook(\n {\n contactsId: this.currentGroupId,\n userName: this.nohark,\n pageSize: 10,\n pageNum: num,\n },\n {\n onSucess: (res) => {\n this.tableDataNum = res.data.data.rowCount;\n let newData = res.data.data.datas.map((item) => {\n return {\n name: item.name,\n dept: item.dept,\n mobile: item.mobile,\n email: item.email,\n id: item.id,\n deptId: item.deptId,\n };\n });\n this.tableData = newData;\n },\n }\n );\n } else {\n this.$api.getAddressBook(\n {\n contactsId: \"\",\n userName: this.nohark,\n pageSize: 10,\n pageNum: num,\n },\n {\n onSucess: (res) => {\n this.tableDataNum = res.data.data.rowCount;\n let newData = res.data.data.datas.map((item) => {\n return {\n name: item.name,\n dept: item.dept,\n mobile: item.mobile,\n email: item.email,\n id: item.id,\n deptId: item.deptId,\n };\n });\n this.tableData = newData;\n },\n }\n );\n }\n },\n // 请求通讯录里面要渲染的数据\n ContentBox() {\n this.isOneGroup = false;\n this.currentGroupId = \"\";\n this.nohark = \"\";\n this.$api.getAddressBook(\n {\n contactsId: \"\",\n pageSize: 10,\n pageNum: 1,\n },\n {\n onSucess: (res) => {\n this.tableDataNum = res.data.data.rowCount;\n let newData = res.data.data.datas.map((item) => {\n return {\n name: item.name,\n dept: item.dept,\n mobile: item.mobile,\n email: item.email,\n id: item.id,\n deptId: item.deptId,\n };\n });\n this.tableData = newData;\n },\n }\n );\n },\n // 这是皮肤样式的请求\n Userskin() {\n API.SkinSetting(\n {\n skin: \"H5\",\n },\n {\n onSucess: (response) => {\n if (response.status == 200) {\n alert(this, $t(\"profile.h_ss\"));\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};\n",null]}