| | |
| | | export const column = [ |
| | | export let column = [ |
| | | { |
| | | label: '账号', |
| | | prop: 'id', |
| | | align:'center', |
| | | search:true, |
| | | sortable:true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请输入姓名', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '姓名', |
| | | prop: 'name', |
| | | align:'center', |
| | | search:true, |
| | | sortable:true |
| | | }, { |
| | | label: '账号', |
| | | prop: 'id', |
| | | align:'center', |
| | | search:true, |
| | | sortable:true |
| | | sortable:true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请输入姓名', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '密码', |
| | | prop: 'password', |
| | | hide:true, |
| | | type:'password', |
| | | change: (val)=>{ |
| | | const confirmPasswordColumn = column.find(item => item.prop === 'confirmPassword'); |
| | | confirmPasswordColumn.disabled = val.value === ""; |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请输入密码', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '确认密码', |
| | | prop: 'confirmPassword', |
| | | hide:true, |
| | | type:'password', |
| | | disabled:true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请再次确认密码', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '状态', |
| | |
| | | search:true, |
| | | sortable:true, |
| | | searchslot:true, |
| | | row:true, |
| | | }, |
| | | { |
| | | label: '专业', |
| | |
| | | align:'center', |
| | | sortable:true, |
| | | display:false, |
| | | } |
| | | }, |
| | | ]; |