style:配方配置-手动录入参数-编辑接口改为put,单位映射

main
黄伟杰 2 weeks ago
parent e846a03f00
commit 252a3b532e

@ -24,7 +24,7 @@ export const RecipePointApi = {
return await request.post({ url: `/iot/recipe-point/create`, data })
},
updateRecipePoint: async (data: RecipePointVO) => {
return await request.post({ url: `/iot/recipe-point/update`, data })
return await request.put({ url: `/iot/recipe-point/update`, data })
},
deleteRecipePoint: async (id: number) => {
return await request.delete({ url: `/iot/recipe-point/delete?id=` + id })

@ -183,7 +183,7 @@
v-for="unit in unitList"
:key="unit.id"
:label="unit.name"
:value="unit.id"
:value="String(unit.id)"
/>
</el-select>
</el-form-item>

Loading…
Cancel
Save