From 7775f4c3fcb42d5f69174627798b92073313957c Mon Sep 17 00:00:00 2001 From: hepp <854778157@qq.com> Date: Mon, 5 Aug 2024 18:22:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E7=AE=A1=E7=90=86=E3=80=81?= =?UTF-8?q?=E6=8A=80=E6=9C=AF=E4=BA=A4=E6=B5=81=E5=B9=B3=E5=8F=B0=E3=80=81?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=88=86=E6=9E=90=E3=80=81=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E9=9D=99=E6=80=81=E9=A1=B5=E9=9D=A2=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 22 ++ src/api/message/message.js | 45 ++++ src/views/dashboard/PieChart.vue | 2 +- src/views/interchange/index.vue | 386 +++++++++++++++++++++++++++ src/views/interchange/toolDetail.vue | 173 ++++++++++++ src/views/message/index.vue | 201 ++++++++++++++ src/views/statistic/PieChart.vue | 102 +++++++ src/views/statistic/index.vue | 90 +++++-- src/views/tool/AddDoc.vue | 58 ++++ src/views/tool/index.vue | 296 +++++++++++++------- src/views/tool/toolDetail.vue | 15 +- 11 files changed, 1260 insertions(+), 130 deletions(-) create mode 100644 .gitignore create mode 100644 src/api/message/message.js create mode 100644 src/views/interchange/index.vue create mode 100644 src/views/interchange/toolDetail.vue create mode 100644 src/views/message/index.vue create mode 100644 src/views/statistic/PieChart.vue create mode 100644 src/views/tool/AddDoc.vue diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f8602b --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +.DS_Store +node_modules +/dist + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw* +package-lock.json diff --git a/src/api/message/message.js b/src/api/message/message.js new file mode 100644 index 0000000..bda0394 --- /dev/null +++ b/src/api/message/message.js @@ -0,0 +1,45 @@ +import request from '@/utils/request' + +/** + * 查询消息列表 + * @returns + */ +export function getMessageList(params) { + return Promise.resolve({ + total: 5, + rows: [ + { id: 1, msgContent: '测试1111', msgRecTime: '2024-08-05 12:31:59', msgStatus: 'unread' }, + { id: 2, msgContent: '测试2222', msgRecTime: '2024-08-05 13:32:01', msgStatus: 'readed' }, + { id: 3, msgContent: '测试333', msgRecTime: '2024-08-05 14:09:07', msgStatus: 'unread' }, + { id: 4, msgContent: '测试4444', msgRecTime: '2024-08-05 15:37:10', msgStatus: 'readed' }, + { id: 5, msgContent: '测试5555', msgRecTime: '2024-08-05 17:29:39', msgStatus: 'unread' } + ], + code: 200, + msg: '操作成功' + }) +} + +/** + * 标记所有已读 + * @returns + */ +export function markAllRead() { + return Promise.resolve({ + result: {}, + code: 200, + msg: '操作成功' + }) +} + +/** + * 根据id标记单个已读 + * @returns + */ +export function markReadById(id) { + return Promise.resolve({ + result: {}, + code: 200, + msg: '操作成功' + }) +} + diff --git a/src/views/dashboard/PieChart.vue b/src/views/dashboard/PieChart.vue index 63f0d84..d47441f 100644 --- a/src/views/dashboard/PieChart.vue +++ b/src/views/dashboard/PieChart.vue @@ -60,7 +60,7 @@ export default { type: 'pie', roseType: 'radius', radius: [15, 95], - center: ['50%', '38%'], + center: ['50%', '50%'], data: [ { value: 320, name: 'Industries' }, { value: 240, name: 'Technology' }, diff --git a/src/views/interchange/index.vue b/src/views/interchange/index.vue new file mode 100644 index 0000000..f4a5c87 --- /dev/null +++ b/src/views/interchange/index.vue @@ -0,0 +1,386 @@ + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + 正常 + 禁用 + + + + + {{ parseTime(scope.row.createTime) }} + + + + + 详情 + + + + + + + + + + + + 工具名称 + + + + + + + + + + diff --git a/src/views/interchange/toolDetail.vue b/src/views/interchange/toolDetail.vue new file mode 100644 index 0000000..d8bd5a8 --- /dev/null +++ b/src/views/interchange/toolDetail.vue @@ -0,0 +1,173 @@ + + + + + 基本信息 + + + + + 工具名称2 + 网络工具 + 单位自建 + 赵宁宇 + 人力资源部/员工关系组 + 启用中 + 主要用于单位网络使用 + 运行良好,可正常使用 + 单位网络使用 + 网络正常 + 正常开启即可用 + 工具使用完成后,请做好保养工作。 + + + + + + + 评论 + + + + 发布 + + + + 张 + + 张鑫辉05/01 12:00 + 这个工具可以! + 回复 + + + 取消发布 + + + + + 钱 + + 钱多多05/01 12:00 + 好用! + 回复 + + 赵 + + 赵宇05/01 12:00 + 希望再选代一下,还有待完善的地方。 + 回复 + + + + 李 + + 李志05/01 12:00 + 很好的解决了我的问题,感谢! + 回复 + + + + + + 赵 + + 赵宇05/01 12:00 + 希望再选代一下,还有待完善的地方。 + 回复 + + + + 李 + + 李志05/01 12:00 + 很好的解决了我的问题,感谢! + 回复 + + + + + + + + + + diff --git a/src/views/message/index.vue b/src/views/message/index.vue new file mode 100644 index 0000000..a2ea3a3 --- /dev/null +++ b/src/views/message/index.vue @@ -0,0 +1,201 @@ + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + 全部标记已读 + + + + + + + + + {{ dict.label }} + + + + + + 标记已读 + + + + + + + + + + + diff --git a/src/views/statistic/PieChart.vue b/src/views/statistic/PieChart.vue new file mode 100644 index 0000000..b27039b --- /dev/null +++ b/src/views/statistic/PieChart.vue @@ -0,0 +1,102 @@ + + + + + diff --git a/src/views/statistic/index.vue b/src/views/statistic/index.vue index 79b7635..099f4fa 100644 --- a/src/views/statistic/index.vue +++ b/src/views/statistic/index.vue @@ -8,13 +8,33 @@ 工具类别统计 - + + + + - 工具使用情况 - + 工具状态统计 + + + + @@ -22,13 +42,24 @@ - 工具归属单位分布情况 - + 工具来源统计 + + + - + + + - 近一年工具使用数量统计 + 工具下载 @@ -77,19 +108,42 @@ diff --git a/src/views/tool/toolDetail.vue b/src/views/tool/toolDetail.vue index f918f95..28445ce 100644 --- a/src/views/tool/toolDetail.vue +++ b/src/views/tool/toolDetail.vue @@ -123,25 +123,19 @@ - - - - - - + +