This commit is contained in:
yanran200730
2022-03-14 17:44:25 +08:00
parent 0c484a0092
commit 1384f7495c

View File

@@ -134,6 +134,13 @@
getInfo (id) {
this.instance.post(`/app/wxcp/wxuser/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
const departmentNames = res.data.departmentNames.split(',')
this.department = res.data.departmentIdsStr.split(',').map((item, index) => {
return {
name: departmentNames[index],
id: item
}
})
this.form = {
...res.data,
departmentName: res.data.departmentNames,