commit:获取分类字典
@ -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
@ -161,7 +161,7 @@ export default {
async init(){
var res=await request("/common/api/dict/categoryValue",{
params:{code:"B09"}
data:{code:"B09"}
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}))}]}))
@ -106,7 +106,7 @@ export default {
params:{code:"B06"}
data:{code:"B06"}
this.fields.plantType.columns=[res.data]
@ -101,7 +101,7 @@ export default {
//植物类型
this.fields.detailType.columns=[res.data]