From 84737aeb227d429166a90b4177b2b093f8e968bc Mon Sep 17 00:00:00 2001 From: qiyeqing <444251443@qq.com> Date: Mon, 11 Jan 2021 17:49:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AF=9D=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linkwe-ui/package.json | 1 + linkwe-ui/src/api/content.js | 37 ++ linkwe-ui/src/utils/common.js | 13 + .../src/views/conversation/component/chat.vue | 152 ++++++++ .../views/conversation/component/curList.vue | 74 ++++ .../views/conversation/component/cusChat.vue | 152 ++++++++ .../src/views/conversation/component/list.vue | 75 ++++ linkwe-ui/src/views/conversation/content.vue | 14 +- .../views/conversation/page/employeeTest.vue | 337 ++++++++++++++---- .../src/views/conversation/page/roleTest.vue | 180 ++++++++-- .../src/views/conversation/page/userTest.vue | 264 +++++++++++--- 11 files changed, 1122 insertions(+), 177 deletions(-) create mode 100644 linkwe-ui/src/api/content.js create mode 100644 linkwe-ui/src/views/conversation/component/chat.vue create mode 100644 linkwe-ui/src/views/conversation/component/curList.vue create mode 100644 linkwe-ui/src/views/conversation/component/cusChat.vue create mode 100644 linkwe-ui/src/views/conversation/component/list.vue diff --git a/linkwe-ui/package.json b/linkwe-ui/package.json index 55f67fd77..f7f8045fd 100644 --- a/linkwe-ui/package.json +++ b/linkwe-ui/package.json @@ -49,6 +49,7 @@ "js-beautify": "1.10.2", "js-cookie": "2.2.0", "jsencrypt": "3.0.0-rc.1", + "moment": "^2.29.1", "normalize.css": "7.0.0", "nprogress": "0.2.0", "path-to-regexp": "2.4.0", diff --git a/linkwe-ui/src/api/content.js b/linkwe-ui/src/api/content.js new file mode 100644 index 000000000..0f41ebad2 --- /dev/null +++ b/linkwe-ui/src/api/content.js @@ -0,0 +1,37 @@ +import request from '@/utils/request' +const getTree=(params)=>{ + return request({ + url:'/chat/mapping/list', + method: 'get', + params, + }) + } + + const chatList=(params)=>{ + return request({ + url:'/wecom/finance/getChatContactList', + method: 'get', + params, + }) + } + const listByCustomer=(params)=>{ + return request({ + url:'/chat/mapping/listByCustomer', + method: 'get', + params, + }) + } + const getChatAllList=(params)=>{ + return request({ + url:'/wecom/finance/getChatAllList', + method: 'get', + params, + }) + } + // + export const content={ + getTree, + chatList, + listByCustomer, + getChatAllList + } \ No newline at end of file diff --git a/linkwe-ui/src/utils/common.js b/linkwe-ui/src/utils/common.js index 17539d3b6..55bfa9bc8 100644 --- a/linkwe-ui/src/utils/common.js +++ b/linkwe-ui/src/utils/common.js @@ -52,6 +52,19 @@ export function resetForm(refName) { } } +//年月日格式 +export function yearMouthDay(data) { + var time = new Date(data); + var year = time.getFullYear(); + var month = time.getMonth()+1; + var date = time.getDate(); + console.log(year+'-'+add0(month)+'-'+add0(date)) + return year+'-'+add0(month)+'-'+add0(date) + +} +function add0(m){return m<10?'0'+m:m } + + // 添加日期范围 export function addDateRange(params, dateRange) { var search = params; diff --git a/linkwe-ui/src/views/conversation/component/chat.vue b/linkwe-ui/src/views/conversation/component/chat.vue new file mode 100644 index 000000000..c1fa74723 --- /dev/null +++ b/linkwe-ui/src/views/conversation/component/chat.vue @@ -0,0 +1,152 @@ + + + + \ No newline at end of file diff --git a/linkwe-ui/src/views/conversation/component/curList.vue b/linkwe-ui/src/views/conversation/component/curList.vue new file mode 100644 index 000000000..91b1d7aa2 --- /dev/null +++ b/linkwe-ui/src/views/conversation/component/curList.vue @@ -0,0 +1,74 @@ + + + \ No newline at end of file diff --git a/linkwe-ui/src/views/conversation/component/cusChat.vue b/linkwe-ui/src/views/conversation/component/cusChat.vue new file mode 100644 index 000000000..c1fa74723 --- /dev/null +++ b/linkwe-ui/src/views/conversation/component/cusChat.vue @@ -0,0 +1,152 @@ + + + + \ No newline at end of file diff --git a/linkwe-ui/src/views/conversation/component/list.vue b/linkwe-ui/src/views/conversation/component/list.vue new file mode 100644 index 000000000..aca6430a7 --- /dev/null +++ b/linkwe-ui/src/views/conversation/component/list.vue @@ -0,0 +1,75 @@ + + + \ No newline at end of file diff --git a/linkwe-ui/src/views/conversation/content.vue b/linkwe-ui/src/views/conversation/content.vue index a242b8636..0ce173107 100644 --- a/linkwe-ui/src/views/conversation/content.vue +++ b/linkwe-ui/src/views/conversation/content.vue @@ -1,17 +1,16 @@ + diff --git a/linkwe-ui/src/views/conversation/page/employeeTest.vue b/linkwe-ui/src/views/conversation/page/employeeTest.vue index c9bedf3f9..4fcf3540f 100644 --- a/linkwe-ui/src/views/conversation/page/employeeTest.vue +++ b/linkwe-ui/src/views/conversation/page/employeeTest.vue @@ -10,8 +10,8 @@
- +
@@ -20,139 +20,176 @@
{{talkName}}
- +
- - 暂无联系人 + +
-
- - 暂无联系人 -
+ +
-
- - 暂无联系人 -
+
+
-
下载会话
+
与{{chat.receiveWeCustomer.name}}的聊天 + 下载会话
- +
- +
+ + +
- +
+ + +
- +
- +
- - + + - + + - + + - + + - + +
- +
- +
- +
- - + +
- - - - - - - - - - + + + + + + + + + +
- \ No newline at end of file diff --git a/linkwe-ui/src/views/conversation/page/roleTest.vue b/linkwe-ui/src/views/conversation/page/roleTest.vue index 47b0098f3..8ac439b0c 100644 --- a/linkwe-ui/src/views/conversation/page/roleTest.vue +++ b/linkwe-ui/src/views/conversation/page/roleTest.vue @@ -3,8 +3,8 @@ - - + + @@ -15,14 +15,16 @@ - - + + + - 查询 + 查询 导出列表 @@ -31,36 +33,64 @@
- + + + - - - + + - - + +
\ No newline at end of file diff --git a/linkwe-ui/src/views/conversation/page/userTest.vue b/linkwe-ui/src/views/conversation/page/userTest.vue index 72f5ed173..a1f85c24c 100644 --- a/linkwe-ui/src/views/conversation/page/userTest.vue +++ b/linkwe-ui/src/views/conversation/page/userTest.vue @@ -11,12 +11,16 @@
@@ -30,78 +34,113 @@
-
+ +
- -
- 暂无联系人 -
+ +
+ +
- -
- 暂无群聊记录 -
+ + +
-
+
+
-
下载会话
+
与{{chatData.finalChatContext.roomInfo.name}} 的聊天 + 下载会话
- - + +
- +
+ + +
- +
+ + +
- +
- +
- - + - + + - + + - + + - + +
- +
- +
- +
- +
\ No newline at end of file -- Gitee