{
"table": {
"columns": {
//#region 1对多配置 文件信息
"files": {
"alias": "files",
"field": "files",
"events": {
"type": "add",
"click": "on-click"
},
"attrs": {
"type": "expand",
"label": "文件信息",
//展示方式 column/collapse/switch
"show-view-method": "collapse",
//来源表格,会添加上表单el-form标签
"show-from-source": "bo-table",
//隐藏的子表列, 逗号分割 funcId,menuId,mfId,funcCode
//"hide-columns": "mercId,userShowName",
"hidden-fields": "suffix,objectId,objectType,sysId,size,id",
"data-type": "array",
//处理内容不显示,点击查看 或 修改 显示内容
"show-content-title": "明细",
"show-content-component": "bs-text",
//引用的子表数据 模块 配置 key 主键参数 start
"child-mkey": "mall-commodity-file",
"child-res-field": "file"
//"child-label-field": "funcName",
//"child-value-field": "isEnabled"
//"child-from-value": true,
//"active-text": "启用",
//"inactive-text": "禁用"
//引用的子表数据 模块 配置 key 主键参数 end
},
"attrsInt": {
"active-value": 1,
"inactive-value": 0
//引用的子表数据 模块 配置 key 主键参数 end
},
"meta": {
"component": "bs-text",
//处理内容不显示,点击查看 或 修改 显示内容
"html": false,
"text": true,
"edit": true,
"titleField": "name",
// 来至值类型
//"fromTitleModel": "kv",
"sortField": null,
"resMkey": "mall-commodity-file",
"resField": "manager",
"prop": "files",
"type": "basis",
"span": 24,
"auth": true,
"componentOp": "bo-form-child",
"primaryId": [
{
"field": "id",
"alias": "id"
}
]
}
}
//#endregion 1对多配置 文件信息
}
}
}
文档更新时间: 2022-02-04 16:03 作者:admin