| | |
| | | <crudOperation show="" :permission="permission"> |
| | | <el-button |
| | | slot="right" |
| | | v-permission="permission.levelWage" |
| | | class="filter-item" |
| | | size="mini" |
| | | type="info" |
| | | icon="el-icon-view" |
| | | @click="toLevelWage" |
| | | > |
| | | 用户级别工资 |
| | | </el-button> |
| | | <el-button |
| | | slot="right" |
| | | v-permission="permission.levelInsurance" |
| | | class="filter-item" |
| | | size="mini" |
| | | type="info" |
| | | icon="el-icon-view" |
| | | style="margin-left: 4px !important;" |
| | | @click="toLevelInsurance" |
| | | > |
| | | 用户级别保险 |
| | | </el-button> |
| | | <el-button |
| | | slot="right" |
| | | v-permission="permission.levelOther" |
| | | class="filter-item" |
| | | size="mini" |
| | |
| | | import '@riophae/vue-treeselect/dist/vue-treeselect.css' |
| | | import { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect' |
| | | import crudRostering from '@/api/system/rostering' |
| | | import crudLevel from '@/api/system/level' |
| | | // import crudLevel from '@/api/system/level' |
| | | import crudCmnLevel from '@/api/treatment/cmnLevel' |
| | | import crudSysCompany from '@/api/system/sysCompany' |
| | | let userRoles = [] |
| | | let userJobs = [] |
| | | const defaultForm = { id: null, username: null, company: { id: null }, internshipTime:null, nickName: null, gender: '男', email: null, enabled: 'false', roles: [], jobs: [], dept: { id: null }, phone: null, birthday: null, address: null, dingding: null, sysRostering: { id: null }, levelId: null } |
| | | const defaultForm = { id: null, username: null, company: { id: null }, internshipTime: null, nickName: null, gender: '男', email: null, enabled: 'false', roles: [], jobs: [], dept: { id: null }, phone: null, birthday: null, address: null, dingding: null, sysRostering: { id: null }, levelId: null } |
| | | export default { |
| | | name: 'User', |
| | | components: { Treeselect, crudOperation, rrOperation, udOperation, pagination, DateRangePicker }, |
| | |
| | | ], |
| | | 'company.id': [ |
| | | { required: true, message: '公司不能为空', trigger: 'blur' } |
| | | ], |
| | | ] |
| | | }, |
| | | // CRUD状态 |
| | | crudStatusPrepared: CRUD.STATUS.PREPARED, |
| | |
| | | levels: [], |
| | | // 公司 |
| | | companyList: [], |
| | | internshipTimeList: Array.from({length: 12}, (v, i) => ({id: i+2, label: `${i+1}个月`})), |
| | | internshipTimeList: Array.from({ length: 12 }, (v, i) => ({ id: i + 2, label: `${i + 1}个月` })), |
| | | isEditing: false |
| | | } |
| | | }, |
| | |
| | | // 公司列表 |
| | | this.companyList = res |
| | | this.companyList.forEach(image => { |
| | | console.log('id:' + image.id) |
| | | }) |
| | | }) |
| | | }) |
| | | return true |
| | | }, |
| | |
| | | getLevel() { |
| | | // 判断用户岗位列表 |
| | | if (userJobs.length !== 0) { |
| | | // 获取级别 |
| | | crudLevel.getAll({ jobId: userJobs[0].id }).then(res => { |
| | | // // 获取级别 |
| | | // crudLevel.getAll({ jobId: userJobs[0].id }).then(res => { |
| | | // // 级别 |
| | | // this.levels = res |
| | | // }) |
| | | crudCmnLevel.getAll({ jobId: userJobs[0].id }).then(res => { |
| | | // 级别 |
| | | this.levels = res |
| | | }) |