Newer
Older
KaiFengPC / src / api / project / projectInformation.js
@zhangdeliang zhangdeliang on 20 May 2 KB 项目初始化
import request from '@/utils/request'
// 获取项目列列表
export function getInfo(params) {
    return request({
        url: `/business/projectInfo/myProject`,
        method: 'get',
        params
    })
}
export const projectInfoedit= data => {
    return request({
        url: `/business/projectInfo/edit`,
        method: "put",
        data
    });
};

export const projectInfoAdd = data => {
  return request({
      url: `/business/projectChangeRecord/add`,
      method: "post",
      data
  });
};
export const projectInfoDelete = ids => {
    return request({
        url: `/business/projectInfo/${ids}`,
        method: "delete",
    });
};

export const projectInfoGet = ids => {
    return request({
        url: `/business/projectInfo/${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/projectType/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 projectInfoGroup(data) {
    return request({
      url: "/business/projectInfo/group",
      method: "post",
      data
    });
  }

  // 项目统计查询
  export function projectMilestoneselectSuccessList(id) {
    return request({
      url: `/business/projectMilestone/selectSuccessList/${id}`,
      method: "get",
    });
  }

  export function projectQualityReformDetailselectReformList(params) {
    return request({
      url: `/business/projectQualityReformDetail/selectReformList`,
      method: "get",
      params
    });
  }

  export const projectInfoAddInformation = data => {
    return request({
      url: `/business/projectInfo/add`,
      method: "post",
      data
    });
  };