1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- /*!
- * 标签管理
- */
- // import { get, post } from 'data-room-ui/js/utils/http'
- import Vue from 'vue'
- /**
- * 获取标签列表
- * @returns {*}
- */
- const getLabelList = () => Vue.prototype.$dataRoomAxios.get('/label/getLabelList')
- /**
- * 获取标签
- * @param data
- * @returns {*}
- */
- const labelList = (data) => Vue.prototype.$dataRoomAxios.get('/label/list', data)
- /**
- * 获取标签分类
- * @returns {*}
- */
- const getLabelType = () => Vue.prototype.$dataRoomAxios.get('/label/getLabelType')
- /**
- * 根据种类移除标签
- * @param data
- * @returns {*}
- */
- const removeLabelByType = (data) => Vue.prototype.$dataRoomAxios.post('/label/removeLabelByType', data)
- /**
- * 移除标签
- * @param id
- * @returns {*}
- */
- const removeLabel = (id = '-1') => Vue.prototype.$dataRoomAxios.get(`/label/removeLabel/${id}`)
- /**
- * 检查重复标签
- * @param data
- * @returns {*}
- */
- const checkRepeatLabel = (data) => Vue.prototype.$dataRoomAxios.post('/label/checkRepeat', data)
- /**
- * 新增/修改标签
- * @param data
- * @returns {*}
- */
- const addOrUpdateLabel = (data) => Vue.prototype.$dataRoomAxios.post('/label/addOrUpdateLabel', data)
- /**
- * 获取标签详情
- * @param id
- * @returns {*}
- */
- const getLabelDetail = (id = '-1') => Vue.prototype.$dataRoomAxios.get(`/label/getLabelDetail/${id}`)
- /**
- * 修改标签种类
- * @param data
- * @returns {*}
- */
- const updateLabelType = (data) => Vue.prototype.$dataRoomAxios.post('/label/updateLabelType', data)
- /**
- * 根据标签id获取数据集id列表
- * @param id
- */
- const getDataSetIdListByLabelId = (id = '-1') => Vue.prototype.$dataRoomAxios.get(`/label/queryDataSetIdList/${id}`)
- /**
- * 根据数据集id获取标签列表
- * @param id
- */
- const getLabelListByDatasetId = (id = '-1') => Vue.prototype.$dataRoomAxios.get(`/label/queryDataSetLabelList/${id}`)
- export {
- getLabelList,
- labelList,
- getLabelType,
- removeLabelByType,
- removeLabel,
- checkRepeatLabel,
- addOrUpdateLabel,
- getLabelDetail,
- updateLabelType,
- getDataSetIdListByLabelId,
- getLabelListByDatasetId
- }
|