首页 > 代码库 > 元数据设计
元数据设计
var mdList = [ { name: ‘employee_info‘, collection:‘employee_info‘, text: ‘员工信息‘, group: ‘employee‘, items: [ { name: ‘empName‘, text: ‘员工姓名‘, db: ‘string‘,//bool,number,date,string format: ‘${value}‘, input: ‘text‘, validator: ["required", "length:1-10"] }, { name: ‘empBirthday‘, text: ‘出生日期‘, db: ‘date‘, format: ‘CommonDateFormat(${value},"yyyy-mm-dd")‘, input: ‘datePicker‘, validator: ["DateValidator:yyyy-mm-dd"] }, { name: ‘empAge‘, text: ‘年龄‘, db: null,//不存储, format: ‘CommonAgeFormat(${entity},"empBirthday")‘, input: ‘readonly‘, validator: [] }, { name: ‘empBelongOrg‘, text: ‘所属组织‘, db: ‘string‘, format: ‘OrgFormat(${value})‘, input: ‘selector:OrgSelector(${value},${entity})‘, validator: [] }, { name: ‘empBelongOrg‘, text: ‘所属组织‘, db: ‘string‘, format: ‘OrgFormat(${value})‘, input: ‘selector:OrgSelector(${value},${entity}):target.id‘, validator: [] }, { name: ‘empSalaryBase‘, text: ‘基本工资‘, db: ‘number‘, format: ‘${value} 元‘, input: ‘text‘, validator: [‘number‘] }, { name: ‘empNation‘, text: ‘民族‘, db: ‘string‘, format: ‘${value}‘, input: ‘select:SelectEnum("Nation"):target‘, validator: [‘number‘] }, { name: ‘empPosition‘, text: ‘担任岗位‘, db: ‘string‘, format: ‘${value}‘, input: ‘select:SelectDataSource("Position"):target.id‘, validator: [‘number‘] } ] }, { name: ‘employee_family‘, collection:‘employee_family‘, text: ‘家庭成员‘, group: ‘employee‘, items: [ { name: ‘familyName‘, text: ‘姓名‘, db: ‘string‘,//bool,number,date,string format: ‘${value}‘, input: ‘text‘, validator: ["required", "length:1-10"] }, { name: ‘familyBirthday‘, text: ‘出生日期‘, db: ‘date‘, format: ‘CommonDateFormat(${value},"yyyy-mm-dd")‘, input: ‘datePicker‘, validator: ["DateValidator:yyyy-mm-dd"] } ] }];
元数据设计
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。