diff --git a/pages/massif/add_transaction.vue b/pages/massif/add_transaction.vue index 3d255b1..2bf844e 100644 --- a/pages/massif/add_transaction.vue +++ b/pages/massif/add_transaction.vue @@ -149,7 +149,7 @@ export default { //买方类型 var res = await request("/common/api/dict/categoryValue",{ method:"post", - params:{code:"B08"} + data:{code:"B08"} }) if(res.statu){ this.buyerType.list=res.data diff --git a/pages/massif/pestType.vue b/pages/massif/pestType.vue index 44f2d3d..41f322b 100644 --- a/pages/massif/pestType.vue +++ b/pages/massif/pestType.vue @@ -161,7 +161,7 @@ export default { async init(){ var res=await request("/common/api/dict/categoryValue",{ method:"post", - params:{code:"B09"} + data:{code:"B09"} }) if(res.statu){ this.cropList=res.data.map(v=>({...v,children:v?.children?.length>0?v.children:[{label:"全部",value:v.pest.map(v=>({name:v.label,id:v.id}))}]})) diff --git a/pages/massif/plant_plan.vue b/pages/massif/plant_plan.vue index 1b6f5c1..4fa8be2 100644 --- a/pages/massif/plant_plan.vue +++ b/pages/massif/plant_plan.vue @@ -106,7 +106,7 @@ export default { async init(){ var res=await request("/common/api/dict/categoryValue",{ method:"post", - params:{code:"B06"} + data:{code:"B06"} }) if(res.statu){ this.fields.plantType.columns=[res.data] diff --git a/pages/stock/prodWarehouse.vue b/pages/stock/prodWarehouse.vue index 0ffb759..65e5df8 100644 --- a/pages/stock/prodWarehouse.vue +++ b/pages/stock/prodWarehouse.vue @@ -101,7 +101,7 @@ export default { //植物类型 var res=await request("/common/api/dict/categoryValue",{ method:"post", - params:{code:"B06"} + data:{code:"B06"} }) if(res.statu){ this.fields.detailType.columns=[res.data]