// import http from '@/http/api.js' import base64 from '@/utils/base64.js' import http from './api.js' export const getrequest = (className, methodName) => { return http.request({ url: '/zf/request', method: 'POST', data: { "className": className, "methodName": methodName, "params": { "current": "1", "size": "10" } } }) } // 办事指南列表 export const bsznList = () => { return http.request({ url: '/zf/request', method: 'POST', data: { "className": 'dictBsznController', "methodName": 'bsznList', "params": {} } }); }; // export const bsznList = () => { // return http.request({ // url: '/api/dictBszn/bsznList', // method: 'get', // }); // }; // 根据id查看详情 export const detailById = (id) => { return http.request({ url: '/zf/request', method: 'post', data: { "className": 'dictBsznController', "methodName": 'detailById', "params": { "id": id } } }); }; // export const detailById = (id) => { // return http.request({ // url: '/api/dictBszn/detailById', // method: 'get', // params: { // id // } // }); // }; // 根据事项名称模糊搜索 export const selectListByMc = (dictValue) => { return http.request({ // url: '/api/dictBszn/selectListByMc', url: '/zf/request', method: 'post', data: { "className": 'dictBsznController', "methodName": 'selectListByMc', "params": { "dictValue": dictValue } } // params: { // dictValue // } }); }; export const login = (tenantId, username, password, type) => { return http.request({ url: '/api/blade-auth/oauth/token', method: 'POST', header: { 'Tenant-Id': tenantId, 'Blade-Requested-With': 'BladeHttpRequest', }, params: { tenantId, username, password, grant_type: "password", scope: "all", type } }) }