|
|
|
@ -650,8 +650,8 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. |
|
|
|
this.$request(getApp().globalData.baseUrl + '/api/user/getByDeptName/' + this.unitName,{},"GET").then(res =>{ |
|
|
|
this.$request(getApp().globalData.baseUrl + '/api/user/getByDeptName/' + this.unitName,{},"GET").then(res =>{ |
|
|
|
// this.$request(getApp().globalData.baseUrl + '/api/user/getByDeptId/' + this.unitId,{},"GET").then(res =>{ |
|
|
|
// this.$request(getApp().globalData.baseUrl + '/api/user/getByDeptId/' + this.unitId,{},"GET").then(res =>{ |
|
|
|
console.log('人员列表 ===>',res) |
|
|
|
console.log('人员列表 ===>',res) |
|
|
|
res.data.map(item =>{ |
|
|
|
res.data.list.map(item =>{ |
|
|
|
this.peopleList.push({id:item.id,people:item.username + ',' + item.mobile}) |
|
|
|
this.peopleList.push({id:item.id,people:item.username + (item.mobile ? ',' + item.mobile : '')}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
if(this.pageType == 'edit'){ |
|
|
|
if(this.pageType == 'edit'){ |
|
|
|
console.log('deptNameList ===>',this.peopleList) |
|
|
|
console.log('deptNameList ===>',this.peopleList) |
|
|
|
|