简单条件选择器代码

时间:2024-04-24 20:54:03
const datalist = [ { "instanceName": "姓名", "instanceType": "input", "currentObject": "c_leads", "currentObjectName": "线索", "uniqueKey": "C_FID_rwm6kawspv&1", "componentFieldSettingDto": { "notNull": true, "maxLength": 50, "minLength": 1, "promptMessage": "请输入姓名", "notNullInValidateMsg": "姓名不能为空", "needValidate": true, "unique": true }, "instanceCode": "C_FID_rwm6kawspv", "disabled": 0, "fieldProperties": [ { "code": "EQ", "value": "等于" }, { "code": "NEQ", "value": "不等于" }, { "code": "IS", "value": "为空" }, { "code": "ISN", "value": "不为空" }, { "code": "LIKE", "value": "包含" }, { "code": "NLIKE", "value": "不包含" } ], selectorProperties:[ {"code": "EQ", "value": "sss"}, {"code": "EQ2", "value": "sss2"}, {"code": "EQ3", "value": "sss3"}, {"code": "EQ4", "value": "sss4"}, ] }, { "instanceName": "创建时间", "instanceType": "date", "currentObject": "c_leads", "currentObjectName": "线索", "uniqueKey": "C_FID_n56ympp2ju&1", "componentFieldSettingDto": { "dateType": 2, "notNullInValidateMsg": "创建时间不能为空", "needValidate": true, "customRegex": { "regex": "^((19|20)[0-9]{2})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$", "comment": "日期格式错误" } }, "instanceCode": "C_FID_n56ympp2ju", "disabled": 0, "fieldProperties": [ { "code": "EQ", "value": "等于" }, { "code": "NEQ", "value": "不等于" }, { "code": "IS", "value": "为空" }, { "code": "ISN", "value": "不为空" }, { "code": "GT", "value": "大于" }, { "code": "GTE", "value": "大于等于" }, { "code": "LT", "value": "小于" }, { "code": "LTE", "value": "小于等于" }, { "code": "BELONG", "value": "属于" }, { "code": "NBELONG", "value": "不属于" } ], selectorProperties:[ {"code": "2Q", "value": "2sss"}, {"code": "2EQ2", "value": "2sss2"}, {"code": "2EQ3", "value": "2sss3"}, {"code": "2EQ4", "value": "2sss4"}, ] }, { "instanceName": "创建人员", "instanceType": "personSingle", "currentObject": "c_leads", "currentObjectName": "线索", "uniqueKey": "C_FID_gmqbtznpdw&1", "componentFieldSettingDto": { "needValidate": true }, "instanceCode": "C_FID_gmqbtznpdw", "disabled": 0, "fieldProperties": [ { "code": "EQ", "value": "等于" }, { "code": "NEQ", "value": "不等于" }, { "code": "IS", "value": "为空" }, { "code": "ISN", "value": "不为空" }, { "code": "BELONG", "value": "属于" }, { "code": "NBELONG", "value": "不属于" }, { "code": "ONESELF", "value": "等于当前用户" } ], selectorProperties:[ {"code": "3Q", "value": "3sss"}, {"code": "3EQ2", "value": "3sss2"}, {"code": "3EQ3", "value": "3sss3"}, {"code": "33EQ4", "value": "3sss4"}, ] }, { "instanceName": "最近修改时间", "instanceType": "date", "currentObject": "c_leads", "currentObjectName": "线索", "uniqueKey": "C_FID_xrpw6rc809&1", "componentFieldSettingDto": { "dateType": 2, "notNullInValidateMsg": "最后修改日期不能为空", "needValidate": true, "customRegex": { "regex": "^((19|20)[0-9]{2})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$", "comment": "日期格式错误" } }, "instanceCode": "C_FID_xrpw6rc809", "disabled": 0, "fieldProperties": [ { "code": "EQ", "value": "等于" }, { "code": "NEQ", "value": "不等于" }, { "code": "IS", "value": "为空" }, { "code": "ISN", "value": "不为空" }, { "code": "GT", "value": "大于" }, { "code": "GTE", "value": "大于等于" }, { "code": "LT", "value": "小于" }, { "code": "LTE", "value": "小于等于" }, { "code": "BELONG", "value": "属于" }, { "code": "NBELONG", "value": "不属于" } ] }, { "instanceName": "最近修改人员", "instanceType": "personSingle", "currentObject": "c_leads", "currentObjectName": "线索", "uniqueKey": "C_FID_ur5efs8jda&1", "componentFieldSettingDto": { "needValidate": true }, "instanceCode": "C_FID_ur5efs8jda", "disabled": 0, "fieldProperties": [ { "code": "EQ", "value": "等于" }, { "code": "NEQ", "value": "不等于" }, { "code": "IS", "value": "为空" }, { "code": "ISN", "value": "不为空" }, { "code": "BELONG", "value": "属于" }, { "code": "NBELONG", "value": "不属于" }, { "code": "ONESELF", "value": "等于当前用户" } ] }, { "instanceName": "业务类型", "instanceType": "relation", "currentObject": "c_leads", "currentObjectName": "线索", "uniqueKey": "C_FID_ogamq6g0ud&1", "componentFieldSettingDto": { "notNull": true, "notNullInValidateMsg": "业务类型不能为空", "needValidate": true, "unique": false, "relationSetting": { "parentObjectCode": "business_type", "subObjectCode": "c_leads" } }, "instanceCode": "C_FID_ogamq6g0ud", "disabled": 0, "fieldProperties": [ { "code": "EQ", "value": "等于" }, { "code": "NEQ", "value": "不等于" }, { "code": "IS", "value": "为空" }, { "code": "ISN", "value": "不为空" }, { "code": "BELONG", "value": "属于" }, { "code": "NBELONG", "value": "不属于" } ] }, { "instanceName": "归属人员", "instanceType": "personSingle", "currentObject": "c_leads", "currentObjectName": "线索", "uniqueKey": "C_FID_jezhht9zwv&1", "componentFieldSettingDto": { "notNullInValidateMsg": "归属人员不能为空", "needValidate": true, "unique": false }, "instanceCode": "C_FID_jezhht9zwv", "disabled": 0, "fieldProperties": [ { "code": "EQ", "value": "等于" }, { "code": "NEQ", "value": "不等于" }, { "code": "IS", "value": "为空" }, { "code": "ISN", "value": "不为空" }, { "code": "BELONG", "value": "属于" }, { "code": "NBELONG", "value": "不属于" }, { "code": "ONESELF", "value": "等于当前用户" } ] }, { "instanceName": "公司名称", "instanceType": "input", "currentObject": "c_leads", "currentObjectName": "线索", "uniqueKey": "C_FID_cwzl6ucxat&1", "componentFieldSettingDto": { "maxLength": 50, "minLength": 0, "maxLengthInValidateMsg": "字符限制:0-50,已超过最大长度,请重新输入", "minLengthInValidateMsg": "字符限制:0-50,不足最小长度,请重新输入", "notNullInValidateMsg": "公司名称不能为空", "needValidate": true }, "instanceCode": "C_FID_cwzl6ucxat", "disabled": 0, "fieldProperties": [ { "code": "EQ", "value": "等于" }, { "code": "NEQ", "value": "不等于" }, { "code": "IS", "value": "为空" }, { "code": "ISN", "value": "不为空" }, { "code": "LIKE", "value": "包含" }, { "code": "NLIKE", "value": "不包含" } ] }, { "instanceName": "所在区域", "instanceType": "place", "currentObject": "c_leads", "currentObjectName": "线索", "uniqueKey": "C_FID_l9uzxgsw22&1", "componentFieldSettingDto": { "placeSetting": { "countryEnable": false, "countryRequired": false, "provinceEnable": true, "provinceRequired": false, "cityEnable": true, "cityRequired": false, "areaEnable": true, "areaRequired": false }, "notNullInValidateMsg": "请填写所在区域", "needValidate": true, "unique": false }, "instanceCode": "C_FID_l9uzxgsw22", "disabled": 0, "fieldProperties": [ { "code": "EQ", "value": "等于" }, { "code": "NEQ", "value": "不等于" },