123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import { creatRequest } from '../../utils/request.js';
- const requestList = {
- // 获取条件树
- conditions: {
- method: 'GET',
- url: 'common/conditions',
- // successMessage: '',
- // needLoading: false // 还有这两个参数,但不是必传的,默认loading
- },
- // 查核组列表
- checkGroupList: {
- method: 'POST',
- url: 'situation/getCheckGroupByCondition ',
- },
- // 查核地图列表
- checkDeptList: {
- method: 'POST',
- url: 'situation/checkDeptList',
- },
- // 地图新增单位树
- deptList: {
- method: 'GET',
- url: 'common/deptList',
- },
- // 地图新增选择返回新增单位
- addDeptList: {
- method: 'POST',
- url: 'situation/addDeptList',
- },
- // 情境新增保存
- savePOST: {
- method: 'POST',
- url: 'situation',
- successMessage: '保存成功!'
- },
- // 情境新增保存
- savePUT: {
- method: 'PUT',
- url: 'situation',
- successMessage: '编辑成功!'
- },
- // 情境配置的明细(出参同创建入参)
- detialConfig: {
- method: 'GET',
- url: 'situation/config',
- },
- // 获取情境类型列表
- getSituationTypes: {
- method: 'GET',
- url: 'common/getSituationTypes',
- },
- //获取分页模板数据
- getTemplates:{
- method: 'GET',
- url: 'situation/getPageTemplateList',
- }
- };
- export const commServer = (key, data) => {
- let obj = requestList[key];
- return creatRequest(obj, data);
- }
|