|
|
@ -2,7 +2,7 @@ import { BasicColumn } from '/@/components/Table'; |
|
|
|
import { FormSchema } from '/@/components/Table'; |
|
|
|
import { FormSchema } from '/@/components/Table'; |
|
|
|
import { h } from 'vue'; |
|
|
|
import { h } from 'vue'; |
|
|
|
import { Tag } from 'ant-design-vue'; |
|
|
|
import { Tag } from 'ant-design-vue'; |
|
|
|
import {listPushType} from '/@/api/platform/common/controller/pushType'; |
|
|
|
import { getUserTypeList } from '/@/api/platform/system/controller/user'; |
|
|
|
|
|
|
|
|
|
|
|
/** 表格列配置 */ |
|
|
|
/** 表格列配置 */ |
|
|
|
export const columns: BasicColumn[] = [ |
|
|
|
export const columns: BasicColumn[] = [ |
|
|
@ -70,9 +70,6 @@ export const userFormSchema: FormSchema[] = [ |
|
|
|
field: 'nickName', |
|
|
|
field: 'nickName', |
|
|
|
label: '用户昵称', |
|
|
|
label: '用户昵称', |
|
|
|
component: 'Input', |
|
|
|
component: 'Input', |
|
|
|
componentProps: { |
|
|
|
|
|
|
|
disabled: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
colProps: { |
|
|
|
colProps: { |
|
|
|
span: 12 |
|
|
|
span: 12 |
|
|
|
} |
|
|
|
} |
|
|
@ -82,7 +79,6 @@ export const userFormSchema: FormSchema[] = [ |
|
|
|
label: '归属机构', |
|
|
|
label: '归属机构', |
|
|
|
component: 'TreeSelect', |
|
|
|
component: 'TreeSelect', |
|
|
|
componentProps: { |
|
|
|
componentProps: { |
|
|
|
disabled: true, |
|
|
|
|
|
|
|
fieldNames: { |
|
|
|
fieldNames: { |
|
|
|
label: 'name', |
|
|
|
label: 'name', |
|
|
|
key: 'deptId', |
|
|
|
key: 'deptId', |
|
|
@ -98,24 +94,17 @@ export const userFormSchema: FormSchema[] = [ |
|
|
|
field: 'phone', |
|
|
|
field: 'phone', |
|
|
|
label: '手机号', |
|
|
|
label: '手机号', |
|
|
|
component: 'Input', |
|
|
|
component: 'Input', |
|
|
|
componentProps: { |
|
|
|
|
|
|
|
disabled: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
field: 'email', |
|
|
|
field: 'email', |
|
|
|
label: '邮箱', |
|
|
|
label: '邮箱', |
|
|
|
component: 'Input', |
|
|
|
component: 'Input', |
|
|
|
componentProps: { |
|
|
|
|
|
|
|
disabled: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
field: 'sex', |
|
|
|
field: 'sex', |
|
|
|
label: '性别', |
|
|
|
label: '性别', |
|
|
|
component: 'Select', |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
|
componentProps: { |
|
|
|
disabled: true, |
|
|
|
|
|
|
|
options: [ |
|
|
|
options: [ |
|
|
|
{ label: '男', value: '0' }, |
|
|
|
{ label: '男', value: '0' }, |
|
|
|
{ label: '女', value: '1' } |
|
|
|
{ label: '女', value: '1' } |
|
|
@ -131,7 +120,7 @@ export const userFormSchema: FormSchema[] = [ |
|
|
|
component: 'ApiSelect', |
|
|
|
component: 'ApiSelect', |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
componentProps: { |
|
|
|
componentProps: { |
|
|
|
api: listPushType, |
|
|
|
api: getUserTypeList, |
|
|
|
resultField: 'data' |
|
|
|
resultField: 'data' |
|
|
|
}, |
|
|
|
}, |
|
|
|
colProps: { |
|
|
|
colProps: { |
|
|
@ -143,7 +132,6 @@ export const userFormSchema: FormSchema[] = [ |
|
|
|
field: 'remarks', |
|
|
|
field: 'remarks', |
|
|
|
component: 'InputTextArea', |
|
|
|
component: 'InputTextArea', |
|
|
|
componentProps: { |
|
|
|
componentProps: { |
|
|
|
disabled: true, |
|
|
|
|
|
|
|
rows: 6 |
|
|
|
rows: 6 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|