Newer
Older
Nanping_sponge_JXKH / src / views / api / index.js
@liyingjing liyingjing on 25 Oct 4 KB 海绵绩效考个
import request from '@/utils/request'
// 项目进度表导出接口
export function multiTableWrite(params) {
    return request({
        url: `/business/report/multiTableWrite?time=${params}`,
        method: 'get',
        responseType: "blob",
    })
}
// 下载图片
export const downloadImage = params => {
    return request("/business/report/progress/image/download" + params, {
        method: "get",
        data: undefined || ""
    });
}
export function getInfo(flag) {
    return request({
        url: `/business/report/progress/count/category/1?flag=1`,
        method: 'get'
    })
}
// 项目基本信息表 项目信息填报
export function projectCount(flag) {
    return request({
        url: `/business/report/project/count/category/1?flag=1`,
        method: 'get'
    })
}

//项目基本信息删除
export const projectDelete = (data) => {
    return request({
        url: `/business/report/project/delete`,
        method: 'post',
        data: data
    });
}
export const progressCount = params => {
    return request({
        url: `/business/report/progress/count/info?timeMillis=${params}`,
        method: "get",
    });
};

//曲区县下拉接口
export const getProjectCategory = () => {
        return request({
            url: `/business/projectCategory/list/select`,
            method: "get",
        });
    }
    // 点击查询项目进度表
export const reportlist = (params) => {
        return request({
            url: `/business/report/progress/list`,
            method: "get",
            params: {...params }
        });
    }
    // 点击查询项目进度统计数据上报
export const progressList = (params) => {
    return request({
        url: `/business/report/progress/by/type/list`,
        method: "get",
        params: {...params }
    });
}

// 点击查询项目进度统计数据上报详情
export const projectInfo = (id) => {
    return request({
        url: `/business/report/project/info/${id}`,
        method: "get",
    });
}

// 项目基本信息表 详情 修改
export const projectList = (params) => {
    return request({
        url: `/business/report/project/list`,
        method: "get",
        params: {...params }
    });
}

//项目资料管理  资料管理接口
export const fileList = (params) => {
    return request({
        url: `/business/report/project/file/list`,
        method: "get",
        params: {...params }
    });
}


//项目变更审核 查询接口
export const changePage = (params) => {
    return request({
        url: `/business/report/project/change/page`,
        method: "get",
        params: {...params }
    });
}


//曲区县下拉接口
export const countySelect = () => {
    return request({
        url: `/business/sys/county/select`,
        method: "get",
    });
}

//属排水分区 接口
export const partitionSelect = () => {
    return request({
        url: `/business/report/partition/list`,
        method: "get",
    });
}


//项目设计参数 接口
export const paramRelationList = (data) => {
    return request({
        url: `/business/report/paramRelation/param/list`,
        method: 'post',
        data: data
    });
}

//项目设计参数 接口
export const projectUpdate = (data) => {
    return request({
        url: `/business/report/project/update`,
        method: 'post',
        data: data
    });
}

//项目填报 新增
export const projectSave = (data) => {
    return request({
        url: `/business/report/project/save`,
        method: 'post',
        data: data
    });
}

//项目进度表修改
export const updateProgress = (data) => {
    return request({
        url: `/business/report/progress/update`,
        method: 'post',
        data: data
    });
}

//提交变更审核信息
export const projectChangeSave = (data) => {
    return request({
        url: `/business/report/project/change/save`,
        method: 'post',
        data: data
    });
}



// 点击查询项目进度统计数据上报详情
export const projectId = (id) => {
    return request({
        url: `/business/report/project/change/info/${id}`,
        method: "get",
    });
}


// 点击查询项目进度统计数据上报详情
export const projectApproval = (data) => {
        return request({
            url: `/business/report/project/change/approval`,
            method: "post",
            data
        });
    }
    // 文件上传接口
export const systemUpload = data => {
    return request({
        url: `/dev-api/system/upload`,
        method: "post",
        data,
        headers: { "Content-Type": "multipart/form-data" }
    });
};