| 123456789101112131415161718192021222324252627 |
- import { BillboardType } from './billboard.data';
- import { useUserStore } from '/@/store/modules/user';
- import { defHttp } from '/@/utils/http/axios';
- const store = useUserStore();
- enum Api {
- getSummary = '/ventanaly-company/company/index/getEachMinePlateInfo',
- }
- /**
- * 获取看板的详细数据
- * @param params
- */
- export const getSummary: () => Promise<BillboardType[]> = () =>
- defHttp
- .post({
- url: Api.getSummary,
- params: {
- userName: store.userInfo?.username,
- },
- })
- .then((res: BillboardType[]) => {
- return res.reverse().sort((r) => {
- return r.orgname ? -1 : 1;
- });
- });
|