export const modalConfig = {
  formItems: [
    {
      field: 'nickName',
      type: 'input',
      label: '用户姓名',
      required: true,
      placeholder: '请输入用户姓名'
    },
    {
      field: 'deptId',
      type: 'treeSelect',
      label: '归属部门',
      required: true,
      placeholder: '请选择归属部门',
      options:[]
    },
    {
      field: 'phonenumber',
      type: 'input',
      label: '手机号码',
      required: true,
      placeholder: '请输入手机号码'
    },
    {
      field: 'email',
      type: 'input',
      label: '邮箱',
      placeholder: '请输入邮箱'
    },
    {
      field: 'userName',
      type: 'input',
      label: '工号',
      required: true,
      placeholder: '请输入工号'
    },
    {
      field: 'password',
      type: 'input',
      label: '用户密码',
      required: true,
      placeholder: '请输入用户密码'
    },
    {
      field: "sex",
      type: "select",
      label: "用户性别",
      placeholder: "请选择用户性别",
      options: [
        { title: '男', value: '1' },
        { title: '女', value: '0' },
      ],
    },
    {
      field: 'status',
      type: 'radio',
      label: '字典状态',
      required: true,
      placeholder: '请选择字典状态',
      options:[
        { label: '正常', value: '0' },
        { label: '停用', value: '1' }
      ]
    },
    {
      field: "postIds",
      type: "select",
      label: "岗位",
      placeholder: "请选择岗位",
      options: [],
    },
    // {
    //   field: "roleIds",
    //   type: "select",
    //   label: "角色",
    //   placeholder: "请选择角色",
    //   options: [],
    // },
    {
      field: 'remark',
      type: 'textarea',
      label: '备注',
      placeholder: '请输入备注'
    }
  ],
  colLayout: { span: 24 },
  itemStyle: {}
}
