export const tableOption = { addBtn: false, editBtn: false, border: true, index: true, indexLabel: '序号', stripe: true, menuAlign: 'center', align: 'center', refreshBtn: false, showClomnuBtn: false, searchMenuSpan: 6, searchSize: 'mini', menuWidth: 120, column: [{ fixed: true, label: 'id', prop: 'id', hide: true, editDisplay: false, addDisplay: false },{ label: '头像', prop: 'picUrl', type: 'upload', listType: 'picture-img', span:24, propsHttp: { // home类似axios中的baseurl会拼接到返回的url前面 res:'data', }, canvasOption: { text: 'avue', ratio: 0.1 }, tip: '只能上传jpg/png用户头像,且不超过500kb', action: '/project/upload', }, { fixed: true, label: '姓名', prop: 'name', search: true, searchSpan: 8, rules: [{ required: true, message: '请输入比赛名称' }, { min: 3, max: 100, message: '长度在 3 到 20 个字符', trigger: 'blur' } ] }, { label: '电话', prop: 'phone', value: '', }, { label: '出生日期', prop: 'birthday', type: 'date', value: '', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd ', showColumn: false },{ label: '工作单位', prop: 'workUnit', },{ label: '工作年限', prop: 'workYear', addDisplay: true, editDisplay: true, }, { label: '学历', prop: 'recordSchool', }, { label: '专家介绍', span: 24, prop: 'comment', type: 'textarea' }, { label: '擅长领域', span: 24, prop: 'engageProfession', type: 'textarea' }] } export const tableDictItemOption = { border: true, index: true, indexLabel: '序号', stripe: true, menuAlign: 'center', align: 'center', refreshBtn: false, showClomnuBtn: false, searchSize: 'mini', column: [{ fixed: true, label: 'id', prop: 'id', hide: true, editDisplay: false, addDisplay: false }, { label: '赛道名称', prop: 'name', }, { width: 150, label: '最大项目数', prop: 'maxNum', rules: [{ required: true, message: '请输入数据值', trigger: 'blur' }] },] }