选框/选 属性

{
        "type": "CheckBox",
        "optionName": "Op14V005",
        "optionClass": "系统",
        "optionId": "良好程度",
        "checkFigureStyle": 0,
        "multipleChoice": 0,
        "members": [
            {
                "id": "",
                "name": "",
                "text": "良好",
                "Fragment": "<Fragment><CheckBox cfg='4' optionName='Op14V005' itemId='良好' groupId='1' weight='1.00' optionClass='系统' optionId='良好程度'>良好<\/CheckBox><\/Fragment>",
                "checked": 0,
                "onFocus": 0,
                "itemId": "良好",
                "groupId": "1",
                "weight": "1.00"
            },
            {
                "id": "",
                "name": "",
                "text": "一般",
                "Fragment": "<Fragment><CheckBox cfg='4' xCfg='1' optionName='Op14V005' itemId='一般' groupId='1' weight='1.00' optionClass='系统' optionId='良好程度'>一般<\/CheckBox><\/Fragment>",
                "checked": 1,
                "onFocus": 1,
                "itemId": "一般",
                "groupId": "1",
                "weight": "1.00"
            },
            {
                "id": "",
                "name": "",
                "text": "较差",
                "Fragment": "<Fragment><CheckBox cfg='4' optionName='Op14V005' itemId='较差' groupId='1' weight='1.00' optionClass='系统' optionId='良好程度'>较差<\/CheckBox><\/Fragment>",
                "checked": 0,
                "onFocus": 0,
                "itemId": "较差",
                "groupId": "1",
                "weight": "1.00"
            },
            {
                "id": "",
                "name": "",
                "text": "差",
                "Fragment": "<Fragment><CheckBox cfg='4' optionName='Op14V005' itemId='差' groupId='1' weight='1.00' optionClass='系统' optionId='良好程度'>差<\/CheckBox><\/Fragment>",
                "checked": 0,
                "onFocus": 0,
                "itemId": "差",
                "groupId": "1",
                "weight": "1.00"
            }
        ]
    }

通用参数

参数名 必填 类型 说明 备注
type string 固定为”CheckBox”
optionName string 选集名 用于标记具体选集实体
optionClass string 选项类 通过选项类、选项ID是否为""可以判断是选框还是选集
checkFigureStyle enum 选框样式 E_CHECK_FIGURE_STYLE
multipleChoice bool 强制多选 0: 跟随group-id 1: 强制多选

members参数

为选框时,只有1个成员; 为选集时,为多个成员

参数名 必填 类型 说明 备注
id string 选项ID
name string 选项名
text string 选项显示文本 可以相同
Fragment string 片段
checked bool 是否选中 0:未选中 1:选中
onFocus bool 当前被点击 0:未被点击 1:被点击
itemId string 选项条目ID 必需不同
groupId string 分组ID 相同分组ID内,组内互斥
weight float 权重值
文档更新时间: 2023-02-19 23:35   作者:admin