seatonwan9
2025-08-19 95cb69b9f79893d7cd1319d754064c93e3fa4e2f
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import createAxios from '@/utils/axios'
 
// 设备分类管理模块
const url: string = '/admin/deviceCategory'
 
const equipmentClassifyService = {
    // 获取列表  左侧树形
    LeftTreeListURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/treeList`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 获取列表  右侧树形
    RightTreeListURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/list`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 添加
    addNewpInformation(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/add`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 编辑信息分类参数 根据ID查询
    queryClassInformationDetail(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/detail`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 编辑更新接口
    updataClassInformation(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/update`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
 
    // 删除左侧分类参数
    deleteClassInformation(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/delete`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
 
}
 
export default equipmentClassifyService