| | |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | |
| | | export function showShareUser(userId, menuId) { |
| | | return request({ |
| | | url: '/family/zfEventShare/shareUser/'+userId+"/"+menuId, |
| | | method: 'get', |
| | | |
| | | }) |
| | | } |
| | |
| | | } |
| | | // export function get |
| | | //修改父亲母亲 |
| | | export function updateFM(uid, tpfid, clanId) |
| | | export function updateFM(uid, tpfid) |
| | | { |
| | | return request({ |
| | | url:'/self/user/uidAndUJd/'+uid+'/'+tpfid+"/"+clanId, |
| | | url:'/self/user/uidUJd/'+uid+'/'+tpfid, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | //修改时选择配偶 |
| | | export function updatePO(tpfid,sex) |
| | | export function updatePO(tpfid,sex, clanId) |
| | | { |
| | | return request({ |
| | | url:'/self/user/uidAndUJd/' + tpfid + '/' + sex, |
| | | url:'/self/user/uidAndUJd/' + tpfid + '/' + sex+"/"+clanId, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | const getters = { |
| | | sidebar: state => state.app.sidebar, |
| | | size: state => state.app.size, |
| | | clanId: state => state.user.clanId, |
| | | clanId: state => state.user.clanId, |
| | | userId: state => state.user.userId, |
| | | device: state => state.app.device, |
| | | dict: state => state.dict.dict, |
| | | visitedViews: state => state.tagsView.visitedViews, |
| | |
| | | name: '', |
| | | avatar: '', |
| | | clanId: '', |
| | | userId: '', |
| | | roles: [], |
| | | permissions: [] |
| | | }, |
| | |
| | | }, |
| | | SET_CLANID: (state, clanId) => { |
| | | state.clanId = clanId |
| | | }, |
| | | SET_USERID: (state, userId) => { |
| | | state.userId = userId |
| | | }, |
| | | }, |
| | | |
| | |
| | | } |
| | | // console.log(res) |
| | | // alert(res.user.clanId) |
| | | commit('SET_USERID', res.user.userId) |
| | | commit('SET_CLANID', res.user.clanId) |
| | | commit('SET_NAME', user.userName) |
| | | commit('SET_AVATAR', avatar) |
| | |
| | | |
| | | |
| | | <script> |
| | | import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; |
| | | import { listRole, getRole, delRole, addRole, |
| | | updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; |
| | | import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; |
| | | |
| | | |
| | |
| | | import {getAllInfo} from "@/api/system/user" |
| | | //在system/note/index.js中导入接口函数 --接好了 |
| | | import {listFamilyevent,enload, delFamilyevent , addFamilyevent , uploadPic, |
| | | share,shareToWho,getWhoShare,downShareData,deleteShareData,showShareData |
| | | share,shareToWho,getWhoShare,downShareData,deleteShareData,showShareData,showShareUser |
| | | } from "@/api/bignote/index"; |
| | | import {listUserAll} from "@/api/root/index"; |
| | | import {getInfo} from "@/api/login"; |
| | |
| | | }, |
| | | getList1() { |
| | | this.loading1 = true; |
| | | this.queryParams1.happenStartTime = this.dateRange1.length > 0 && this.dateRange1[0] |
| | | this.queryParams1.happenEndTime = this.dateRange1.length > 0 && this.dateRange1[1] |
| | | // alert(this.$store.state.user.clanId) |
| | | this.listRoot = [] |
| | | let clanId = this.$store.state.user.clanId |
| | | getAllInfo(clanId).then(response => { |
| | | this.listRoot = response.data; |
| | | const kon = {} |
| | | console.log(response.data,'userListuserListuserList99999999999999') |
| | | this.listRoot.forEach(element => { |
| | | kon[element['nickName']] = element['userId'] |
| | | }) |
| | | for(let i in kon){ |
| | | this.userOptions.push({label: i,value: kon[i]}) |
| | | } |
| | | for(let i in this.userOptions){ |
| | | this.userList.push(this.userOptions[i].value) |
| | | } |
| | | console.log(this.userList,'userListuserListuserList99999999999999') |
| | | this.loading1 = false; |
| | | } |
| | | ); |
| | | let userId = this.$store.state.user.userId |
| | | alert(userId) |
| | | |
| | | showShareUser(userId, 2013).then(response=>{ |
| | | console.log("===========ddddddddddddd") |
| | | console.log(response.data) |
| | | console.log("--------------------") |
| | | response.data.forEach(element =>{ |
| | | this.userOptions.push({label: element.oldName,value: element.userId}) |
| | | }) |
| | | }) |
| | | // this.queryParams1.happenStartTime = this.dateRange1.length > 0 && this.dateRange1[0] |
| | | // this.queryParams1.happenEndTime = this.dateRange1.length > 0 && this.dateRange1[1] |
| | | // // alert(this.$store.state.user.clanId) |
| | | // this.listRoot = [] |
| | | // let clanId = this.$store.state.user.clanId |
| | | // getAllInfo(clanId).then(response => { |
| | | // this.listRoot = response.data; |
| | | // const kon = {} |
| | | // console.log(response.data,'userListuserListuserList99999999999999') |
| | | // this.listRoot.forEach(element => { |
| | | // kon[element['nickName']] = element['userId'] |
| | | // }) |
| | | // for(let i in kon){ |
| | | // this.userOptions.push({label: i,value: kon[i]}) |
| | | // } |
| | | // for(let i in this.userOptions){ |
| | | // this.userList.push(this.userOptions[i].value) |
| | | // } |
| | | // console.log(this.userList,'userListuserListuserList99999999999999') |
| | | // this.loading1 = false; |
| | | // } |
| | | // ); |
| | | }, |
| | | // 确认分享 |
| | | subShare(row) { |
| | |
| | | if (mpdata == null) |
| | | return null; |
| | | var data = { |
| | | "label": mpdata['spouse'] != null ? eval(mpdata['spouse']).nickName : '', |
| | | "prop": mpdata['nickName'], |
| | | "label": mpdata['spouse'] != null ? eval(mpdata['spouse']).oldName : '', |
| | | "prop": mpdata['oldName'], |
| | | "url": mpdata['url']!=null?'https://www.bendudu.com:8080/'+mpdata['url']:tp, |
| | | "purl": mpdata['spouse'] != null ? (mpdata['spouse'].url!=null? 'https://www.bendudu.com:8080/'+mpdata['spouse'].url:tp):tp, |
| | | "id": mpdata['userId'], |
| | | "link": mpdata['nickName'], |
| | | "link": mpdata['oldName'], |
| | | "children": [] |
| | | }; |
| | | |
| | | if (mpdata['childList'] != null) { |
| | | for (var i = 0; i < mpdata['childList'].length; i++) { |
| | | var dt = { |
| | | "label": mpdata['childList'][i]['spouse'] != null ? eval(mpdata['childList'][i]['spouse']).nickName : "", |
| | | "prop": mpdata['childList'][i]['nickName'], |
| | | "label": mpdata['childList'][i]['spouse'] != null ? eval(mpdata['childList'][i]['spouse']).oldName : "", |
| | | "prop": mpdata['childList'][i]['oldName'], |
| | | "url": mpdata['childList'][i]['url']!=null?'https://www.bendudu.com:8080/'+mpdata['childList'][i]['url']:tp, |
| | | "id": mpdata['childList'][i]['userId'], |
| | | "purl": (mpdata['childList'][i]['spouse'] != null ) ?( mpdata['childList'][i]['spouse'].url!= null?'https://www.bendudu.com:8080/'+mpdata['childList'][i]['spouse'].url:tp):tp, |
| | | "link": mpdata['childList'][i]['nickName'], |
| | | "link": mpdata['childList'][i]['oldName'], |
| | | "children": [] |
| | | }; |
| | | if (mpdata['childList'][i]['childList'] != null) { |
| | |
| | | data() { |
| | | return { |
| | | // 修改配偶时的用户id和sex |
| | | originRole: undefined, |
| | | sex:'', |
| | | pOID:'', |
| | | a:undefined, |
| | |
| | | } |
| | | |
| | | //alert(this.cuid) |
| | | let clanId = this.$store.state.user.clanId |
| | | |
| | | //alert(fid) |
| | | updateFM(this.cuid, fid).then(response => { |
| | | //alert(response.data) |
| | | if(!response.data) |
| | |
| | | _this.$set(_this.form,'fid',''); |
| | | return; |
| | | } |
| | | |
| | | //alert(fid) |
| | | let clanId = this.$store.state.user.clanId |
| | | alert(fid) |
| | | alert(this.cuid) |
| | | updateFM(this.cuid, fid).then(response => { |
| | | //alert(response.data) |
| | | if(!response.data) |
| | |
| | | console.log("==============_________________000000000") |
| | | _this.$set(_this.form,'spouseId',response.data.spouseId); |
| | | if(response.data.roleId==3) |
| | | { |
| | | _this.originRole = 102 |
| | | |
| | | _this.$set(_this.form,'role',102); |
| | | } |
| | | else |
| | | { |
| | | _this.originRole = 2 |
| | | _this.$set(_this.form,'role',response.data.roleId); |
| | | } |
| | | // alert(_this.form.fid) |
| | | _this.zinfid = response.data.userId |
| | | // alert(78) |
| | |
| | | fm.sex = this.form.sex |
| | | // alert(fm.sex) |
| | | fm.status = this.form.status |
| | | if(this.originRole==102 && fm.roleId==2) |
| | | { |
| | | this.$modal.msgSuccess("家庭用户不能修改为普通用户"); |
| | | return |
| | | } |
| | | fm.fid = this.form.fid |
| | | fm.mid = this.form.mid |
| | | // alert(this.form.isMyFamily) |