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 @@ - - - - - - + +