1
这是阵列“serviceSubCatNamesToListToSet”我需要更新无法多个元素追加到一个数组对象
{
"serviceTypes": [
{
"service_type_id": 1,
"service_type_name": "Washing",
"service_type_price": "3000.00",
"created_at": null,
"updated_at": null,
"pivot": {
"service_service_type_service_id": 1,
"service_service_type_service_type_id": 1
}
}
]
}
,我需要称为“technicianData”一个数组对象追加到上述(serviceSubCatNamesToListToSet)阵列。
我追加 “technicianData”
this.toServiceSubCatNamesList[this.technicianIndex]['technicianData'] = this.technicianData;
后追加 “serviceSubCatNamesToListToSet” 看起来像这样的方式。
serviceSubCatNamesToListToSet:
> Object
created_at:null
pivot:Object
service_type_id:1
service_type_name:"Washing"
service_type_price:"3000.00"
>technicianData:Object
created_at:null
technician_address:"Colombo 05"
technician_code:"T0001"
technician_id:1
technician_name:"Brian Adams"
technician_tel1:"312252937"
到目前为止,这是working.But当我试图多个元素加入到“serviceSubCatNamesToListToSet.technicianData”它不工作。
任何建议来解决这个问题!谢谢!
ThnkùVRY MCH .... –