for循环

   for (let i in this.workerList) {
              for (let j in this.taskOrderList) {
                if (this.workerList[i].id == this.taskOrderList[j].worker) {
                  this.taskOrderList[j].worker = this.workerList[i].name;
                  this.taskOrderList[j].workerPhone = this.workerList[i].phone;

 

                }
              }
            }

 

posted @ 2020-07-20 17:28  小小小小小前端  阅读(106)  评论(0编辑  收藏  举报