Commit 7dfe73b1 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞 fix(物流能力): 物流公司新增修复bug

parent 35ac900d
......@@ -2,6 +2,21 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
import { PublicApi } from '@/services/api';
import { ISchema } from '@formily/antd';
const fetchData = () => {
return new Promise(resolve => {
PublicApi.getMemberManageRoleAll({ roleTypeEnum: '1' }).then((res: any) => {
resolve({
data: res.data.map((item: any) => {
return {
name: item.roleName,
state: item.roleId,
}
})
})
})
})
}
export const formSchema: ISchema = {
type: 'object',
properties: {
......@@ -147,17 +162,7 @@ export const logisticsSchema: ISchema = {
"x-component": 'Select',
"x-component-props": {
placeholder: '选择会员角色',
fetchSearch: () => {
return new Promise(resolve => {
PublicApi.getMemberManageRoleAll({ roleTypeEnum: '1' }).then(res => {
res.data.forEach((item:any) => {
item.id = item.roleId;
item.name = item.roleName;
})
resolve(res)
})
})
},
fetchSearch: fetchData,
style: {
width: 160
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment