diff --git a/src/views/business/measure/item/components/third/templateDetail.vue b/src/views/business/measure/item/components/third/templateDetail.vue index d6f1122..7b93fd9 100644 --- a/src/views/business/measure/item/components/third/templateDetail.vue +++ b/src/views/business/measure/item/components/third/templateDetail.vue @@ -394,10 +394,15 @@ const params = { belongStandardEquipment: props.belongStandardEquipment, // 检校标准装置 itemCategoryName: props.itemCategoryName, // 检定项分类名称 - measureItemDataElectricalSafetyList: listTop.value, + measureItemDataElectricalSafetyList: listTop.value.map((item) => { + return { + ...item, + id: item.id.includes('custom-') ? '' : item.id, + } + }), } recalculate(params).then((res) => { - listTop.value = res.data.map((item: { params: string }) => { + listTop.value = res.data.map((item: { params: string; id: string }) => { return { ...item, params: (props.itemCategoryName === '模拟式接地电阻表' || props.itemCategoryName === '数字式接地电阻表') ? '示值误差' : '开路电压', @@ -422,10 +427,15 @@ const params = { belongStandardEquipment: props.belongStandardEquipment, // 检校标准装置 itemCategoryName: props.itemCategoryName, // 检定项分类名称 - measureItemDataElectricalSafetyList: listBottom.value, + measureItemDataElectricalSafetyList: listBottom.value.map((item) => { + return { + ...item, + id: item.id.includes('custom-') ? '' : item.id, + } + }), } recalculate(params).then((res) => { - listBottom.value = res.data.map((item: { params: string }) => { + listBottom.value = res.data.map((item: { params: string; id: string }) => { return { ...item, params: '示值误差',