1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| import { request } from '@/service/request';
|
| /** 获取测量仪器列表 */
| export function fetchGetInstrumentList (params?: Api.Md.InstrumentSearchParams) {
| return request<Api.Md.InstrumentList>({
| url: '/md/instrument/list',
| method: 'get',
| params
| });
| }
| /** 新增测量仪器 */
| export function fetchCreateInstrument (data: Api.Md.InstrumentOperateParams) {
| return request<boolean>({
| url: '/md/instrument',
| method: 'post',
| data
| });
| }
|
| /** 修改测量仪器 */
| export function fetchUpdateInstrument (data: Api.Md.InstrumentOperateParams) {
| return request<boolean>({
| url: '/md/instrument',
| method: 'put',
| data
| });
| }
|
| /** 批量删除测量仪器 */
| export function fetchBatchDeleteInstrument (ids: CommonType.IdType[]) {
| return request<boolean>({
| url: `/md/instrument/${ids.join(',')}`,
| method: 'delete'
| });
| }
|
|