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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
| /*!
| * 标签管理
| */
| import Vue from 'vue'
|
| /**
| * 获取标签列表
| * @returns {*}
| */
| const getLabelList = () => Vue.prototype.$dataRoomAxios.get('/visual/label/getLabelList')
|
| /**
| * 获取标签
| * @param data
| * @returns {*}
| */
| const labelList = (data) => Vue.prototype.$dataRoomAxios.get('/visual/label/list', data)
|
| /**
| * 获取标签分类
| * @returns {*}
| */
| const getLabelType = () => Vue.prototype.$dataRoomAxios.get('/visual/label/getLabelType')
|
| /**
| * 根据种类移除标签
| * @param data
| * @returns {*}
| */
| const removeLabelByType = (data) => Vue.prototype.$dataRoomAxios.post('/visual/label/removeLabelByType', data)
|
| /**
| * 移除标签
| * @param id
| * @returns {*}
| */
| const removeLabel = (id = '-1') => Vue.prototype.$dataRoomAxios.get(`/visual/label/removeLabel/${id}`)
|
| /**
| * 检查重复标签
| * @param data
| * @returns {*}
| */
| const checkRepeatLabel = (data) => Vue.prototype.$dataRoomAxios.post('/visual/label/checkRepeat', data)
|
| /**
| * 新增/修改标签
| * @param data
| * @returns {*}
| */
| const addOrUpdateLabel = (data) => Vue.prototype.$dataRoomAxios.post('/visual/label/addOrUpdateLabel', data)
|
| /**
| * 获取标签详情
| * @param id
| * @returns {*}
| */
| const getLabelDetail = (id = '-1') => Vue.prototype.$dataRoomAxios.get(`/visual/label/getLabelDetail/${id}`)
|
| /**
| * 修改标签种类
| * @param data
| * @returns {*}
| */
| const updateLabelType = (data) => Vue.prototype.$dataRoomAxios.post('/visual/label/updateLabelType', data)
|
| /**
| * 根据标签id获取数据集id列表
| * @param id
| */
| const getDataSetIdListByLabelId = (id = '-1') => Vue.prototype.$dataRoomAxios.get(`/visual/label/queryDataSetIdList/${id}`)
|
| /**
| * 根据数据集id获取标签列表
| * @param id
| */
| const getLabelListByDatasetId = (id = '-1') => Vue.prototype.$dataRoomAxios.get(`/visual/label/queryDataSetLabelList/${id}`)
|
| export {
| getLabelList,
| labelList,
| getLabelType,
| removeLabelByType,
| removeLabel,
| checkRepeatLabel,
| addOrUpdateLabel,
| getLabelDetail,
| updateLabelType,
| getDataSetIdListByLabelId,
| getLabelListByDatasetId
| }
|
|