From 3077085e82e027f263f3bf01b64663e1c92cfcd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Tue, 25 Feb 2025 15:21:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/taglibrary/index.js | 51 ++++++++++ sub/invite/addEnterprise.vue | 6 +- sub/invite/enterpriseTags.vue | 169 ++++++++++++++++++++++++++-------- 3 files changed, 184 insertions(+), 42 deletions(-) create mode 100644 api/taglibrary/index.js 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 @@