diff --git a/package.json b/package.json index 2ec416153..fcfbb9fb9 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "path-to-regexp": "2.4.0", "qrcode.vue": "^1.6.2", "qs": "^6.9.3", + "quill-emoji": "^0.1.8", "quill-image-extend-module": "^1.1.2", "recordrtc": "^5.5.9", "script-loader": "^0.7.2", diff --git a/src/api/jmap/map.js b/src/api/jmap/map.js index 7a625330d..e435894cc 100644 --- a/src/api/jmap/map.js +++ b/src/api/jmap/map.js @@ -243,3 +243,11 @@ export function generateAncillaryData(mapId) { method: 'post' }); } +/** 查询历史客流量 */ +export function getPassengerHistoryList(group) { + return request({ + url: `/api/passenger/${group}/history`, + method: 'get' + }); +} + diff --git a/src/api/learn.js b/src/api/learn.js index 92c237b01..738eb18cf 100644 --- a/src/api/learn.js +++ b/src/api/learn.js @@ -1,9 +1,17 @@ import request from '@/utils/request'; -// 分页查询帖子回复 -export function queryPostPaging(postId, params) { +// 根据postId帖子ID分页查询留言列表 +export function queryMessagePagingByPostId(postId, params) { return request({ - url: `/api/learn/${postId}/message/query/paged`, + url: `/api/learn/${postId}/message/pagedQuery/postId`, + method: 'get', + params: params + }); +} +// 根据项目分页查询留言列表 +export function queryMessagePagingByProjectCode(projectCode, params) { + return request({ + url: `/api/learn/${projectCode}/message/pagedQuery/project`, method: 'get', params: params }); @@ -67,3 +75,10 @@ export function deleteCommentBySelf(commentId) { method: 'delete' }); } +// 根据项目获取项目关联的帖子 +export function getPostByProjectCode(projectCode) { + return request({ + url: `/api/learn/${projectCode}/post`, + method: 'get' + }); +} diff --git a/src/components/QuillEditor/index.vue b/src/components/QuillEditor/index.vue index a5913a843..6c1771078 100644 --- a/src/components/QuillEditor/index.vue +++ b/src/components/QuillEditor/index.vue @@ -1,5 +1,5 @@