Newer
Older
KaiFengPC / src / api / project / noticeReward.js
@zhangdeliang zhangdeliang on 23 May 2 KB 初始化项目



import request from '@/utils/request'
// 获取项目列列表
export function getInfo(params) {
    return request({
        url: `/business/projectBonusNotice/page`,
        method: 'get',
        params
    })
}
export const projectInfoAdd = data => {
    return request({
        url: `/business/projectBonusNotice/add`,
        method: "post",
        data
    });
};
export const projectInfoEdit = data => {
  return request({
      url: `/business/projectBonusNotice/edit`,
      method: "put",
      data
  });
};
export const projectInfoDelete = ids => {
    return request({
        url: `/business/projectBonusNotice/${ids}`,
        method: "delete",
    });
};

export const projectInfoGet = ids => {
    return request({
        url: `/business/projectBonusNotice/${ids}`,
        method: "get",
    });
};
//导出接口
export const multiTableWrite = params => {
    return request({
        url: `/newApi/report/multiTableWrite?time=${params}`,
        method: "get",
        responseType: "arraybuffer",
    });
};

// 表查询项目类型
export function projectTypeList(params) {
    return request({
        url: `/business/projectBonusNotice/list`,
        method: 'get',
        params
    })
}
// 列表查询项目单位
export function projectCompany(params) {
    return request({
        url: `/business/projectCompany/list`,
        method: 'get',
        params
    })
}

// 查询用户个人信息
export function getUserProfile() {
    return request({
      url: "/system/user/profile",
      method: "get",
    });
  }

  export function userList() {
    return request({
      url: "/system/user/list",
      method: "get",
    });
  }

  export function projectInfoSubmit(data) {
    return request({
      url: "/business/projectInfo/submit",
      method: "post",
      data
    });
  }
//   审核项目立项
export function projectInfoapprovet(data) {
  return request({
    url: "/business/projectInfo/approve",
    method: "post",
    data
  });
}

//批量新增-修改项目类型对应的参数
export function projectItemDescriptionConfigAddBatch(data) {
  return request({
    url: "/business/projectItemDescriptionConfig/addBatch",
    method: "post",
    data
  });
}

//列表查询项目类型对应的项目内容配置
export function getProjectItemDescriptionConfigList(params) {
  return request({
    url: "/business/projectItemDescriptionConfig/list",
    method: "get",
    params
  });
}

//列表查询项目类型对应的项目内容配置
export function projectBonusNoticeGetNumber(params) {
  return request({
    url: "/business/projectBonusNotice/getNumber",
    method: "get",
    params
  });
}