You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
662 B
20 lines
662 B
|
6 months ago
|
import http from '@/http/http';
|
||
|
|
|
||
|
|
// 非现场执法后台基础路径(走 vite 代理 /nosapi -> http://127.0.0.1:18005)
|
||
|
|
const NOS_BASE = import.meta.env.VITE_NOS_BASE_URL || '/nosapi';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 查询 enf 测试单分页列表
|
||
|
|
* 后端: GET /enforcementcode/enfDemo/list
|
||
|
|
* 返回: TableDataInfo<TestEnfDemoVo> -> { rows, total, code, msg }
|
||
|
|
*
|
||
|
|
* 通过 baseURL: '' 绕过 axios 默认 baseURL(默认是 /api/enf-ep,给执法端老接口用)
|
||
|
|
*/
|
||
|
|
export const listEnfDemo = (params) =>
|
||
|
|
http.request({
|
||
|
|
method: 'GET',
|
||
|
|
url: NOS_BASE + '/enforcementcode/enfDemo/list',
|
||
|
|
params,
|
||
|
|
baseURL: '',
|
||
|
|
}).then(res => res.data);
|