api.ts 593 B

1234567891011121314151617181920
  1. import request from "@/utils/common/request"
  2. /**
  3. * 获取标段账号列表
  4. * @param id 标段id
  5. */
  6. export async function apiGetSettingAccount(id: string) {
  7. const { data } = await request.get('/api/projectSetting/bid/account', { bidsectionId: id })
  8. return data
  9. }
  10. /**
  11. * 添加成员账号
  12. * @param bidsectionId 标段id
  13. * @param accountId 账号id
  14. */
  15. export async function apiCreateBidAccount(bidsectionId: string, accountId: string) {
  16. const { data } = await request.post('/api/projectSetting/bid/account/create', { bidsectionId, accountId })
  17. return data
  18. }