/*
 * @Author: your name
 * @Date: 2021-09-14 10:22:20
 * @LastEditTime: 2021-10-22 11:04:17
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/src/pages/GradeHospitalAccreditation/articleManagement/server.ts
 */



import { request } from 'umi';





// 获取条文表格数据
export const getTreeFileTableData  = async (query: {id: string|number,keyword?: string|number})=>{
  
    return request('/api/pfm/reviewArticle/list', {
        method: 'GET',
        params:{...query}
    });

}

// 获取单位列表
export const getDepartmentList  = async (query?: {responsibilityDepartmentId?: number,responsibilityUserId?: number})=>{
  
    return request('/api/pfm/sysdepartment/getSysDepartmentList', {
        method: 'GET',
        params:{...query}
    });

}

// 条文设置

export const settingArticle  = async (data: API.settingArticlePostDataType)=>{
  
    return request('/api/pfm/reviewArticle/setArticle', {
        method: 'POST',
        data:{...data}
    });

}

// 条文批量设置

export const batchSettingArticle  = async (data: API.batchSettingArticleType)=>{
  
    return request('/api/pfm/reviewArticle/setTargetEvaluation', {
        method: 'POST',
        data:{...data}
    });

}







