From e32cb4a8ff9fad669f45412009435e696b9af7bb Mon Sep 17 00:00:00 2001 From: dx <1242347652@qq.com> Date: Sun, 26 Jan 2025 17:21:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/taglibrary/index.ts | 43 ++++ src/utils/dict.ts | 1 + .../system/taglibrary/TagLibraryForm.vue | 172 ++++++++++++++ src/views/system/taglibrary/index.vue | 186 +++++++++++++++ src/views/system/task/form.vue | 118 ++++++++++ src/views/system/task/index.vue | 217 ++++++++++++++++++ src/views/system/user/enterprisesDetail.vue | 44 ++++ src/views/system/user/examine.vue | 215 +++++++++++++++++ src/views/system/user/examineform.vue | 59 +++++ 9 files changed, 1055 insertions(+) create mode 100644 src/api/system/taglibrary/index.ts create mode 100644 src/views/system/taglibrary/TagLibraryForm.vue create mode 100644 src/views/system/taglibrary/index.vue create mode 100644 src/views/system/task/form.vue create mode 100644 src/views/system/task/index.vue create mode 100644 src/views/system/user/enterprisesDetail.vue create mode 100644 src/views/system/user/examine.vue create mode 100644 src/views/system/user/examineform.vue diff --git a/src/api/system/taglibrary/index.ts b/src/api/system/taglibrary/index.ts new file mode 100644 index 0000000..d1aafd8 --- /dev/null +++ b/src/api/system/taglibrary/index.ts @@ -0,0 +1,43 @@ +import request from '@/config/axios' + +// 企业标签 VO +export interface TagLibraryVO { + id: number // 签的唯一标识,自增主键 + tagName: string // 标签的名称 + parentTagId: number // 父标签的ID + tagLevel: number // 标签层级(一级、二级、三级) + tagType: number // 1、企业标签2、执法标签 +} + +// 企业标签 API +export const TagLibraryApi = { + // 查询企业标签分页 + getTagLibraryPage: async (params: any) => { + return await request.get({ url: `/system/tag-library/page`, params }) + }, + + // 查询企业标签详情 + getTagLibrary: async (id: number) => { + return await request.get({ url: `/system/tag-library/get?id=` + id }) + }, + + // 新增企业标签 + createTagLibrary: async (data: TagLibraryVO) => { + return await request.post({ url: `/system/tag-library/create`, data }) + }, + + // 修改企业标签 + updateTagLibrary: async (data: TagLibraryVO) => { + return await request.put({ url: `/system/tag-library/update`, data }) + }, + + // 删除企业标签 + deleteTagLibrary: async (id: number) => { + return await request.delete({ url: `/system/tag-library/delete?id=` + id }) + }, + + // 导出企业标签 Excel + exportTagLibrary: async (params) => { + return await request.download({ url: `/system/tag-library/export-excel`, params }) + }, +} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 61bc1f4..ffb66f0 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -131,6 +131,7 @@ export enum DICT_TYPE { SYSTEM_SOCIAL_TYPE = 'system_social_type', USER_AUDIT_TYPE = 'user_audit_type', WX_USER_TYPE = 'wx_user_type', + TAG_TYPE = 'tag_type', // ========== INFRA 模块 ========== INFRA_BOOLEAN_STRING = 'infra_boolean_string', diff --git a/src/views/system/taglibrary/TagLibraryForm.vue b/src/views/system/taglibrary/TagLibraryForm.vue new file mode 100644 index 0000000..7381e45 --- /dev/null +++ b/src/views/system/taglibrary/TagLibraryForm.vue @@ -0,0 +1,172 @@ + + \ No newline at end of file diff --git a/src/views/system/taglibrary/index.vue b/src/views/system/taglibrary/index.vue new file mode 100644 index 0000000..d14d2e9 --- /dev/null +++ b/src/views/system/taglibrary/index.vue @@ -0,0 +1,186 @@ + + + \ No newline at end of file diff --git a/src/views/system/task/form.vue b/src/views/system/task/form.vue new file mode 100644 index 0000000..1d1aba1 --- /dev/null +++ b/src/views/system/task/form.vue @@ -0,0 +1,118 @@ + + + diff --git a/src/views/system/task/index.vue b/src/views/system/task/index.vue new file mode 100644 index 0000000..ca212d6 --- /dev/null +++ b/src/views/system/task/index.vue @@ -0,0 +1,217 @@ + + + + + diff --git a/src/views/system/user/enterprisesDetail.vue b/src/views/system/user/enterprisesDetail.vue new file mode 100644 index 0000000..fcee53d --- /dev/null +++ b/src/views/system/user/enterprisesDetail.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/src/views/system/user/examine.vue b/src/views/system/user/examine.vue new file mode 100644 index 0000000..920266f --- /dev/null +++ b/src/views/system/user/examine.vue @@ -0,0 +1,215 @@ + + + + diff --git a/src/views/system/user/examineform.vue b/src/views/system/user/examineform.vue new file mode 100644 index 0000000..8167aa5 --- /dev/null +++ b/src/views/system/user/examineform.vue @@ -0,0 +1,59 @@ + + + + + From 100dda1c309ee6241ec0685c1874bbad57ff0b84 Mon Sep 17 00:00:00 2001 From: dx <1242347652@qq.com> Date: Sun, 26 Jan 2025 17:23:56 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/taglibrary/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/system/taglibrary/index.ts b/src/api/system/taglibrary/index.ts index d1aafd8..ff5efcc 100644 --- a/src/api/system/taglibrary/index.ts +++ b/src/api/system/taglibrary/index.ts @@ -7,6 +7,7 @@ export interface TagLibraryVO { parentTagId: number // 父标签的ID tagLevel: number // 标签层级(一级、二级、三级) tagType: number // 1、企业标签2、执法标签 + sort: number } // 企业标签 API