Merge branch 'main' into 'stg'
修改bug See merge request cloud-mediate/mediate-manage-web!18
This commit is contained in:
commit
d3c3a6ba79
@ -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
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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>
|
||||||
@ -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:'上传'}]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user