diff --git a/pages/roadTransport/transportData/form.vue b/pages/roadTransport/transportData/form.vue index e09f0ac..1252011 100644 --- a/pages/roadTransport/transportData/form.vue +++ b/pages/roadTransport/transportData/form.vue @@ -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/getByDeptId/' + this.unitId,{},"GET").then(res =>{ console.log('人员列表 ===>',res) - res.data.map(item =>{ - this.peopleList.push({id:item.id,people:item.username + ',' + item.mobile}) + res.data.list.map(item =>{ + this.peopleList.push({id:item.id,people:item.username + (item.mobile ? ',' + item.mobile : '')}) }) if(this.pageType == 'edit'){ console.log('deptNameList ===>',this.peopleList)