道路运输负责人接口重新联调,返回数据结构变更

main
zhangqun 2 years ago
parent ed7d92a60d
commit 75fe6f23ff
  1. 4
      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/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)

Loading…
Cancel
Save