仓库名称 仓库类型 仓库备注 {{item.WarehouseName}} {{item.WarehouseType}} {{item.WarehouseDesc}} js代码:data(){return{warehouses:[{"WarehouseId":1,"WarehouseType":1,"WarehouseName":"深圳仓库","WarehouseDesc":"深圳仓库",},{"WarehouseId":2,"WarehouseType":2,"WarehouseName":"东莞仓库","WarehouseDesc":"东莞仓库",}]}},}其中WarehouseType是枚举算法得到的数值,1代表“默认仓库”,2代表“自建仓库”,现在页面上要怎么样操作能把1和2代表的文字信息展示出来,比如:WarehouseType是1的时候,table中绑定的WarehouseType就展示“默认仓库”4个字?
largeQ
繁星淼淼
相关分类