1***@qq.com
1***@qq.com
  • 发布:2024-08-08 00:46
  • 更新:2024-08-08 00:46
  • 阅读:51

schema2code生成代码list.vue中,外键添加筛选,筛选结果一直为空 (除非外键值在主表中不存在)

分类:uni-app

schema.json 中property的定义为:

"appealid": {  
    "bsonType": "string",  
    "description": "被回复的诉求ID,xjhq-appeal 表中的`_id`字段",  
    "title": "appealid",  
    "foreignKey": "xjhq-appeal._id"  
},

在list.vue中给该值添加筛选:

<uni-th align="center"   
filter-type="search"  
@filter-change="filterChange($event, 'xjhq-appeal._id')"   
sortable @sort-change="sortChange($event, 'appealid')">appealid</uni-th>

但是筛选的时候,筛选结果一直为空:

点击搜索,结果为空:

2024-08-08 00:46 负责人:无 分享
已邀请:

要回复问题请先登录注册