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 @@
+
+ 播放 {{item.roomInfo.groupName}} {{parseTime(item.finalChatContext.msgtime)}} {{item.finalChatContext.text.content}} 播放 {{item.receiveWeCustomer.name}} {{parseTime(item.finalChatContext.msgtime)}} {{item.finalChatContext.text.content}}
+
+
+
+
+
+
+
+
+
+