wangzhibo
7 天以前 1c3ae7bcad167c9a593f4634968a6e142d9b08f9
src/modules/user/views/list.vue
@@ -3,6 +3,8 @@
      <cl-row>
         <!-- 刷新按钮 -->
         <cl-refresh-btn />
         <!-- 新增按钮 -->
         <cl-add-btn />
         <!-- 删除按钮 -->
         <cl-multi-delete-btn />
         <cl-flex1 />
@@ -90,6 +92,20 @@
         value: 2,
         type: 'warning'
      }
   ],
   role: [
      {
         label: t('学生'),
         value: '学生'
      },
      {
         label: t('老师'),
         value: '老师'
      },
      {
         label: t('未知'),
         value: '未知'
      }
   ]
});
@@ -101,8 +117,18 @@
         width: 60
      },
      {
         label: t('所属单位'),
         prop: 'departmentName',
         minWidth: 150
      },
      {
         label: t('昵称'),
         prop: 'nickName',
         minWidth: 150
      },
      {
         label: t('生日'),
         prop: 'birthday',
         minWidth: 150
      },
      {
@@ -119,9 +145,34 @@
         minWidth: 120
      },
      {
         label: t('角色'),
         prop: 'role',
         minWidth: 120
      },
      {
         label: t('性别'),
         prop: 'gender',
         dict: options.gender,
         minWidth: 120
      },
      {
         label: t('碳积分总额'),
         prop: 'carbonBalance',
         minWidth: 120
      },
      {
         label: t('学院名称'),
         prop: 'collegeName',
         minWidth: 120
      },
      {
         label: t('专业名称'),
         prop: 'majorName',
         minWidth: 120
      },
      {
         label: t('班级名称'),
         prop: 'className',
         minWidth: 120
      },
      {
@@ -157,11 +208,37 @@
         component: { name: 'cl-upload' }
      },
      {
         label: t("选择部门"),
         prop: "departmentId",
         component: {
            name: 'cl-dept-select',
            props: {
               multiple: false,      // 单选 / true 多选
               placeholder: "请选择部门",
               checkStrictly: true,  // 父子节点不联动
               immediate: true       // 立即加载部门树
            }
         },
         required: true,
      },
      {
         prop: 'unionid',
         label: t('唯一标识'),
         component: { name: 'el-input' },
         required: true
      },
      {
         prop: 'nickName',
         label: t('昵称'),
         component: { name: 'el-input' },
         required: true
      },
      {
         prop: 'birthday',
         label: t('生日'),
         component: { name: 'el-input' }
      },
      {
         prop: 'phone',
         label: t('手机号'),
@@ -182,6 +259,51 @@
         }
      },
      {
         prop: 'role',
         label: t('角色'),
         value: '学生',
         component: {
            name: 'el-radio-group',
            options: options.role
         }
      },
      {
         prop: 'carbonBalance',
         label: t('碳积分总额'),
         value: 0,
         component: { name: 'el-input' }
      },
      {
         prop: 'collegeId',
         label: t('学院ID'),
         component: { name: 'el-input' }
      },
      {
         prop: 'collegeName',
         label: t('学院名称'),
         component: { name: 'el-input' }
      },
      {
         prop: 'majorId',
         label: t('专业ID'),
         component: { name: 'el-input' }
      },
      {
         prop: 'majorName',
         label: t('专业名称'),
         component: { name: 'el-input' }
      },
      {
         prop: 'classId',
         label: t('班级ID'),
         component: { name: 'el-input' }
      },
      {
         prop: 'className',
         label: t('班级名称'),
         component: { name: 'el-input' }
      },
      {
         prop: 'status',
         label: t('状态'),
         value: 1,