/*
 * @Author: your name
 * @Date: 2021-09-27 09:24:05
 * @LastEditTime: 2021-09-27 10:13:29
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/mock/qualityRating.ts
 */


/*
 * @Author: your name
 * @Date: 2021-09-14 14:40:58
 * @LastEditTime: 2021-09-22 09:22:38
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/mock/articleManagement.ts
 */





// eslint-disable-next-line import/no-extraneous-dependencies
import { Request, Response } from 'express';


const getTableData = (req: Request, res: Response, u: string)=>{
  const result = {
    data:[
        {
            typeLevel:'C级',
            require:'≥95%',
            site:'97%',
            target:'95%',
            self:'90%',
            system:'97%'
        },
        {
            typeLevel:'C级',
            require:'≥95%',
            site:'97%',
            target:'95%',
            self:'90%',
            system:'97%'
        },
        {
            typeLevel:'C级',
            require:'≥95%',
            site:'97%',
            target:'95%',
            self:'90%',
            system:'97%'
        },
        {
            typeLevel:'C级',
            require:'≥95%',
            site:'97%',
            target:'95%',
            self:'90%',
            system:'97%'
        }
    ],
    success: true,
    status:200,
  };
  return res.json(result); 
}

const getMapData = (req: Request, res: Response, u: string)=>{
    const result = {
        data:[
            {
                labelName:'现场查核',
                qualityTypeList:[
                    {
                        levelType:'A级',
                        levelValue:50
                    },
                    {
                        levelType:'B级',
                        levelValue:70
                    },
                    {
                        levelType:'C级',
                        levelValue:30
                    }
                ]
            },
            {
                labelName:'目标',
                qualityTypeList:[
                    {
                        levelType:'A级',
                        levelValue:50
                    },
                    {
                        levelType:'B级',
                        levelValue:70
                    },
                    {
                        levelType:'C级',
                        levelValue:30
                    }
                ]
            },
            {
                labelName:'自评',
                qualityTypeList:[
                    {
                        levelType:'A级',
                        levelValue:50
                    },
                    {
                        levelType:'B级',
                        levelValue:70
                    },
                    {
                        levelType:'C级',
                        levelValue:30
                    }
                ]
            },
            {
                labelName:'系统评分',
                qualityTypeList:[
                    {
                        levelType:'A级',
                        levelValue:50
                    },
                    {
                        levelType:'B级',
                        levelValue:70
                    },
                    {
                        levelType:'C级',
                        levelValue:30
                    }
                ]
            },

        ],
        success: true,
        status:200,
      };
      return res.json(result); 
}



export default {
  'GET /api/pfm/quality/getStatistics': getTableData,
  'GET /api/pfm/quality/ratingAnalysis': getMapData,
};
