bhd-components 0.5.6 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/5764783e.esm.es5.production.js +468 -0
  2. package/dist/f2b01b9c.esm.es5.development.js +167840 -0
  3. package/dist/index.esm.es5.development.css +8467 -0
  4. package/dist/index.esm.es5.development.js +5835 -0
  5. package/dist/index.esm.es5.production.css +1 -0
  6. package/dist/index.esm.es5.production.js +1 -0
  7. package/dist/vendor.esm.es5.development.esm.es5.development.css +117 -0
  8. package/dist/vendor.esm.es5.production.esm.es5.production.css +9 -0
  9. package/es2017/customerService/contactsList/index.d.ts +14 -0
  10. package/es2017/customerService/contactsList/index.js +316 -0
  11. package/es2017/customerService/contactsList/index.module.less +206 -0
  12. package/es2017/customerService/function.d.ts +17 -0
  13. package/es2017/customerService/function.js +72 -0
  14. package/es2017/customerService/historyFun/index.d.ts +14 -0
  15. package/es2017/customerService/historyFun/index.js +276 -0
  16. package/es2017/customerService/historyFun/index.module.less +223 -0
  17. package/es2017/customerService/images/knowledge_icon.png +0 -0
  18. package/es2017/customerService/images/voice_btn.gif +0 -0
  19. package/es2017/customerService/index.d.ts +16 -0
  20. package/es2017/customerService/index.js +2687 -0
  21. package/es2017/customerService/index.module.less +790 -0
  22. package/es2017/customerService/useMediaRecorder.d.ts +9 -0
  23. package/es2017/customerService/useMediaRecorder.js +78 -0
  24. package/es2017/customerService/voice_btn.gif +0 -0
  25. package/es2017/icons/components/custom-ai_icon.d.ts +4 -0
  26. package/es2017/icons/components/custom-ai_icon.js +58 -0
  27. package/es2017/icons/components/custom-contacts.d.ts +4 -0
  28. package/es2017/icons/components/custom-contacts.js +29 -0
  29. package/es2017/icons/components/custom-copy.d.ts +4 -0
  30. package/es2017/icons/components/custom-copy.js +36 -0
  31. package/es2017/icons/components/custom-dislike.d.ts +4 -0
  32. package/es2017/icons/components/custom-dislike.js +22 -0
  33. package/es2017/icons/components/custom-duihao.d.ts +4 -0
  34. package/es2017/icons/components/custom-duihao.js +22 -0
  35. package/es2017/icons/components/custom-exit_full_screen.d.ts +4 -0
  36. package/es2017/icons/components/custom-exit_full_screen.js +26 -0
  37. package/es2017/icons/components/custom-full_screen.d.ts +4 -0
  38. package/es2017/icons/components/custom-full_screen.js +22 -0
  39. package/es2017/icons/components/custom-like.d.ts +4 -0
  40. package/es2017/icons/components/custom-like.js +22 -0
  41. package/es2017/icons/components/custom-quote.d.ts +4 -0
  42. package/es2017/icons/components/custom-quote.js +31 -0
  43. package/es2017/icons/components/custom-record.d.ts +4 -0
  44. package/es2017/icons/components/custom-record.js +37 -0
  45. package/es2017/icons/components/custom-reloading.d.ts +4 -0
  46. package/es2017/icons/components/custom-reloading.js +26 -0
  47. package/es2017/icons/components/custom-retract.d.ts +4 -0
  48. package/es2017/icons/components/custom-retract.js +27 -0
  49. package/es2017/icons/components/custom-round_close.d.ts +4 -0
  50. package/es2017/icons/components/custom-round_close.js +24 -0
  51. package/es2017/icons/components/custom-sending.d.ts +4 -0
  52. package/es2017/icons/components/custom-sending.js +22 -0
  53. package/es2017/icons/components/custom-sound_recording.d.ts +4 -0
  54. package/es2017/icons/components/custom-sound_recording.js +22 -0
  55. package/es2017/icons/components/index.d.ts +15 -0
  56. package/es2017/icons/components/index.js +15 -0
  57. package/es2017/index.d.ts +1 -0
  58. package/es2017/index.js +1 -0
  59. package/esm/customerService/contactsList/index.d.ts +14 -0
  60. package/esm/customerService/contactsList/index.js +333 -0
  61. package/esm/customerService/contactsList/index.module.less +206 -0
  62. package/esm/customerService/function.d.ts +17 -0
  63. package/esm/customerService/function.js +74 -0
  64. package/esm/customerService/historyFun/index.d.ts +14 -0
  65. package/esm/customerService/historyFun/index.js +289 -0
  66. package/esm/customerService/historyFun/index.module.less +223 -0
  67. package/esm/customerService/images/knowledge_icon.png +0 -0
  68. package/esm/customerService/images/voice_btn.gif +0 -0
  69. package/esm/customerService/index.d.ts +16 -0
  70. package/esm/customerService/index.js +2793 -0
  71. package/esm/customerService/index.module.less +790 -0
  72. package/esm/customerService/useMediaRecorder.d.ts +9 -0
  73. package/esm/customerService/useMediaRecorder.js +121 -0
  74. package/esm/customerService/voice_btn.gif +0 -0
  75. package/esm/icons/components/custom-ai_icon.d.ts +4 -0
  76. package/esm/icons/components/custom-ai_icon.js +60 -0
  77. package/esm/icons/components/custom-contacts.d.ts +4 -0
  78. package/esm/icons/components/custom-contacts.js +31 -0
  79. package/esm/icons/components/custom-copy.d.ts +4 -0
  80. package/esm/icons/components/custom-copy.js +38 -0
  81. package/esm/icons/components/custom-dislike.d.ts +4 -0
  82. package/esm/icons/components/custom-dislike.js +24 -0
  83. package/esm/icons/components/custom-duihao.d.ts +4 -0
  84. package/esm/icons/components/custom-duihao.js +24 -0
  85. package/esm/icons/components/custom-exit_full_screen.d.ts +4 -0
  86. package/esm/icons/components/custom-exit_full_screen.js +28 -0
  87. package/esm/icons/components/custom-full_screen.d.ts +4 -0
  88. package/esm/icons/components/custom-full_screen.js +24 -0
  89. package/esm/icons/components/custom-like.d.ts +4 -0
  90. package/esm/icons/components/custom-like.js +24 -0
  91. package/esm/icons/components/custom-quote.d.ts +4 -0
  92. package/esm/icons/components/custom-quote.js +33 -0
  93. package/esm/icons/components/custom-record.d.ts +4 -0
  94. package/esm/icons/components/custom-record.js +39 -0
  95. package/esm/icons/components/custom-reloading.d.ts +4 -0
  96. package/esm/icons/components/custom-reloading.js +28 -0
  97. package/esm/icons/components/custom-retract.d.ts +4 -0
  98. package/esm/icons/components/custom-retract.js +29 -0
  99. package/esm/icons/components/custom-round_close.d.ts +4 -0
  100. package/esm/icons/components/custom-round_close.js +26 -0
  101. package/esm/icons/components/custom-sending.d.ts +4 -0
  102. package/esm/icons/components/custom-sending.js +24 -0
  103. package/esm/icons/components/custom-sound_recording.d.ts +4 -0
  104. package/esm/icons/components/custom-sound_recording.js +24 -0
  105. package/esm/icons/components/index.d.ts +15 -0
  106. package/esm/icons/components/index.js +15 -0
  107. package/esm/index.d.ts +1 -0
  108. package/esm/index.js +1 -0
  109. package/package.json +11 -2
  110. package/dist/1951bd5c.esm.es5.development.js +0 -45417
  111. package/dist/28cd83d3.esm.es5.production.js +0 -256
  112. package/dist/table.esm.es5.development.css +0 -772
  113. package/dist/table.esm.es5.development.js +0 -289
  114. package/dist/table.esm.es5.production.css +0 -1
  115. package/dist/table.esm.es5.production.js +0 -1
@@ -0,0 +1,74 @@
1
+ //消息已读
2
+ var readMessage = function(roomId, urllocation, userData, http) {
3
+ http.patch("".concat(urllocation, "/chat-service/public/v1.0/history-messages:read"), {
4
+ roomId: roomId
5
+ }, {
6
+ headers: {
7
+ "x-module-id": userData.modules.find(function(ele) {
8
+ return ele.short == "IntelligentCustomerService";
9
+ }).id,
10
+ "x-auth-jwt": window.localStorage.getItem("usertoken") || ""
11
+ }
12
+ });
13
+ };
14
+ var getByteLen = function(val) {
15
+ var len = 0;
16
+ for(var i = 0; i < val.length; i++){
17
+ var a = val.charAt(i);
18
+ if (a.match(/[^\x00-\xff]/gi) != null) {
19
+ //\x00-\xff→GBK双字节编码范围
20
+ len += 2;
21
+ } else {
22
+ len += 1;
23
+ }
24
+ }
25
+ return len;
26
+ };
27
+ //当前服务url
28
+ var serverUrl = function() {
29
+ var hashName = "";
30
+ window.location.hash.replace(/#\/(.[^/?]+)([?/].)*/, function($1, $2) {
31
+ hashName = $2;
32
+ });
33
+ return hashName;
34
+ };
35
+ //复制内容
36
+ var copyText = function(text) {
37
+ // text是复制文本
38
+ // 创建input元素
39
+ var el = document.createElement("input");
40
+ // 给input元素赋值需要复制的文本
41
+ el.setAttribute("value", text);
42
+ // 将input元素插入页面
43
+ document.body.appendChild(el);
44
+ // 选中input元素的文本
45
+ el.select();
46
+ // 复制内容到剪贴板
47
+ document.execCommand("copy");
48
+ // 删除input元素
49
+ document.body.removeChild(el);
50
+ return true;
51
+ };
52
+ //获取当前时间
53
+ var getDataTime = function(time) {
54
+ try {
55
+ var now;
56
+ if (time != undefined && time != -1) {
57
+ now = new Date(time);
58
+ } else {
59
+ now = new Date();
60
+ }
61
+ // const now = new Date();
62
+ var year = now.getFullYear();
63
+ var month = String(now.getMonth() + 1).padStart(2, "0");
64
+ var day = String(now.getDate()).padStart(2, "0");
65
+ var hours = String(now.getHours()).padStart(2, "0");
66
+ var minutes = String(now.getMinutes()).padStart(2, "0");
67
+ var seconds = String(now.getSeconds()).padStart(2, "0");
68
+ var currentDateTime = "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hours, ":").concat(minutes, ":").concat(seconds);
69
+ return currentDateTime;
70
+ } catch (error) {
71
+ return "";
72
+ }
73
+ };
74
+ export { readMessage, getByteLen, serverUrl, copyText, getDataTime };
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import "highlight.js/styles/default.css";
3
+ interface data {
4
+ type: number;
5
+ roomId: String | number;
6
+ userData: any;
7
+ http: any;
8
+ urllocation: String;
9
+ onClose: any;
10
+ loadSpecifiedData: any;
11
+ roomList: any;
12
+ }
13
+ declare const HistoryFun: (props: data) => JSX.Element;
14
+ export default HistoryFun;
@@ -0,0 +1,289 @@
1
+ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
+ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
+ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "@ice/jsx-runtime/jsx-runtime";
5
+ import React, { useEffect, useState, useRef } from "react";
6
+ import styles from "./index.module.less";
7
+ import "highlight.js/styles/default.css";
8
+ import { Input } from "antd";
9
+ import { CustomClose } from "../../icons/index";
10
+ import { SearchOutlined } from "@ant-design/icons";
11
+ import { getDataTime } from "../function"; //录音使用文件
12
+ var HistoryFun = function(props) {
13
+ var type = props.type, roomId = props.roomId, userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, loadSpecifiedData = props.loadSpecifiedData, roomList = props.roomList;
14
+ var _useState = _sliced_to_array(useState(""), 2), keyWordProblem = _useState[0], setKeyWordProblem = _useState[1]; //搜索内容
15
+ var _useState1 = _sliced_to_array(useState([]), 2), keyHistoryMessageList = _useState1[0], setKeyHistoryMessageList = _useState1[1]; //搜索的历史记录
16
+ var _useState2 = _sliced_to_array(useState([]), 2), userNameObj = _useState2[0], setUserNameObj = _useState2[1]; //根据用户id,存储一些用户名
17
+ var _useState3 = _sliced_to_array(useState(1), 2), showLoadingState = _useState3[0], setShowLoadingState = _useState3[1]; //1,初始状态,2、无数据 ,3、不显示图片
18
+ var _useState4 = _sliced_to_array(useState(false), 2), load = _useState4[0], setLoad = _useState4[1];
19
+ var timer = useRef(null); //文本框输入时
20
+ var objName = useRef([]);
21
+ useEffect(function() {
22
+ setKeyHistoryMessageList(function(list) {
23
+ console.log(objName, 4444455555);
24
+ var newList = list.map(function(item) {
25
+ var name = "";
26
+ var nameList = objName.current.filter(function(a) {
27
+ return a.id == item.receiver;
28
+ });
29
+ if (nameList.length > 0) {
30
+ name = nameList[0].name;
31
+ }
32
+ console.log(name, 77777);
33
+ return _object_spread_props(_object_spread({}, item), {
34
+ name: name
35
+ });
36
+ });
37
+ console.log(newList, 4444444444);
38
+ return newList;
39
+ });
40
+ }, [
41
+ load
42
+ ]);
43
+ //获取搜索中的历史消息记录
44
+ var getKeyHistoryMessage = function(keyWordProblem) {
45
+ if (roomId == "") return;
46
+ return http.get("".concat(urllocation, "/chat-service/public/v1.0/history-messages"), {
47
+ params: {
48
+ roomId: "",
49
+ message: keyWordProblem,
50
+ page: 1,
51
+ maxPageSize: 300,
52
+ direction: "desc"
53
+ },
54
+ headers: {
55
+ "x-module-id": userData.modules.find(function(ele) {
56
+ return ele.short == "IntelligentCustomerService";
57
+ }).id,
58
+ "x-auth-jwt": window.localStorage.getItem("usertoken") || ""
59
+ }
60
+ }).then(function(res) {
61
+ console.log(res.data, 3434378);
62
+ if (res.data.messages.length > 0) {
63
+ setShowLoadingState(3);
64
+ var dataList = res.data.messages;
65
+ setKeyHistoryMessageList(dataList);
66
+ getUserName(dataList);
67
+ } else {
68
+ // setKeyHistoryMessageList([]);
69
+ setShowLoadingState(2);
70
+ }
71
+ }).catch(function(res) {});
72
+ };
73
+ //获取全部数据
74
+ var allData = function(roomId) {
75
+ if (roomId == "") return;
76
+ return http.get("".concat(urllocation, "/chat-service/public/v1.0/history-messages"), {
77
+ params: {
78
+ roomId: roomId,
79
+ page: 1,
80
+ maxPageSize: 9999999
81
+ },
82
+ headers: {
83
+ "x-module-id": userData.modules.find(function(ele) {
84
+ return ele.short == "IntelligentCustomerService";
85
+ }).id,
86
+ "x-auth-jwt": window.localStorage.getItem("usertoken") || ""
87
+ }
88
+ });
89
+ };
90
+ var findPageNumber = function(perPage, totalPages, targetPosition) {
91
+ var pageNumber = Math.ceil(targetPosition / perPage);
92
+ if (pageNumber > totalPages) {
93
+ return -1; // 数据不存在于给定的页数范围内
94
+ }
95
+ return pageNumber;
96
+ };
97
+ //根据index,计算历史数据在第几页
98
+ var calculationData = function(roomId, index, id, sender) {
99
+ allData(roomId).then(function(res) {
100
+ // console.log(res.data.messages,'11111111')
101
+ if (res.data) {
102
+ var total = res.data.total;
103
+ var dataList = res.data.messages.reverse();
104
+ // console.log(dataList,'sldkcmsdklc');
105
+ var number;
106
+ dataList.map(function(item, index) {
107
+ if (item.id == id) {
108
+ number = index;
109
+ }
110
+ });
111
+ var pageNumber = findPageNumber(30, Math.ceil(total / 30), number);
112
+ console.log(roomId, pageNumber, id, "第几页第几页第几页第几页第几页第几页");
113
+ loadSpecifiedData(roomId, pageNumber, id, receiver);
114
+ onClose();
115
+ setKeyWordProblem("");
116
+ setKeyHistoryMessageList([]);
117
+ }
118
+ });
119
+ };
120
+ var getUserName = function(dataList) {
121
+ try {
122
+ // let objName: { id: string; name: String; }[] = [];//[{id:'用户id',name:'用户名字‘}]
123
+ var obj = [];
124
+ //去重
125
+ var res = new Map();
126
+ var filterList = dataList.filter(function(a) {
127
+ return !res.has(a.receiver) && res.set(a.receiver, 1);
128
+ });
129
+ filterList = filterList.filter(function(item) {
130
+ return item.receiver != userData.mid && item.receiver != "AI";
131
+ });
132
+ console.log(filterList, "wefwekfjwef");
133
+ filterList.map(function(item) {
134
+ userName(item.receiver).then(function(res) {
135
+ if (res.data) {
136
+ obj.push({
137
+ id: item.receiver,
138
+ name: res.data.name
139
+ });
140
+ console.log(objName, "kdfvdfdfvjkdfnv");
141
+ if (obj.length == filterList.length) {
142
+ objName.current = obj;
143
+ setLoad(true);
144
+ }
145
+ }
146
+ });
147
+ });
148
+ } catch (error) {}
149
+ };
150
+ var userName = function(uid) {
151
+ return http.get("".concat(urllocation, "/chat-service/public/v1.0/userinfo"), {
152
+ params: {
153
+ uid: uid
154
+ },
155
+ headers: {
156
+ "x-module-id": userData.modules.find(function(ele) {
157
+ return ele.short == "TeacherAnswer";
158
+ }).id,
159
+ "x-auth-jwt": window.localStorage.getItem("usertoken") || ""
160
+ }
161
+ });
162
+ };
163
+ return /*#__PURE__*/ _jsx("div", {
164
+ className: "".concat(styles.history_list, " ").concat(type == 2 ? styles.history_list_broadside : "", " "),
165
+ children: /*#__PURE__*/ _jsxs("div", {
166
+ className: styles.search_layout,
167
+ children: [
168
+ /*#__PURE__*/ _jsxs("div", {
169
+ className: styles.title,
170
+ children: [
171
+ /*#__PURE__*/ _jsx("span", {
172
+ children: "历史记录"
173
+ }),
174
+ /*#__PURE__*/ _jsx("span", {
175
+ onClick: function() {
176
+ onClose();
177
+ },
178
+ children: /*#__PURE__*/ _jsx(CustomClose, {})
179
+ })
180
+ ]
181
+ }),
182
+ /*#__PURE__*/ _jsxs("div", {
183
+ className: styles.search_top,
184
+ children: [
185
+ /*#__PURE__*/ _jsx(SearchOutlined, {}),
186
+ /*#__PURE__*/ _jsx(Input, {
187
+ placeholder: "请输入您要搜索的内容",
188
+ value: keyWordProblem,
189
+ onChange: function(e) {
190
+ var val = String(e.target.value);
191
+ setKeyWordProblem(val);
192
+ clearTimeout(timer.current);
193
+ timer.current = setTimeout(function() {
194
+ if (val != "") {
195
+ getKeyHistoryMessage(val);
196
+ } else {
197
+ setShowLoadingState(1);
198
+ setKeyHistoryMessageList([]);
199
+ setLoad(false);
200
+ }
201
+ }, 1000);
202
+ }
203
+ }),
204
+ /*#__PURE__*/ _jsx("i", {
205
+ className: "guanbi_Close",
206
+ onClick: function() {
207
+ setShowLoadingState(1);
208
+ setKeyWordProblem("");
209
+ setKeyHistoryMessageList([]);
210
+ setLoad(false);
211
+ },
212
+ children: /*#__PURE__*/ _jsx(CustomClose, {})
213
+ })
214
+ ]
215
+ }),
216
+ /*#__PURE__*/ _jsxs("div", {
217
+ className: styles.main_list,
218
+ children: [
219
+ showLoadingState == 1 && /*#__PURE__*/ _jsxs("div", {
220
+ className: styles.no_data,
221
+ children: [
222
+ /*#__PURE__*/ _jsx("img", {
223
+ src: "/new_yun/images/aiService/search_for_icon.png"
224
+ }),
225
+ /*#__PURE__*/ _jsx("p", {
226
+ children: "输入关键词,搜索聊天记录"
227
+ })
228
+ ]
229
+ }),
230
+ showLoadingState == 2 && /*#__PURE__*/ _jsxs("div", {
231
+ className: styles.no_data,
232
+ children: [
233
+ /*#__PURE__*/ _jsx("img", {
234
+ src: "/new_yun/images/aiService/no_data.png"
235
+ }),
236
+ /*#__PURE__*/ _jsx("p", {
237
+ children: "暂无记录"
238
+ })
239
+ ]
240
+ }),
241
+ keyHistoryMessageList.map(function(item, index) {
242
+ var span = item.message.replaceAll(keyWordProblem, function() {
243
+ return "<span class=".concat(styles.sign, ">").concat(keyWordProblem, "</span>");
244
+ });
245
+ var name = "";
246
+ if (item.receiver == userData.mid) {
247
+ name = userData.real_name;
248
+ } else if (item.receiver == "AI") {
249
+ name = "AI助手";
250
+ if (item.extraInfo != null) {
251
+ name = "智能客服";
252
+ }
253
+ } else {
254
+ name = item.name;
255
+ }
256
+ return /*#__PURE__*/ _jsxs("div", {
257
+ className: styles.list,
258
+ onClick: function() {
259
+ calculationData(item.roomId, item.messageIdWithinRoom, item.id, item.receiver);
260
+ },
261
+ children: [
262
+ /*#__PURE__*/ _jsxs("div", {
263
+ className: styles.name,
264
+ children: [
265
+ /*#__PURE__*/ _jsx("p", {
266
+ children: name
267
+ }),
268
+ /*#__PURE__*/ _jsx("span", {
269
+ className: styles.time,
270
+ children: getDataTime(item.updatedAt)
271
+ })
272
+ ]
273
+ }),
274
+ /*#__PURE__*/ _jsx("div", {
275
+ className: styles.con,
276
+ dangerouslySetInnerHTML: {
277
+ __html: span
278
+ }
279
+ })
280
+ ]
281
+ }, item.id);
282
+ })
283
+ ]
284
+ })
285
+ ]
286
+ })
287
+ });
288
+ };
289
+ export default HistoryFun;
@@ -0,0 +1,223 @@
1
+ @import "../../theme/variable.less";
2
+ // @color-text-primary: @color-background-info-base;
3
+
4
+ //历史记录11
5
+ .history_list {
6
+ position: absolute;
7
+ top: 0;
8
+ background: rgba(0, 0, 0, 0.3);
9
+ width: 100%;
10
+ height: 100%;
11
+ overflow: hidden;
12
+
13
+ .search_layout {
14
+ background: #fff;
15
+ position: absolute;
16
+ bottom: -500px;
17
+ width: 100%;
18
+ border-radius: 16px 16px 0px 0px;
19
+ overflow: hidden;
20
+ animation: mymove 1s forwards;
21
+ box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
22
+
23
+ .title {
24
+ border-bottom: 1px solid @color-border-Tr;
25
+ font-size: 16px;
26
+ font-weight: 600;
27
+ line-height: 150%;
28
+ padding: 16px 24px;
29
+ display: flex;
30
+ justify-content: space-between;
31
+ svg {
32
+ font-size: 12px;
33
+ cursor: pointer;
34
+ opacity: 0.65;
35
+ font-weight: 300;
36
+ }
37
+ }
38
+ .search_top {
39
+ position: relative;
40
+ margin: 16px 24px;
41
+ // margin-bottom: 0;
42
+ // display: flex;
43
+ // align-items: center;
44
+ // justify-content: space-between;
45
+ background-color: #fff;
46
+
47
+ input {
48
+ width: 100%;
49
+ height: 40px;
50
+ line-height: 40px;
51
+ border-radius: 2px;
52
+ border: 1px solid @color-border-secondary;
53
+ padding-left: 46px;
54
+ padding-right: 30px;
55
+ color: @color-text-Tr;
56
+ }
57
+ :global {
58
+ .anticon {
59
+ position: absolute;
60
+ top: 11px;
61
+ z-index: 1;
62
+ left: 14px;
63
+ font-size: 16px;
64
+ color: rgba(0, 0, 0, 0.65);
65
+ }
66
+ .guanbi_Close {
67
+ position: absolute;
68
+ top: 3px;
69
+ right: 38px;
70
+ font-size: 16px;
71
+ z-index: 1;
72
+ color: rgba(0, 0, 0, 0.65);
73
+ cursor: pointer;
74
+ svg {
75
+ font-size: 10px;
76
+ opacity: 0.65;
77
+ }
78
+ }
79
+ }
80
+ svg {
81
+ opacity: 0.65;
82
+ font-weight: 300;
83
+ }
84
+ }
85
+ .main_list:first-child {
86
+ margin-top: 0;
87
+ }
88
+ .main_list {
89
+ overflow: auto;
90
+ height: 510px;
91
+ &::-webkit-scrollbar {
92
+ background-color: #eaedf1;
93
+ background-color: transparent;
94
+ width: 4px;
95
+ height: 4px;
96
+ }
97
+ &::-webkit-scrollbar-thumb {
98
+ border-radius: 4px;
99
+ background-color: rgba(0, 0, 0, 0.25);
100
+ }
101
+ .list {
102
+ margin: 8px 24px;
103
+ padding: 8px;
104
+ // border-bottom: 1px solid @color-border-secondary;
105
+ margin-bottom: 17px;
106
+ position: relative;
107
+ cursor: pointer;
108
+ &:hover {
109
+ background-color: rgba(0, 0, 0, 0.04);
110
+ border-radius: 8px;
111
+ }
112
+ &::before {
113
+ content: "";
114
+ display: inline-block;
115
+ width: 100%;
116
+ height: 1px;
117
+ background-color: @color-border-secondary;
118
+ position: absolute;
119
+ bottom: -9px;
120
+ left: -1px;
121
+ }
122
+ .name {
123
+ display: flex;
124
+ justify-content: space-between;
125
+ align-items: center;
126
+ margin-bottom: 9px;
127
+ p {
128
+ color: @color-text-Tr;
129
+ font-size: 16px;
130
+ font-weight: 600;
131
+ line-height: 1.5;
132
+ }
133
+ .time {
134
+ font-size: 14px;
135
+ color: @color-text-tertiary;
136
+ }
137
+ }
138
+ .con {
139
+ color: @color-text-Tr;
140
+ font-size: 14px;
141
+ font-weight: 400;
142
+ line-height: 150%;
143
+ overflow: hidden;
144
+ text-overflow: ellipsis;
145
+ -webkit-box-orient: vertical;
146
+ -webkit-line-clamp: 2;
147
+ display: -webkit-box;
148
+
149
+ max-height: 40px;
150
+ word-break: break-all;
151
+ span {
152
+ color: @color-text-primary;
153
+ }
154
+ }
155
+ }
156
+ .no_data{
157
+ text-align: center;
158
+ margin-top: 130px;
159
+ img{
160
+ width: 160px;
161
+ }
162
+ p{
163
+ margin-top: 24px;
164
+ color: rgba(0, 0, 0, 0.45);
165
+ text-align: center;
166
+ font-size: 14px;
167
+ line-height: 100%; /* 14px */
168
+ }
169
+ }
170
+ }
171
+ }
172
+ @keyframes mymove {
173
+ from {
174
+ bottom: -500px;
175
+ }
176
+ to {
177
+ bottom: 0;
178
+ }
179
+ }
180
+
181
+ @-webkit-keyframes mymove /*Safari and Chrome*/ {
182
+ from {
183
+ bottom: -500px;
184
+ }
185
+ to {
186
+ bottom: 0;
187
+ }
188
+ }
189
+
190
+ :global {
191
+ .anticon {
192
+ vertical-align: 0;
193
+ }
194
+ }
195
+ }
196
+ //全屏下的历史记录
197
+ .history_list_broadside {
198
+ width: 417px;
199
+ height: calc(100% - 48px);
200
+ right: 0;
201
+ top: 48px;
202
+ border-radius: 0;
203
+ background: transparent;
204
+ overflow: visible;
205
+ .search_layout {
206
+ height: 100%;
207
+ border-radius: 0;
208
+ box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
209
+ .search_top{
210
+ margin: 16px;
211
+ }
212
+ .title{
213
+ padding: 16px;
214
+ }
215
+ .main_list {
216
+ height: calc(100% - 140px);
217
+ max-height: calc(100% - 140px);
218
+ .list{
219
+ margin: 8px 16px 17px;
220
+ }
221
+ }
222
+ }
223
+ }
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import "highlight.js/styles/default.css";
3
+ interface Service {
4
+ userData: any;
5
+ http?: any;
6
+ urllocation?: string;
7
+ onCancel?: () => {};
8
+ serverName?: string;
9
+ fetchEventSource?: any;
10
+ initShowType?: string | number;
11
+ stepIds: string;
12
+ stepId: string | number;
13
+ onEvent: (a: string, b: string, c: string) => {};
14
+ }
15
+ declare const CustomerService: (props: Service) => JSX.Element;
16
+ export default CustomerService;