导入导出
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;
})();
本文来自博客园,作者:zjxgdq,转载请注明原文链接:https://www.cnblogs.com/zjxzhj/p/15424700.html