{
"form": {
"columns": {
// #region 下拉框配置
"userType": {
"attrs": {
"multiple": false,
"remote": true,
"filterable": true
},
"meta": {
"fromValue": true,
"dimSessionKey": "dim-mall-supplier-user",
"dimLocalKey": "dim-mall-supplier-user",
"dimMkey": "mall-supplier-user",
"dimResField": "basis",
"dimColumnField": "userType",
//数据类型不一致导致问题设置 int 或 string
"dimDataType": "int",
"dimRemote": true,
"dimUrl": null,
"prop": "userType",
"rowId": "1",
"tabId": "1",
"type": "basis",
"span": 12,
"auth": true,
"component": "bs-select"
}
},
// #endregion 下拉框配置
// #region 用户查找带回
"userId": {
"alias": "user_id",
"field": "userId",
"events": {},
"attrs": {
//显示组件
//"component-view": "el-tag",
"component-action": "tag",
//"type": "expand",
"label": "用户名称",
"maxlength": 200,
"clearable": true,
//功能组件,带有事件 查找带回 start
//显示的值 字段
"data-value-field": "userId",
//显示的头像 字段
"data-src-field": null,
//显示的类型 字段
"data-type-field": null,
//值数据类型 string object array
"data-type": "object",
//自定义 配合 前端main-table-form-dim 使用
"data-custorm": true,
//编辑只读(编辑模式避免二次修改,导致其它数据修改)
"primary-edit-readonly": true,
//新增唯一(批量新增时候验证选择的数据是否已存在于列表中)
"primary-add-unique": true,
"left-column-label": "已选",
"right-filter-field": "pushName",
"right-data-mkey": "bo-user",
"right-data-field": "manager-s-right",
//"right-save-mkey": "bo-user-role",
//"right-column-label": "用户名",
//"right-save-field": "manager-area",
"right-save-success": "保存成功。",
"right-save-before-error": "未选择。",
//单选
"right-save-single-error": "只能选择1条数据",
"right-save-single": true,
"closed-no-refresh-data": false,
//功能组件,带有事件 查找带回 end,
//调用父组件点击事件
"open-parent-click": true,
// ,
////关闭表格里面自带弹出框按钮
//"closed-bottom-action": true
//调用表单里面弹出框组件 配合 componentOp使用
"open-form-dialog": true
},
"attrsInt": {},
"meta": {
"html": false,
"edit": false,
"fromValue": false,
//"fromValue": true,
"component": "bs-text",
//"component": "el-tag",
"componentOp": "bs-lookup-owner",
"rowId": "1",
"tabId": "1",
"type": "basis",
"span": 12
},
//功能组件,带有事件 查找带回 start
"query": {
"supplierId": "supplierId"
},
//查找带回左侧条件
"queryLeft": {
"leftSUserObjid": "userId"
},
//查找带回右侧条件
"queryRight": {
"rightSUserObjId": "userId"
},
"params": {
"mercId": "value",
"userId": "userId"
}
//功能组件,带有事件 查找带回 end
}
// #endregion 用户查找带回
}
}
}
文档更新时间: 2022-01-22 16:08 作者:admin