Newer
Older
KaiFengPC / src / api / project / projectApproval.js
@zhangdeliang zhangdeliang on 20 May 1 KB 项目初始化
import request from '@/utils/request'

// 分页查询项目立项
export function getProjectApprovalPage(params) {
  return request({
    url: '/business/projectApproval/page',
    method: 'get',
    params
  })
}
// 新增项目立项
export function ProjectApprovalAdd(data) {
  return request({
    url: '/business/projectApproval/add',
    method: 'post',
    data
  })
}

// 项目列表
export function getProjectInfoNewList(params) {
  return request({
    url: '/business/projectInfoNew/list',
    method: 'get',
    params
  })
}

// 根据字典类型查询字典数据信息
export function getDicts(dictType) {
  return request({
    url: '/system/dict/data/type/' + dictType,
    method: 'get'
  })
}

// 新增项目立项
export function projectApprovalAdd(data) {
  return request({
    url: '/business/projectApproval/add',
    method: 'post',
    data
  })
}

// 修改项目立项
export function projectApprovalEdit(data) {
  return request({
    url: '/business/projectApproval/edit',
    method: 'put',
    data
  })
}

// 详细查询项目立项
export function projectApprovalDetail(id) {
  return request({
    url: `/business/projectApproval/${id}`,
    method: 'get'
  })
}

// 删除项目立项
export function projectApprovalDel(ids) {
  return request({
    url: `/business/projectApproval/${ids}`,
    method: 'delete'
  })
}