diff --git a/api/taglibrary/index.js b/api/taglibrary/index.js new file mode 100644 index 0000000..2a8a5c9 --- /dev/null +++ b/api/taglibrary/index.js @@ -0,0 +1,51 @@ +import request from '@/utils/request' + + + +// 企业标签 API +export const TagLibraryApi = { + // 查询企业标签分页 + getTagLibraryPage(params) { + return request({ + method: 'get', + url: '/system/tag-library/page', + params: params + }) + }, + + // 查询企业标签详情 + getTagLibrary(id) { + return request({ + method: 'get', + + url: '/system/tag-library/get?id=' + id + }) + }, + + // 新增企业标签 + createTagLibrary(data) { + return request({ + method: 'post', + url: '/system/tag-library/create', + data: data + }) + }, + + // 修改企业标签 + updateTagLibrary(data) { + return request({ + method: 'put', + url: '/system/tag-library/update', + data: data + }) + }, + + // 删除企业标签 + deleteTagLibrary(id) { + return request({ + method: 'delete', + url: '/system/tag-library/delete?id=' + id + }) + }, + +} diff --git a/sub/invite/addEnterprise.vue b/sub/invite/addEnterprise.vue index e9c4e49..c760ce1 100644 --- a/sub/invite/addEnterprise.vue +++ b/sub/invite/addEnterprise.vue @@ -84,8 +84,8 @@ 企业标签 - - {{ form.tags }} + + {{ Object.values(form.tags).map(tag => tag.name).join('、') }} 请选择企业标签 @@ -288,7 +288,7 @@ export default { }, goTags() { uni.navigateTo({ - url: `/sub/invite/enterpriseTags?tags=${this.form.tags}` + url: `/sub/invite/enterpriseTags?tags=${JSON.stringify(this.form.tags)}` }) }, /** diff --git a/sub/invite/enterpriseTags.vue b/sub/invite/enterpriseTags.vue index d8e9e82..525bc3e 100644 --- a/sub/invite/enterpriseTags.vue +++ b/sub/invite/enterpriseTags.vue @@ -1,20 +1,72 @@