vue-vben-admin
vue-vben-admin copied to clipboard
编辑表格里面要用要ApiSelect组件, 要根据查询条件请求数据
查询出来数组怎么赋值到ApiSelect 里面

api: (info) =>
getAccountList(info).then((res) => ({
items: res.rows,
total: res.total,
})),
beforeFetch: (info: BasicPageParams) => {
return {
pageNum: info.page,
pageSize: info.pageSize,
...getForm().getFieldsValue(),
};
},
这种的
------------------ 原始邮件 ------------------ 发件人: "vbenjs/vue-vben-admin" @.>; 发送时间: 2022年8月13日(星期六) 晚上9:49 @.>; @.@.>; 主题: Re: [vbenjs/vue-vben-admin] 编辑表格里面要用要ApiSelect组件, 要根据查询条件请求数据 (Issue #2167)
api: (info) => getAccountList(info).then((res) => ({ items: res.rows, total: res.total, })), beforeFetch: (info: BasicPageParams) => { return { pageNum: info.page, pageSize: info.pageSize, ...getForm().getFieldsValue(), }; },
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>