提交 47bfb141 authored 作者: leon's avatar leon

用户管理 经销商id抽出

上级 97cd8e95
......@@ -8,9 +8,8 @@
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import get from 'lodash.get';
import * as RoleApi from '/@/api/system/roleApi';
import * as DistributorApi from '/@/api/system/distributorApi';
import { getDistributorId } from '/@/commonSchemaProperty';
export enum StatusEnum {
PENDING_REVIEW = '待审核',
......@@ -59,29 +58,7 @@ export const schema = {
},
table: {},
},
{
field: 'distributorId',
label: '经销商',
defaultValue: undefined,
form: {
componentProps: {
labelInValue: true,
api: DistributorApi.all,
params: {},
resultField: 'records',
labelField: 'name',
valueField: 'id',
allowClear: false,
placeholder: '经销商',
},
colProps,
component: 'ApiSelect',
rules: [{ required: true, type: 'object', message: '请选择经销商!' }],
},
table: {
customRender: ({ text, record }) => get(record, 'distributor.name') || text,
},
},
getDistributorId({ colProps }),
{
field: 'username',
label: '用户名',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论