导入导出

import { getAccountList } from '/@/api/demo/system';
import { AccountParams } from '/@/api/demo/model/systemModel';
const redate = {
  pageOffset: 0,
};
const getdata = await getAccountList(redate as AccountParams).then((item) => {
  return item.items;
});
// 查询组别类型
export const Querygrouptype: any = (() => {
  const data: any[] = [];
  getdata.forEach((res) => {
    return data.push({
      label: res.name,
      value: res.name,
    });
  });
  return data;
})();
posted @ 2021-10-19 14:49  zjxgdq  阅读(15)  评论(0编辑  收藏  举报