From 80e44ef31a71be4ef8d5e4474980366eae4d8ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Wed, 12 Feb 2025 18:04:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B00.2.0:?= =?UTF-8?q?=E5=88=9B=E7=89=B9=E4=BA=91=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bst/attach.js | 44 +++ src/api/bst/attachClassify.js | 52 +++ src/components/AttachCard/index.vue | 8 +- src/components/AvatarList/index.vue | 133 +++++++- .../AttachClassify/AttachClassifySelect.vue | 84 +++++ src/components/ImageUpload/index.vue | 22 +- src/components/Pagination/index.vue | 7 +- src/utils/constants.js | 8 + src/utils/index.js | 8 +- .../attach/components/AttachEditDialog.vue | 142 ++++++++ src/views/bst/attach/index.vue | 288 ++++++++++++++++ .../components/AttachClassifyEditDialog.vue | 135 ++++++++ .../components/AttachClassifyTree.vue | 149 +++++++++ src/views/bst/attachClassify/index.vue | 238 ++++++++++++++ src/views/bst/customer/view/index.vue | 10 +- .../bst/index/components/NoticePanel.vue | 311 ++++++++++++++++++ .../bst/index/components/ProjectListPanel.vue | 3 +- src/views/bst/index/index.vue | 9 +- src/views/bst/notice/index.vue | 6 +- src/views/bst/project/index.vue | 31 +- src/views/bst/project/view/index.vue | 2 +- src/views/dashboard/NoticeBoard.vue | 169 ---------- 22 files changed, 1654 insertions(+), 205 deletions(-) create mode 100644 src/api/bst/attach.js create mode 100644 src/api/bst/attachClassify.js create mode 100644 src/components/Business/AttachClassify/AttachClassifySelect.vue create mode 100644 src/views/bst/attach/components/AttachEditDialog.vue create mode 100644 src/views/bst/attach/index.vue create mode 100644 src/views/bst/attachClassify/components/AttachClassifyEditDialog.vue create mode 100644 src/views/bst/attachClassify/components/AttachClassifyTree.vue create mode 100644 src/views/bst/attachClassify/index.vue create mode 100644 src/views/bst/index/components/NoticePanel.vue delete mode 100644 src/views/dashboard/NoticeBoard.vue diff --git a/src/api/bst/attach.js b/src/api/bst/attach.js new file mode 100644 index 0000000..96d4cae --- /dev/null +++ b/src/api/bst/attach.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询资源列表 +export function listAttach(query) { + return request({ + url: '/bst/attach/list', + method: 'get', + params: query + }) +} + +// 查询资源详细 +export function getAttach(id) { + return request({ + url: '/bst/attach/' + id, + method: 'get' + }) +} + +// 新增资源 +export function addAttach(data) { + return request({ + url: '/bst/attach', + method: 'post', + data: data + }) +} + +// 修改资源 +export function updateAttach(data) { + return request({ + url: '/bst/attach', + method: 'put', + data: data + }) +} + +// 删除资源 +export function delAttach(id) { + return request({ + url: '/bst/attach/' + id, + method: 'delete' + }) +} diff --git a/src/api/bst/attachClassify.js b/src/api/bst/attachClassify.js new file mode 100644 index 0000000..0c0b865 --- /dev/null +++ b/src/api/bst/attachClassify.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +// 查询资源分类列表 +export function listAttachClassify(query) { + return request({ + url: '/bst/attachClassify/list', + method: 'get', + params: query + }) +} + +// 查询资源分类详细 +export function getAttachClassify(id) { + return request({ + url: '/bst/attachClassify/' + id, + method: 'get' + }) +} + +// 新增资源分类 +export function addAttachClassify(data) { + return request({ + url: '/bst/attachClassify', + method: 'post', + data: data + }) +} + +// 修改资源分类 +export function updateAttachClassify(data) { + return request({ + url: '/bst/attachClassify', + method: 'put', + data: data + }) +} + +// 删除资源分类 +export function delAttachClassify(id) { + return request({ + url: '/bst/attachClassify/' + id, + method: 'delete' + }) +} + +// 查询所有分类 +export function listAttachClassifyAll() { + return request({ + url: '/bst/attachClassify/listAll', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/components/AttachCard/index.vue b/src/components/AttachCard/index.vue index ce26c46..8d32e5e 100644 --- a/src/components/AttachCard/index.vue +++ b/src/components/AttachCard/index.vue @@ -46,6 +46,12 @@ + + +