Merge branch 'main' into 'stg'

修改bug

See merge request cloud-mediate/mediate-manage-web!18
This commit is contained in:
刘翕 2025-02-13 03:52:37 +00:00
commit d3c3a6ba79
3 changed files with 40 additions and 10 deletions

View File

@ -462,13 +462,19 @@ import { values } from "lodash";
}, },
// //
getMediateUserList(){ getMediateUserList(){
let deptId = '' // let deptId = ''
if(JSON.parse(sessionStorage.getItem('userInfo'))){ // if(JSON.parse(sessionStorage.getItem('userInfo'))){
deptId = JSON.parse(sessionStorage.getItem('userInfo')).deptId // deptId = JSON.parse(sessionStorage.getItem('userInfo')).deptId
} // }
smapi.getUserByDeptList({ids:[deptId]}).then(res => { // smapi.getUserByDeptList({ids:[deptId]}).then(res => {
// if (!res.code) {
// this.MediateUserList = res
// }
// })
smapi.getUserList({current:1,size:500,type:2}).then(res => {
if (!res.code) { if (!res.code) {
this.MediateUserList = res this.MediateUserList = res.records
} }
}) })
}, },

View File

@ -127,6 +127,8 @@ import apipack from "@/services/casePackageManagement";
departmentOptions:[],// departmentOptions:[],//
checkedAll:[], checkedAll:[],
chooseChecked:[], chooseChecked:[],
deptUsers:[]
}; };
}, },
mounted () { mounted () {
@ -158,10 +160,33 @@ import apipack from "@/services/casePackageManagement";
}, },
// id // id
getByDeptList(){ getByDeptList(){
//
let deptList = []
let userlistmy = []
api.getUserByDeptList({ids:[this.deptId]}).then(res => {
res.forEach(item =>{
userlistmy.push({
id:item.id,
realName:item.realName,
checked:false
})
})
})
deptList.push({
deptId:this.deptId,
name:this.departmentOptions.find(item=>{ return item.id == this.deptId}).name,
count:this.departmentOptions.find(item=>{ return item.id == this.deptId}).count,
checked:false,
values:userlistmy
})
//
api.getDeptList({companyId:this.$store.state.userinfo.companyId,current:1,size:500,pid:this.deptId}).then(res => { api.getDeptList({companyId:this.$store.state.userinfo.companyId,current:1,size:500,pid:this.deptId}).then(res => {
if (!res.code) if (!res.code)
{ {
let deptList = [] // let deptList = []
res.records.forEach(item =>{ res.records.forEach(item =>{
let userlist = [] let userlist = []
api.getUserByDeptList({ids:[item.id]}).then(res => { api.getUserByDeptList({ids:[item.id]}).then(res => {
@ -184,7 +209,6 @@ import apipack from "@/services/casePackageManagement";
}) })
}) })
this.peopleList = deptList this.peopleList = deptList
} }
}) })
}, },
@ -387,6 +411,6 @@ import apipack from "@/services/casePackageManagement";
margin-bottom:0; margin-bottom:0;
} }
} }
.min-height350{min-height: 350px;} .min-height350{height: 350px;}
.department-dept ::v-deep .el-checkbox__label {color: $color-000000} .department-dept ::v-deep .el-checkbox__label {color: $color-000000}
</style> </style>

View File

@ -265,7 +265,7 @@ import api from "@/services/caseManagement";
updateClick(index,proofitem){ updateClick(index,proofitem){
this.updateRow = index; this.updateRow = index;
this.repaymentObj = proofitem this.repaymentObj = JSON.parse(JSON.stringify(proofitem))
this.repaymentObj.mediaPath = [proofitem.proofUrl] this.repaymentObj.mediaPath = [proofitem.proofUrl]
this.fileList = [{url: proofitem.proofUrl,fileName:'上传'}] this.fileList = [{url: proofitem.proofUrl,fileName:'上传'}]
}, },