| | |
| | | import { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect' |
| | | import crudRostering from '@/api/system/rostering' |
| | | import crudLevel from '@/api/system/level' |
| | | import crudSystemSetting from '@/api/system/systemSetting' |
| | | import crudSysUserCompany from '@/api/system/sysUserCompany' |
| | | let userRoles = [] |
| | | let userJobs = [] |
| | | const defaultForm = { id: null, username: 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 } |
| | |
| | | // 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
| | | [CRUD.HOOK.beforeRefresh]() { |
| | | // 查询配置参数 |
| | | crudSystemSetting.getAll().then(res => { |
| | | crudSysUserCompany.getAll().then(res => { |
| | | // 公司列表 |
| | | this.companyList = res |
| | | }) |
| | |
| | | // 去合同部分 |
| | | toContract() { |
| | | // 跳转页面 |
| | | this.$router.push({ path: '/system/sysContract' }) |
| | | this.$router.push({ path: '/system/sysUserContract' }) |
| | | } |
| | | } |
| | | } |