| | |
| | | :key="item.id" |
| | | :label="item.nickName" |
| | | :value="item.id" |
| | | :disabled="!item.enabled" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | import udOperation from '@crud/UD.operation' |
| | | import pagination from '@crud/Pagination' |
| | | import crudUser from '@/api/system/user' |
| | | import crudLevel from '@/api/system/level' |
| | | import crudLevel from '@/api/treatment/cmnLevel' |
| | | |
| | | const defaultForm = { id: null, userId: null, levelId: null, yearMonth: null, startDate: null, endDate: null, personalPerformanceProportion: null, annualLeaveDays: null, remarks: null, createBy: null, createTime: null, updateBy: null, updateTime: null } |
| | | export default { |
| | |
| | | callback() |
| | | } |
| | | } |
| | | // 天数(二十内)验证 |
| | | var daysValidate = (rule, value, callback) => { |
| | | const reg = /^([0-9]|1\d)$|20$/ |
| | | if (value != null && value !== '' && !reg.test(value)) { |
| | | callback(new Error('请输入 二十 以内的正整数')) |
| | | } else { |
| | | callback() |
| | | } |
| | | } |
| | | // // 天数(二十内)验证 |
| | | // var daysValidate = (rule, value, callback) => { |
| | | // const reg = /^([0-9]|1\d)$|20$/ |
| | | // if (value != null && value !== '' && !reg.test(value)) { |
| | | // callback(new Error('请输入 二十 以内的正整数')) |
| | | // } else { |
| | | // callback() |
| | | // } |
| | | // } |
| | | return { |
| | | permission: { |
| | | add: ['admin', 'sysUserLevelOther:add'], |
| | |
| | | { validator: proportionValidate, trigger: 'blur' } |
| | | ], |
| | | annualLeaveDays: [ |
| | | { required: true, message: '年假天数不能为空', trigger: 'blur' }, |
| | | { validator: daysValidate, trigger: 'blur' } |
| | | { required: true, message: '年假天数不能为空', trigger: 'blur' } |
| | | // { validator: daysValidate, trigger: 'blur' } |
| | | ] |
| | | }, |
| | | queryTypeOptions: [ |