...
</unicloud-db>  
数据:
data() {
return {
//.where("bom_id=='" + this.bomId+"'")
collectionList: [db.collection('pro_bom_data').getTemp(),
db.collection('pro_bom').getTemp(),
db.collection('pro_wuliao').getTemp()
],
...
}  
我的sWhere赋值
this.sWhere = "bom_id=='62bda911f792990001024651'"  
pro_bom_data里面的bom_id字段:
    "bom_id": {  
        "bsonType": "string",  
        "title": "BOM编码",  
        "foreignKey": "pro_bom._id",  
        "description": "BOM",  
        "enum": {  
            "collection": "pro_bom",  
            "field": "_id as value, name as text"  
        }  
    },  
为什么这样,查不到数据?
如果我把数据的改成这样,就可以查到
data() {
return {
//.where("bom_id=='" + this.bomId+"'")
collectionList: [db.collection('pro_bom_data').where({'bom_id':'62bda911f792990001024651'}).getTemp(),
db.collection('pro_bom').getTemp(),
db.collection('pro_wuliao').getTemp()
],
...
}  
            
            
            
            
火锅鸡 (作者)
试过的,也还是不行的。
2022-07-04 11:34