vue-vben-admin icon indicating copy to clipboard operation
vue-vben-admin copied to clipboard

编辑表格里面要用要ApiSelect组件, 要根据查询条件请求数据

Open github-ZH-cn opened this issue 3 years ago • 2 comments

查询出来数组怎么赋值到ApiSelect 里面 7@6MU{)4BTD~1TBD86YQJ{U

github-ZH-cn avatar Aug 12 '22 11:08 github-ZH-cn

api: (info) =>
  getAccountList(info).then((res) => ({
    items: res.rows,
    total: res.total,
  })),
beforeFetch: (info: BasicPageParams) => {
  return {
    pageNum: info.page,
    pageSize: info.pageSize,
    ...getForm().getFieldsValue(),
  };
},

silianpan avatar Aug 13 '22 13:08 silianpan

这种的

------------------ 原始邮件 ------------------ 发件人: "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: @.***>

github-ZH-cn avatar Aug 13 '22 14:08 github-ZH-cn