|
@@ -203,13 +203,13 @@ export default {
|
|
|
|
|
|
for (let i = 0; i < newData.length; i++) {
|
|
|
let params = newData[i]
|
|
|
- params.ParentId = this.category.deviceId, //当前设备id
|
|
|
- params.Category = this.category.Code //当前部件分类
|
|
|
+ params.ParentId = this.category.deviceId //当前设备id
|
|
|
+ params.Category = this.category.Code //当前部件分类
|
|
|
params.Family = this.firmId;
|
|
|
|
|
|
await createPart([params], async res => {
|
|
|
if (newData[i].Checked) {//同时创建资产
|
|
|
- params.EquipId = res.EntityList[0].EquipID
|
|
|
+ params.EquipmentId = res.EntityList[0].EquipID
|
|
|
await createPropertyData([params], res => { })
|
|
|
}
|
|
|
this.$router.push({
|