| | |
| | | timeout: 150000 |
| | | }) |
| | | } |
| | | |
| | | // 获取工单白名单列表 |
| | | export function getWhiteList(query) { |
| | | return request({ |
| | | url: '/threshold/white/page', |
| | | method: 'post', |
| | | data: query |
| | | }) |
| | | } |
| | | |
| | | // 获取工单白名单详情 |
| | | export function getWhite(id) { |
| | | return request({ |
| | | url: '/threshold/white/'+id, |
| | | method: 'get', |
| | | }) |
| | | } |
| | | // 新增工单白名单 |
| | | export function addWhiteList(data) { |
| | | return request({ |
| | | url: '/threshold/white/add', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | // 修改工单白名单 |
| | | export function updateWhite(data) { |
| | | return request({ |
| | | url: '/threshold/white/update', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 批量删除工单白名单 |
| | | export function bathDelete(data) { |
| | | return request({ |
| | | url: '/threshold/white/batchDelete', |
| | | method: 'delete', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 导出 |
| | | export function whiteExport(param) { |
| | | return request({ |
| | | url: '/threshold/white/export', |
| | | method: 'get', |
| | | params: param, |
| | | responseType: 'blob' |
| | | }) |
| | | } |
| | | |
| | | // 修改工单白名单 |
| | | export function addError(data) { |
| | | return request({ |
| | | url: '/threshold/addBatch', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |