From 40727cedbafb375cd72ff7cba3fd8d29beade2ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Thu, 8 Jun 2023 17:19:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=89=8B=E6=9C=BA=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/views/phoneView/myCollection.vue | 12 +++- jero-web/src/views/phoneView/mySubscribe.vue | 11 ++- .../src/views/phoneView/recentBrowsing.vue | 69 +++++++++++++++++-- jero-web/src/views/phoneView/search.vue | 2 +- jero-web/src/views/phoneView/searchList.vue | 13 +++- 5 files changed, 96 insertions(+), 11 deletions(-) diff --git a/jero-web/src/views/phoneView/myCollection.vue b/jero-web/src/views/phoneView/myCollection.vue index fccacd66d..7360ff52e 100644 --- a/jero-web/src/views/phoneView/myCollection.vue +++ b/jero-web/src/views/phoneView/myCollection.vue @@ -172,9 +172,16 @@ } }) }, - - + recentBrowseAdd(browseType, id) { + let query = { + browseType: browseType, + browseDataId: id + } + postAction('/phone/recentBrowse/add', query).then((res) => { + }) + }, collectionClick(item) { + this.recentBrowseAdd('Document Library', item.documentId) this.$router.push({ path: '/phoneDocumentDetails', query: { @@ -183,6 +190,7 @@ }) }, problemKnowledgeBaseClick(item) { + this.recentBrowseAdd('Knowledge sharing', item.id) this.$router.push({ path: '/phoneProblemKnowledgeBase', query: { diff --git a/jero-web/src/views/phoneView/mySubscribe.vue b/jero-web/src/views/phoneView/mySubscribe.vue index 485227ab6..8a694d09c 100644 --- a/jero-web/src/views/phoneView/mySubscribe.vue +++ b/jero-web/src/views/phoneView/mySubscribe.vue @@ -88,14 +88,23 @@ } }) }, + recentBrowseAdd(browseType, id) { + let query = { + browseType: browseType, + browseDataId: id + } + postAction('/phone/recentBrowse/add', query).then((res) => { + }) + }, collectionClick(item) { + this.recentBrowseAdd('Document Library', item.documentId) this.$router.push({ path: '/phoneDocumentDetails', query: { id: item.documentId } }) - }, + } } } diff --git a/jero-web/src/views/phoneView/recentBrowsing.vue b/jero-web/src/views/phoneView/recentBrowsing.vue index 1dee741f1..30fe64857 100644 --- a/jero-web/src/views/phoneView/recentBrowsing.vue +++ b/jero-web/src/views/phoneView/recentBrowsing.vue @@ -8,18 +8,19 @@