diff --git a/src/api/base/label/index.js b/src/api/base/label/index.js new file mode 100644 index 0000000..4371fc8 --- /dev/null +++ b/src/api/base/label/index.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 创建标签库 +export function createLabel(data) { + return request({ + url: '/base/label/create', + method: 'post', + data: data + }) +} + +// 更新标签库 +export function updateLabel(data) { + return request({ + url: '/base/label/update', + method: 'put', + data: data + }) +} + +// 删除标签库 +export function deleteLabel(id) { + return request({ + url: '/base/label/delete?id=' + id, + method: 'delete' + }) +} + +// 获得标签库 +export function getLabel(id) { + return request({ + url: '/base/label/get?id=' + id, + method: 'get' + }) +} + +// 获得标签库分页 +export function getLabelPage(params) { + return request({ + url: '/base/label/page', + method: 'get', + params + }) +} +// 导出标签库 Excel +export function exportLabelExcel(params) { + return request({ + url: '/base/label/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} \ No newline at end of file diff --git a/src/views/base/label/LabelForm.vue b/src/views/base/label/LabelForm.vue new file mode 100644 index 0000000..1c94be3 --- /dev/null +++ b/src/views/base/label/LabelForm.vue @@ -0,0 +1,104 @@ + + + \ No newline at end of file diff --git a/src/views/base/label/index.vue b/src/views/base/label/index.vue new file mode 100644 index 0000000..d6a41a2 --- /dev/null +++ b/src/views/base/label/index.vue @@ -0,0 +1,154 @@ + + + \ No newline at end of file