bhd-components 0.7.25 → 0.7.27
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.
- package/README.md +1 -1
- package/dist/{ddbb8964.esm.es5.production.js → 478f80a5.esm.es5.production.js} +1 -1
- package/dist/{ddd8b36f.esm.es5.development.js → f1eff3e0.esm.es5.development.js} +1 -1
- package/dist/index.esm.es5.development.css +508 -497
- package/dist/index.esm.es5.development.js +24 -30
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/es2017/customerService/index.js +11 -10
- package/es2017/customerService/index.module.less +12 -0
- package/es2017/customerService/teacherList.js +10 -17
- package/esm/customerService/index.js +11 -10
- package/esm/customerService/index.module.less +12 -0
- package/esm/customerService/teacherList.js +10 -17
- package/package.json +1 -1
|
@@ -1379,11 +1379,12 @@ const CustomerService = (props)=>{
|
|
|
1379
1379
|
maxPageSize: 5
|
|
1380
1380
|
};
|
|
1381
1381
|
} else if (flag == 3) {
|
|
1382
|
+
let { params: { VideoBriefSummaryId } } = config;
|
|
1382
1383
|
data = {
|
|
1383
1384
|
page: 1,
|
|
1384
|
-
maxPageSize:
|
|
1385
|
+
maxPageSize: 4,
|
|
1385
1386
|
question: value,
|
|
1386
|
-
sectionId:
|
|
1387
|
+
sectionId: VideoBriefSummaryId
|
|
1387
1388
|
};
|
|
1388
1389
|
} else if (flag == 4) {
|
|
1389
1390
|
data = {
|
|
@@ -1414,13 +1415,14 @@ const CustomerService = (props)=>{
|
|
|
1414
1415
|
} else {
|
|
1415
1416
|
setQuestionsList(questionList);
|
|
1416
1417
|
}
|
|
1417
|
-
if (questionList.length <
|
|
1418
|
+
if (questionList.length < 4 && flag == 3) {
|
|
1418
1419
|
console.log('视频页面,联想问题小于4个');
|
|
1419
1420
|
//视频页面,联想问题小于4个
|
|
1420
1421
|
http.get(`${urllocation}/chat-service/public/v1.0/knowledge-base/questions`, {
|
|
1421
1422
|
params: {
|
|
1422
1423
|
page: 1,
|
|
1423
|
-
maxPageSize:
|
|
1424
|
+
maxPageSize: 4 - questionList.length,
|
|
1425
|
+
question: value
|
|
1424
1426
|
}
|
|
1425
1427
|
}).then((res)=>{
|
|
1426
1428
|
if (res.data.questions) {
|
|
@@ -2167,8 +2169,7 @@ const CustomerService = (props)=>{
|
|
|
2167
2169
|
},
|
|
2168
2170
|
children: item.message == '抱歉,我暂时无法回答这样的问题。' ? list.question : /*#__PURE__*/ _jsxs(_Fragment, {
|
|
2169
2171
|
children: [
|
|
2170
|
-
index + 1,
|
|
2171
|
-
".",
|
|
2172
|
+
JSON.parse(item.extraInfo).length > 1 ? index + 1 + '.' : '',
|
|
2172
2173
|
list.question
|
|
2173
2174
|
]
|
|
2174
2175
|
})
|
|
@@ -2655,21 +2656,21 @@ const CustomerService = (props)=>{
|
|
|
2655
2656
|
children: [
|
|
2656
2657
|
/*#__PURE__*/ _jsxs("p", {
|
|
2657
2658
|
onClick: ()=>{
|
|
2658
|
-
sendScreenshotData('
|
|
2659
|
+
sendScreenshotData('讲解图片里的知识点;');
|
|
2659
2660
|
},
|
|
2660
2661
|
children: [
|
|
2661
2662
|
/*#__PURE__*/ _jsx(CustomKnowledgeContent, {}),
|
|
2662
|
-
"
|
|
2663
|
+
"讲解图片里的知识点;"
|
|
2663
2664
|
]
|
|
2664
2665
|
}),
|
|
2665
2666
|
/*#__PURE__*/ _jsx("br", {}),
|
|
2666
2667
|
/*#__PURE__*/ _jsxs("p", {
|
|
2667
2668
|
onClick: ()=>{
|
|
2668
|
-
sendScreenshotData('
|
|
2669
|
+
sendScreenshotData('总结图片内容 ');
|
|
2669
2670
|
},
|
|
2670
2671
|
children: [
|
|
2671
2672
|
/*#__PURE__*/ _jsx(CustomWenhaoRound, {}),
|
|
2672
|
-
"
|
|
2673
|
+
"总结图片内容 "
|
|
2673
2674
|
]
|
|
2674
2675
|
})
|
|
2675
2676
|
]
|
|
@@ -1729,9 +1729,13 @@
|
|
|
1729
1729
|
.open{
|
|
1730
1730
|
font-size: 24px;
|
|
1731
1731
|
color: @color-icon-fill-Tr;
|
|
1732
|
+
position: relative;
|
|
1733
|
+
left: -15px;
|
|
1732
1734
|
}
|
|
1735
|
+
|
|
1733
1736
|
//展开
|
|
1734
1737
|
.active{
|
|
1738
|
+
left: -11px;
|
|
1735
1739
|
svg{
|
|
1736
1740
|
transform: rotate(90deg);
|
|
1737
1741
|
}
|
|
@@ -1875,8 +1879,16 @@
|
|
|
1875
1879
|
// .list{
|
|
1876
1880
|
// margin: 8px 16px 17px;
|
|
1877
1881
|
// }
|
|
1882
|
+
|
|
1883
|
+
|
|
1878
1884
|
}
|
|
1879
1885
|
}
|
|
1886
|
+
.open{
|
|
1887
|
+
left: -7px !important;
|
|
1888
|
+
}
|
|
1889
|
+
.active{
|
|
1890
|
+
left: -4px !important;
|
|
1891
|
+
}
|
|
1880
1892
|
}
|
|
1881
1893
|
//老师列表
|
|
1882
1894
|
.teacher_list{
|
|
@@ -8,7 +8,7 @@ import { SearchOutlined } from "@ant-design/icons";
|
|
|
8
8
|
const TeacherList = (props)=>{
|
|
9
9
|
let { type , userData , http , urllocation , onClose , enterTeacherChat } = props;
|
|
10
10
|
const [keyWordProblem, setKeyWordProblem] = useState(""); //搜索内容
|
|
11
|
-
const [showLoadingState, setShowLoadingState] = useState(
|
|
11
|
+
const [showLoadingState, setShowLoadingState] = useState(2); //2、无数据 ,3、不显示图片
|
|
12
12
|
// const [totalData, setTotalData] = useState([]); //总数据
|
|
13
13
|
const [showTotalData, setShowTotalData] = useState([]); //总数据
|
|
14
14
|
// const [teacher_list, setTeacher_list] = useState([]); //老师列表,有头像
|
|
@@ -37,7 +37,9 @@ const TeacherList = (props)=>{
|
|
|
37
37
|
sliderRef.current.addEventListener('wheel', handleScroll);
|
|
38
38
|
// 清除滚轮事件监听器
|
|
39
39
|
return ()=>{
|
|
40
|
-
|
|
40
|
+
try {
|
|
41
|
+
sliderRef.current.removeEventListener('wheel', handleScroll);
|
|
42
|
+
} catch (error) {}
|
|
41
43
|
};
|
|
42
44
|
}, [
|
|
43
45
|
keyWordProblem
|
|
@@ -56,7 +58,9 @@ const TeacherList = (props)=>{
|
|
|
56
58
|
}
|
|
57
59
|
http.get(`${urllocation}/chat-service/public/v1.0/teachers`, {
|
|
58
60
|
params: {
|
|
59
|
-
name: val
|
|
61
|
+
name: val,
|
|
62
|
+
page: page.current,
|
|
63
|
+
maxPageSize: 100000
|
|
60
64
|
}
|
|
61
65
|
}).then((res)=>{
|
|
62
66
|
console.log(res);
|
|
@@ -191,7 +195,7 @@ const TeacherList = (props)=>{
|
|
|
191
195
|
/*#__PURE__*/ _jsx("i", {
|
|
192
196
|
className: "guanbi_Close",
|
|
193
197
|
onClick: ()=>{
|
|
194
|
-
setShowLoadingState(
|
|
198
|
+
setShowLoadingState(2);
|
|
195
199
|
setKeyWordProblem("");
|
|
196
200
|
// setTotalData([]);
|
|
197
201
|
totalData.current = [];
|
|
@@ -206,25 +210,14 @@ const TeacherList = (props)=>{
|
|
|
206
210
|
className: styles.main_list,
|
|
207
211
|
id: "teacher_list",
|
|
208
212
|
children: [
|
|
209
|
-
showLoadingState == 1 && /*#__PURE__*/ _jsxs("div", {
|
|
210
|
-
className: styles.no_data,
|
|
211
|
-
children: [
|
|
212
|
-
/*#__PURE__*/ _jsx("img", {
|
|
213
|
-
src: "/new_yun/images/aiService/search_for_icon.png"
|
|
214
|
-
}),
|
|
215
|
-
/*#__PURE__*/ _jsx("p", {
|
|
216
|
-
children: "输入关键词,搜索老师姓名"
|
|
217
|
-
})
|
|
218
|
-
]
|
|
219
|
-
}),
|
|
220
213
|
showLoadingState == 2 && /*#__PURE__*/ _jsxs("div", {
|
|
221
214
|
className: styles.no_data,
|
|
222
215
|
children: [
|
|
223
216
|
/*#__PURE__*/ _jsx("img", {
|
|
224
|
-
src: "/new_yun/images/aiService/
|
|
217
|
+
src: "/new_yun/images/aiService/no_data_02.png"
|
|
225
218
|
}),
|
|
226
219
|
/*#__PURE__*/ _jsx("p", {
|
|
227
|
-
children: "
|
|
220
|
+
children: "没有找到相关的联系人"
|
|
228
221
|
})
|
|
229
222
|
]
|
|
230
223
|
}),
|
|
@@ -1422,11 +1422,12 @@ var CustomerService = function(props) {
|
|
|
1422
1422
|
maxPageSize: 5
|
|
1423
1423
|
};
|
|
1424
1424
|
} else if (flag == 3) {
|
|
1425
|
+
var VideoBriefSummaryId = config.params.VideoBriefSummaryId;
|
|
1425
1426
|
data = {
|
|
1426
1427
|
page: 1,
|
|
1427
|
-
maxPageSize:
|
|
1428
|
+
maxPageSize: 4,
|
|
1428
1429
|
question: value,
|
|
1429
|
-
sectionId:
|
|
1430
|
+
sectionId: VideoBriefSummaryId
|
|
1430
1431
|
};
|
|
1431
1432
|
} else if (flag == 4) {
|
|
1432
1433
|
data = {
|
|
@@ -1454,13 +1455,14 @@ var CustomerService = function(props) {
|
|
|
1454
1455
|
} else {
|
|
1455
1456
|
setQuestionsList(questionList);
|
|
1456
1457
|
}
|
|
1457
|
-
if (questionList.length <
|
|
1458
|
+
if (questionList.length < 4 && flag == 3) {
|
|
1458
1459
|
console.log("视频页面,联想问题小于4个");
|
|
1459
1460
|
//视频页面,联想问题小于4个
|
|
1460
1461
|
http.get("".concat(urllocation, "/chat-service/public/v1.0/knowledge-base/questions"), {
|
|
1461
1462
|
params: {
|
|
1462
1463
|
page: 1,
|
|
1463
|
-
maxPageSize:
|
|
1464
|
+
maxPageSize: 4 - questionList.length,
|
|
1465
|
+
question: value
|
|
1464
1466
|
}
|
|
1465
1467
|
}).then(function(res) {
|
|
1466
1468
|
if (res.data.questions) {
|
|
@@ -2196,8 +2198,7 @@ var CustomerService = function(props) {
|
|
|
2196
2198
|
},
|
|
2197
2199
|
children: item.message == "抱歉,我暂时无法回答这样的问题。" ? list.question : /*#__PURE__*/ _jsxs(_Fragment, {
|
|
2198
2200
|
children: [
|
|
2199
|
-
index + 1,
|
|
2200
|
-
".",
|
|
2201
|
+
JSON.parse(item.extraInfo).length > 1 ? index + 1 + "." : "",
|
|
2201
2202
|
list.question
|
|
2202
2203
|
]
|
|
2203
2204
|
})
|
|
@@ -2706,21 +2707,21 @@ var CustomerService = function(props) {
|
|
|
2706
2707
|
children: [
|
|
2707
2708
|
/*#__PURE__*/ _jsxs("p", {
|
|
2708
2709
|
onClick: function() {
|
|
2709
|
-
sendScreenshotData("
|
|
2710
|
+
sendScreenshotData("讲解图片里的知识点;");
|
|
2710
2711
|
},
|
|
2711
2712
|
children: [
|
|
2712
2713
|
/*#__PURE__*/ _jsx(CustomKnowledgeContent, {}),
|
|
2713
|
-
"
|
|
2714
|
+
"讲解图片里的知识点;"
|
|
2714
2715
|
]
|
|
2715
2716
|
}),
|
|
2716
2717
|
/*#__PURE__*/ _jsx("br", {}),
|
|
2717
2718
|
/*#__PURE__*/ _jsxs("p", {
|
|
2718
2719
|
onClick: function() {
|
|
2719
|
-
sendScreenshotData("
|
|
2720
|
+
sendScreenshotData("总结图片内容 ");
|
|
2720
2721
|
},
|
|
2721
2722
|
children: [
|
|
2722
2723
|
/*#__PURE__*/ _jsx(CustomWenhaoRound, {}),
|
|
2723
|
-
"
|
|
2724
|
+
"总结图片内容 "
|
|
2724
2725
|
]
|
|
2725
2726
|
})
|
|
2726
2727
|
]
|
|
@@ -1729,9 +1729,13 @@
|
|
|
1729
1729
|
.open{
|
|
1730
1730
|
font-size: 24px;
|
|
1731
1731
|
color: @color-icon-fill-Tr;
|
|
1732
|
+
position: relative;
|
|
1733
|
+
left: -15px;
|
|
1732
1734
|
}
|
|
1735
|
+
|
|
1733
1736
|
//展开
|
|
1734
1737
|
.active{
|
|
1738
|
+
left: -11px;
|
|
1735
1739
|
svg{
|
|
1736
1740
|
transform: rotate(90deg);
|
|
1737
1741
|
}
|
|
@@ -1875,8 +1879,16 @@
|
|
|
1875
1879
|
// .list{
|
|
1876
1880
|
// margin: 8px 16px 17px;
|
|
1877
1881
|
// }
|
|
1882
|
+
|
|
1883
|
+
|
|
1878
1884
|
}
|
|
1879
1885
|
}
|
|
1886
|
+
.open{
|
|
1887
|
+
left: -7px !important;
|
|
1888
|
+
}
|
|
1889
|
+
.active{
|
|
1890
|
+
left: -4px !important;
|
|
1891
|
+
}
|
|
1880
1892
|
}
|
|
1881
1893
|
//老师列表
|
|
1882
1894
|
.teacher_list{
|
|
@@ -9,7 +9,7 @@ import { SearchOutlined } from "@ant-design/icons";
|
|
|
9
9
|
var TeacherList = function(props) {
|
|
10
10
|
var type = props.type, userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, enterTeacherChat = props.enterTeacherChat;
|
|
11
11
|
var _useState = _sliced_to_array(useState(""), 2), keyWordProblem = _useState[0], setKeyWordProblem = _useState[1]; //搜索内容
|
|
12
|
-
var _useState1 = _sliced_to_array(useState(
|
|
12
|
+
var _useState1 = _sliced_to_array(useState(2), 2), showLoadingState = _useState1[0], setShowLoadingState = _useState1[1]; //2、无数据 ,3、不显示图片
|
|
13
13
|
// const [totalData, setTotalData] = useState([]); //总数据
|
|
14
14
|
var _useState2 = _sliced_to_array(useState([]), 2), showTotalData = _useState2[0], setShowTotalData = _useState2[1]; //总数据
|
|
15
15
|
// const [teacher_list, setTeacher_list] = useState([]); //老师列表,有头像
|
|
@@ -38,7 +38,9 @@ var TeacherList = function(props) {
|
|
|
38
38
|
sliderRef.current.addEventListener("wheel", handleScroll);
|
|
39
39
|
// 清除滚轮事件监听器
|
|
40
40
|
return function() {
|
|
41
|
-
|
|
41
|
+
try {
|
|
42
|
+
sliderRef.current.removeEventListener("wheel", handleScroll);
|
|
43
|
+
} catch (error) {}
|
|
42
44
|
};
|
|
43
45
|
}, [
|
|
44
46
|
keyWordProblem
|
|
@@ -57,7 +59,9 @@ var TeacherList = function(props) {
|
|
|
57
59
|
}
|
|
58
60
|
http.get("".concat(urllocation, "/chat-service/public/v1.0/teachers"), {
|
|
59
61
|
params: {
|
|
60
|
-
name: val
|
|
62
|
+
name: val,
|
|
63
|
+
page: page.current,
|
|
64
|
+
maxPageSize: 100000
|
|
61
65
|
}
|
|
62
66
|
}).then(function(res) {
|
|
63
67
|
console.log(res);
|
|
@@ -204,7 +208,7 @@ var TeacherList = function(props) {
|
|
|
204
208
|
/*#__PURE__*/ _jsx("i", {
|
|
205
209
|
className: "guanbi_Close",
|
|
206
210
|
onClick: function() {
|
|
207
|
-
setShowLoadingState(
|
|
211
|
+
setShowLoadingState(2);
|
|
208
212
|
setKeyWordProblem("");
|
|
209
213
|
// setTotalData([]);
|
|
210
214
|
totalData.current = [];
|
|
@@ -219,25 +223,14 @@ var TeacherList = function(props) {
|
|
|
219
223
|
className: styles.main_list,
|
|
220
224
|
id: "teacher_list",
|
|
221
225
|
children: [
|
|
222
|
-
showLoadingState == 1 && /*#__PURE__*/ _jsxs("div", {
|
|
223
|
-
className: styles.no_data,
|
|
224
|
-
children: [
|
|
225
|
-
/*#__PURE__*/ _jsx("img", {
|
|
226
|
-
src: "/new_yun/images/aiService/search_for_icon.png"
|
|
227
|
-
}),
|
|
228
|
-
/*#__PURE__*/ _jsx("p", {
|
|
229
|
-
children: "输入关键词,搜索老师姓名"
|
|
230
|
-
})
|
|
231
|
-
]
|
|
232
|
-
}),
|
|
233
226
|
showLoadingState == 2 && /*#__PURE__*/ _jsxs("div", {
|
|
234
227
|
className: styles.no_data,
|
|
235
228
|
children: [
|
|
236
229
|
/*#__PURE__*/ _jsx("img", {
|
|
237
|
-
src: "/new_yun/images/aiService/
|
|
230
|
+
src: "/new_yun/images/aiService/no_data_02.png"
|
|
238
231
|
}),
|
|
239
232
|
/*#__PURE__*/ _jsx("p", {
|
|
240
|
-
children: "
|
|
233
|
+
children: "没有找到相关的联系人"
|
|
241
234
|
})
|
|
242
235
|
]
|
|
243
236
|
}),
|