28161
This commit is contained in:
@@ -134,6 +134,13 @@
|
|||||||
getInfo (id) {
|
getInfo (id) {
|
||||||
this.instance.post(`/app/wxcp/wxuser/queryDetailById?id=${id}`).then(res => {
|
this.instance.post(`/app/wxcp/wxuser/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res.code === 0) {
|
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 = {
|
this.form = {
|
||||||
...res.data,
|
...res.data,
|
||||||
departmentName: res.data.departmentNames,
|
departmentName: res.data.departmentNames,
|
||||||
|
|||||||
Reference in New Issue
Block a user