|
|
@ -69,7 +69,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="岗位"> |
|
|
|
<el-form-item label="岗位" prop="postIds"> |
|
|
|
<el-select v-model="formData.postIds" multiple placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in postList" |
|
|
@ -102,6 +102,7 @@ import { defaultProps, handleTree } from '@/utils/tree' |
|
|
|
import * as PostApi from '@/api/system/post' |
|
|
|
import * as DeptApi from '@/api/system/dept' |
|
|
|
import * as UserApi from '@/api/system/user' |
|
|
|
import { getBaseUrl } from '@/utils/systemParam' |
|
|
|
|
|
|
|
defineOptions({ name: 'SystemUserForm' }) |
|
|
|
|
|
|
@ -126,11 +127,14 @@ const formData = ref({ |
|
|
|
status: CommonStatusEnum.ENABLE, |
|
|
|
roleIds: [] |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const formRules = reactive({ |
|
|
|
username: [{ required: true, message: '用户名称不能为空', trigger: 'blur' }], |
|
|
|
nickname: [{ required: true, message: '用户昵称不能为空', trigger: 'blur' }], |
|
|
|
deptId: [{ required: true, message: '部门不能为空', trigger: 'blur' }], |
|
|
|
password: [{ required: true, message: '用户密码不能为空', trigger: 'blur' }], |
|
|
|
postIds: [{ required: getBaseUrl().includes('scp')?true:false, message: '岗位不能为空', trigger: 'blur' }], |
|
|
|
email: [ |
|
|
|
{ |
|
|
|
type: 'email', |
|
|
|