|
@@ -47,6 +47,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
remove: {
|
|
remove: {
|
|
confirmMessage: '是否删除该用户?',
|
|
confirmMessage: '是否删除该用户?',
|
|
},
|
|
},
|
|
|
|
+ border: false,
|
|
},
|
|
},
|
|
request: {
|
|
request: {
|
|
pageRequest,
|
|
pageRequest,
|
|
@@ -190,6 +191,23 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ gender: {
|
|
|
|
+ title: '性别',
|
|
|
|
+ type: 'dict-select',
|
|
|
|
+ dict: dict({
|
|
|
|
+ data: dictionary('gender'),
|
|
|
|
+ }),
|
|
|
|
+ column: {
|
|
|
|
+ minWidth: 50, //最小列宽
|
|
|
|
+ },
|
|
|
|
+ form: {
|
|
|
|
+ value: 1,
|
|
|
|
+ component: {
|
|
|
|
+ span: 12,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ component: { props: { color: 'auto' } }, // 自动染色
|
|
|
|
+ },
|
|
dept: {
|
|
dept: {
|
|
title: '部门',
|
|
title: '部门',
|
|
search: {
|
|
search: {
|
|
@@ -210,7 +228,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
},
|
|
},
|
|
}),
|
|
}),
|
|
column: {
|
|
column: {
|
|
- minWidth: 150, //最小列宽
|
|
|
|
|
|
+ minWidth: 100, //最小列宽
|
|
},
|
|
},
|
|
form: {
|
|
form: {
|
|
rules: [
|
|
rules: [
|
|
@@ -317,20 +335,6 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- gender: {
|
|
|
|
- title: '性别',
|
|
|
|
- type: 'dict-select',
|
|
|
|
- dict: dict({
|
|
|
|
- data: dictionary('gender'),
|
|
|
|
- }),
|
|
|
|
- form: {
|
|
|
|
- value: 1,
|
|
|
|
- component: {
|
|
|
|
- span: 12,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- component: { props: { color: 'auto' } }, // 自动染色
|
|
|
|
- },
|
|
|
|
user_type: {
|
|
user_type: {
|
|
title: '用户类型',
|
|
title: '用户类型',
|
|
search: {
|
|
search: {
|
|
@@ -379,6 +383,9 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
avatar: {
|
|
avatar: {
|
|
title: '头像',
|
|
title: '头像',
|
|
type: 'avatar-cropper',
|
|
type: 'avatar-cropper',
|
|
|
|
+ column: {
|
|
|
|
+ show: false,
|
|
|
|
+ },
|
|
form: {
|
|
form: {
|
|
show: false,
|
|
show: false,
|
|
},
|
|
},
|