1234567891011121314151617181920212223242526272829303132333435363738 |
- import { creatRequest } from '../../utils/request.js';
- const requestList = {
- //情境详情
- situationDetail: {
- method: 'GET',
- url: 'situation'
- },
- //情境作废
- situationDelete:{
- method:'DELETE',
- url: 'situation'
- },
- //查核计划列表
- planList:{
- method:'GET',
- url: 'plan/list'
- },
- //提前开始计划内查核
- planAdvance:{
- method:'GET',
- url: 'plan/advance'
- },
- //创建计划外查核
- createCheck:{
- method:'GET',
- url: 'plan/unplannedCheck'
- },
- //自查督查获取小计划列表
- getPlanDetailList:{
- method:'GET',
- url: 'inspector/checkList'
- },
- };
- export const commServer = ({ key, data }) => {
- let obj = requestList[key];
- return creatRequest(obj, data);
- }
|