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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as zhCN, C as ConfigProvider, _ as _extends, a as _object_destructuring_empty, j as jsx, b as _object_spread_props, S as StyleProvider, t as transform, c as _object_spread, d as _sliced_to_array, T as Tooltip, e as Table$2, I as Icon, f as jsxs, m as message, E as ExclamationCircleFilled, P as Pagination, g as Select, h as CaretDownOutlined, M as Modal, i as _inherits, k as _create_super, l as _create_class, n as _class_call_check, o as _define_property, p as _assert_this_initialized, q as _async_to_generator, L as LeftOutlined, R as RightOutlined, r as MinusOutlined, s as PlusOutlined, u as __generator, v as Input, w as SearchOutlined, x as CloseOutlined, X, y as I, H, A as Remarkable, D as Drawer, B as HighlightJS, Z as ZoomInOutlined, F as _to_consumable_array } from './
|
|
2
|
-
export { G as Affix, J as Alert, K as Anchor, aF as App, N as AutoComplete, O as Avatar, U as BackTop, V as Badge, W as Breadcrumb, Y as Button, $ as Calendar, a0 as Card, a1 as Carousel, a2 as Cascader, a3 as Checkbox, a4 as Col, a5 as Collapse, a6 as DatePicker, a7 as Descriptions, a8 as Divider, D as Drawer, a9 as Dropdown, aa as Empty, Q as FloatButton, ab as Form, ac as Grid, ad as Image, v as Input, ae as InputNumber, af as Layout, ag as List, ah as Mentions, ai as Menu, M as Modal, ak as Popconfirm, al as Popover, am as Progress, aM as QRCode, an as Radio, ao as Rate, ap as Result, aq as Row, ar as Segmented, g as Select, as as Skeleton, at as Slider, au as Space, av as Spin, aw as Statistic, ax as Steps, ay as Switch, az as Tabs, aA as Tag, aC as TimePicker, aD as Timeline, T as Tooltip, aE as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, aj as notification, aB as theme, aN as version, z as zh_CN } from './
|
|
1
|
+
import { z as zhCN, C as ConfigProvider, _ as _extends, a as _object_destructuring_empty, j as jsx, b as _object_spread_props, S as StyleProvider, t as transform, c as _object_spread, d as _sliced_to_array, T as Tooltip, e as Table$2, I as Icon, f as jsxs, m as message, E as ExclamationCircleFilled, P as Pagination, g as Select, h as CaretDownOutlined, M as Modal, i as _inherits, k as _create_super, l as _create_class, n as _class_call_check, o as _define_property, p as _assert_this_initialized, q as _async_to_generator, L as LeftOutlined, R as RightOutlined, r as MinusOutlined, s as PlusOutlined, u as __generator, v as Input, w as SearchOutlined, x as CloseOutlined, X, y as I, H, A as Remarkable, D as Drawer, B as HighlightJS, Z as ZoomInOutlined, F as _to_consumable_array } from './f1eff3e0.esm.es5.development.js';
|
|
2
|
+
export { G as Affix, J as Alert, K as Anchor, aF as App, N as AutoComplete, O as Avatar, U as BackTop, V as Badge, W as Breadcrumb, Y as Button, $ as Calendar, a0 as Card, a1 as Carousel, a2 as Cascader, a3 as Checkbox, a4 as Col, a5 as Collapse, a6 as DatePicker, a7 as Descriptions, a8 as Divider, D as Drawer, a9 as Dropdown, aa as Empty, Q as FloatButton, ab as Form, ac as Grid, ad as Image, v as Input, ae as InputNumber, af as Layout, ag as List, ah as Mentions, ai as Menu, M as Modal, ak as Popconfirm, al as Popover, am as Progress, aM as QRCode, an as Radio, ao as Rate, ap as Result, aq as Row, ar as Segmented, g as Select, as as Skeleton, at as Slider, au as Space, av as Spin, aw as Statistic, ax as Steps, ay as Switch, az as Tabs, aA as Tag, aC as TimePicker, aD as Timeline, T as Tooltip, aE as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, aj as notification, aB as theme, aN as version, z as zh_CN } from './f1eff3e0.esm.es5.development.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle } from 'react';
|
|
5
5
|
import { Fragment } from 'react/jsx-runtime';
|
|
@@ -2377,7 +2377,7 @@ function BhdAppLayout(props) {
|
|
|
2377
2377
|
});
|
|
2378
2378
|
}
|
|
2379
2379
|
|
|
2380
|
-
var modules_63b47c51 = {"service_ChatWindow_Drawer":"
|
|
2380
|
+
var modules_63b47c51 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__d52c4a59","ChatWindow_Modal":"index_module_ChatWindow_Modal__d52c4a59","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__d52c4a59","header_wrap":"index_module_header_wrap__d52c4a59","top":"index_module_top__d52c4a59","user":"index_module_user__d52c4a59","count":"index_module_count__d52c4a59","operate":"index_module_operate__d52c4a59","line":"index_module_line__d52c4a59","popover_main":"index_module_popover_main__d52c4a59","popover":"index_module_popover__d52c4a59","header_wrap_newlabo":"index_module_header_wrap_newlabo__d52c4a59","Drawer_main":"index_module_Drawer_main__d52c4a59","loading":"index_module_loading__d52c4a59","message_con":"index_module_message_con__d52c4a59","left":"index_module_left__d52c4a59","head_sculpture":"index_module_head_sculpture__d52c4a59","main_content":"index_module_main_content__d52c4a59","right":"index_module_right__d52c4a59","main":"index_module_main__d52c4a59","main_content_flag":"index_module_main_content_flag__d52c4a59","operate_modal":"index_module_operate_modal__d52c4a59","operate_modal_bottom":"index_module_operate_modal_bottom__d52c4a59","active":"index_module_active__d52c4a59","stop_generate":"index_module_stop_generate__d52c4a59","icon":"index_module_icon__d52c4a59","find_teacher":"index_module_find_teacher__d52c4a59","stop_findTeacher":"index_module_stop_findTeacher__d52c4a59","content":"index_module_content__d52c4a59","content_child":"index_module_content_child__d52c4a59","find_teacher_con":"index_module_find_teacher_con__d52c4a59","sign":"index_module_sign__d52c4a59","ask_question":"index_module_ask_question__d52c4a59","association_problem":"index_module_association_problem__d52c4a59","association_problem_flag":"index_module_association_problem_flag__d52c4a59","related_issues_flag":"index_module_related_issues_flag__d52c4a59","img_con":"index_module_img_con__d52c4a59","mask_zoom":"index_module_mask_zoom__d52c4a59","img_con2":"index_module_img_con2__d52c4a59","copyCode":"index_module_copyCode__d52c4a59","time":"index_module_time__d52c4a59","citation_content":"index_module_citation_content__d52c4a59","text_exceed":"index_module_text_exceed__d52c4a59","popover_content":"index_module_popover_content__d52c4a59","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__d52c4a59","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__d52c4a59","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__d52c4a59","issues_list_teacherList":"index_module_issues_list_teacherList__d52c4a59","item":"index_module_item__d52c4a59","issues_list":"index_module_issues_list__d52c4a59","issues_list_flag":"index_module_issues_list_flag__d52c4a59","Drawer_buttom":"index_module_Drawer_buttom__d52c4a59","input_wrap":"index_module_input_wrap__d52c4a59","input":"index_module_input__d52c4a59","picture_layout":"index_module_picture_layout__d52c4a59","icon_close":"index_module_icon_close__d52c4a59","icon_zoom":"index_module_icon_zoom__d52c4a59","anticon":"index_module_anticon__d52c4a59","no_AI":"index_module_no_AI__d52c4a59","screenshot":"index_module_screenshot__d52c4a59","disabled":"index_module_disabled__d52c4a59","content_main":"index_module_content_main__d52c4a59","content_con":"index_module_content_con__d52c4a59","delete_quote":"index_module_delete_quote__d52c4a59","sending":"index_module_sending__d52c4a59","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__d52c4a59","main_list":"index_module_main_list__d52c4a59","chat_content":"index_module_chat_content__d52c4a59","popover_main_content":"index_module_popover_main_content__d52c4a59","popover_main_content_name":"index_module_popover_main_content_name__d52c4a59","teacher_layout":"index_module_teacher_layout__d52c4a59","bottom":"index_module_bottom__d52c4a59","delete":"index_module_delete__d52c4a59","num":"index_module_num__d52c4a59","shrink":"index_module_shrink__d52c4a59","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__d52c4a59","teacher_layout_modal":"index_module_teacher_layout_modal__d52c4a59","ai":"index_module_ai__d52c4a59","user_info":"index_module_user_info__d52c4a59","message":"index_module_message__d52c4a59","con":"index_module_con__d52c4a59","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__d52c4a59","history_list":"index_module_history_list__d52c4a59","search_layout":"index_module_search_layout__d52c4a59","mymove":"index_module_mymove__d52c4a59","title":"index_module_title__d52c4a59","search_top":"index_module_search_top__d52c4a59","list_item":"index_module_list_item__d52c4a59","list_summary":"index_module_list_summary__d52c4a59","head_img":"index_module_head_img__d52c4a59","list_desc":"index_module_list_desc__d52c4a59","name":"index_module_name__d52c4a59","decs":"index_module_decs__d52c4a59","open":"index_module_open__d52c4a59","list_summary_active":"index_module_list_summary_active__d52c4a59","list_detail":"index_module_list_detail__d52c4a59","list":"index_module_list__d52c4a59","list_more":"index_module_list_more__d52c4a59","no_data":"index_module_no_data__d52c4a59","history_list_broadside":"index_module_history_list_broadside__d52c4a59","teacher_list":"index_module_teacher_list__d52c4a59","screenshot_Modal":"index_module_screenshot_Modal__d52c4a59","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__d52c4a59"};
|
|
2381
2381
|
|
|
2382
2382
|
//消息已读
|
|
2383
2383
|
var readMessage = function(roomId, urllocation, userData, http) {
|
|
@@ -3331,7 +3331,7 @@ var ScreenshotTool$1 = ScreenshotTool;
|
|
|
3331
3331
|
var TeacherList = function(props) {
|
|
3332
3332
|
var type = props.type, userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, enterTeacherChat = props.enterTeacherChat;
|
|
3333
3333
|
var _useState = _sliced_to_array(useState(""), 2), keyWordProblem = _useState[0], setKeyWordProblem = _useState[1]; //搜索内容
|
|
3334
|
-
var _useState1 = _sliced_to_array(useState(
|
|
3334
|
+
var _useState1 = _sliced_to_array(useState(2), 2), showLoadingState = _useState1[0], setShowLoadingState = _useState1[1]; //2、无数据 ,3、不显示图片
|
|
3335
3335
|
// const [totalData, setTotalData] = useState([]); //总数据
|
|
3336
3336
|
var _useState2 = _sliced_to_array(useState([]), 2), showTotalData = _useState2[0], setShowTotalData = _useState2[1]; //总数据
|
|
3337
3337
|
// const [teacher_list, setTeacher_list] = useState([]); //老师列表,有头像
|
|
@@ -3360,7 +3360,9 @@ var TeacherList = function(props) {
|
|
|
3360
3360
|
sliderRef.current.addEventListener("wheel", handleScroll);
|
|
3361
3361
|
// 清除滚轮事件监听器
|
|
3362
3362
|
return function() {
|
|
3363
|
-
|
|
3363
|
+
try {
|
|
3364
|
+
sliderRef.current.removeEventListener("wheel", handleScroll);
|
|
3365
|
+
} catch (error) {}
|
|
3364
3366
|
};
|
|
3365
3367
|
}, [
|
|
3366
3368
|
keyWordProblem
|
|
@@ -3379,7 +3381,9 @@ var TeacherList = function(props) {
|
|
|
3379
3381
|
}
|
|
3380
3382
|
http.get("".concat(urllocation, "/chat-service/public/v1.0/teachers"), {
|
|
3381
3383
|
params: {
|
|
3382
|
-
name: val
|
|
3384
|
+
name: val,
|
|
3385
|
+
page: page.current,
|
|
3386
|
+
maxPageSize: 100000
|
|
3383
3387
|
}
|
|
3384
3388
|
}).then(function(res) {
|
|
3385
3389
|
console.log(res);
|
|
@@ -3526,7 +3530,7 @@ var TeacherList = function(props) {
|
|
|
3526
3530
|
/*#__PURE__*/ jsx("i", {
|
|
3527
3531
|
className: "guanbi_Close",
|
|
3528
3532
|
onClick: function() {
|
|
3529
|
-
setShowLoadingState(
|
|
3533
|
+
setShowLoadingState(2);
|
|
3530
3534
|
setKeyWordProblem("");
|
|
3531
3535
|
// setTotalData([]);
|
|
3532
3536
|
totalData.current = [];
|
|
@@ -3541,25 +3545,14 @@ var TeacherList = function(props) {
|
|
|
3541
3545
|
className: modules_63b47c51.main_list,
|
|
3542
3546
|
id: "teacher_list",
|
|
3543
3547
|
children: [
|
|
3544
|
-
showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
|
|
3545
|
-
className: modules_63b47c51.no_data,
|
|
3546
|
-
children: [
|
|
3547
|
-
/*#__PURE__*/ jsx("img", {
|
|
3548
|
-
src: "/new_yun/images/aiService/search_for_icon.png"
|
|
3549
|
-
}),
|
|
3550
|
-
/*#__PURE__*/ jsx("p", {
|
|
3551
|
-
children: "输入关键词,搜索老师姓名"
|
|
3552
|
-
})
|
|
3553
|
-
]
|
|
3554
|
-
}),
|
|
3555
3548
|
showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
|
|
3556
3549
|
className: modules_63b47c51.no_data,
|
|
3557
3550
|
children: [
|
|
3558
3551
|
/*#__PURE__*/ jsx("img", {
|
|
3559
|
-
src: "/new_yun/images/aiService/
|
|
3552
|
+
src: "/new_yun/images/aiService/no_data_02.png"
|
|
3560
3553
|
}),
|
|
3561
3554
|
/*#__PURE__*/ jsx("p", {
|
|
3562
|
-
children: "
|
|
3555
|
+
children: "没有找到相关的联系人"
|
|
3563
3556
|
})
|
|
3564
3557
|
]
|
|
3565
3558
|
}),
|
|
@@ -5022,11 +5015,12 @@ var CustomerService = function(props) {
|
|
|
5022
5015
|
maxPageSize: 5
|
|
5023
5016
|
};
|
|
5024
5017
|
} else if (flag == 3) {
|
|
5018
|
+
var VideoBriefSummaryId = config.params.VideoBriefSummaryId;
|
|
5025
5019
|
data = {
|
|
5026
5020
|
page: 1,
|
|
5027
|
-
maxPageSize:
|
|
5021
|
+
maxPageSize: 4,
|
|
5028
5022
|
question: value,
|
|
5029
|
-
sectionId:
|
|
5023
|
+
sectionId: VideoBriefSummaryId
|
|
5030
5024
|
};
|
|
5031
5025
|
} else if (flag == 4) {
|
|
5032
5026
|
data = {
|
|
@@ -5054,13 +5048,14 @@ var CustomerService = function(props) {
|
|
|
5054
5048
|
} else {
|
|
5055
5049
|
setQuestionsList(questionList);
|
|
5056
5050
|
}
|
|
5057
|
-
if (questionList.length <
|
|
5051
|
+
if (questionList.length < 4 && flag == 3) {
|
|
5058
5052
|
console.log("视频页面,联想问题小于4个");
|
|
5059
5053
|
//视频页面,联想问题小于4个
|
|
5060
5054
|
http.get("".concat(urllocation, "/chat-service/public/v1.0/knowledge-base/questions"), {
|
|
5061
5055
|
params: {
|
|
5062
5056
|
page: 1,
|
|
5063
|
-
maxPageSize:
|
|
5057
|
+
maxPageSize: 4 - questionList.length,
|
|
5058
|
+
question: value
|
|
5064
5059
|
}
|
|
5065
5060
|
}).then(function(res) {
|
|
5066
5061
|
if (res.data.questions) {
|
|
@@ -5795,8 +5790,7 @@ var CustomerService = function(props) {
|
|
|
5795
5790
|
},
|
|
5796
5791
|
children: item.message == "抱歉,我暂时无法回答这样的问题。" ? list.question : /*#__PURE__*/ jsxs(Fragment, {
|
|
5797
5792
|
children: [
|
|
5798
|
-
index + 1,
|
|
5799
|
-
".",
|
|
5793
|
+
JSON.parse(item.extraInfo).length > 1 ? index + 1 + "." : "",
|
|
5800
5794
|
list.question
|
|
5801
5795
|
]
|
|
5802
5796
|
})
|
|
@@ -6303,21 +6297,21 @@ var CustomerService = function(props) {
|
|
|
6303
6297
|
children: [
|
|
6304
6298
|
/*#__PURE__*/ jsxs("p", {
|
|
6305
6299
|
onClick: function() {
|
|
6306
|
-
sendScreenshotData("
|
|
6300
|
+
sendScreenshotData("讲解图片里的知识点;");
|
|
6307
6301
|
},
|
|
6308
6302
|
children: [
|
|
6309
6303
|
/*#__PURE__*/ jsx(CustomKnowledgeContent$1, {}),
|
|
6310
|
-
"
|
|
6304
|
+
"讲解图片里的知识点;"
|
|
6311
6305
|
]
|
|
6312
6306
|
}),
|
|
6313
6307
|
/*#__PURE__*/ jsx("br", {}),
|
|
6314
6308
|
/*#__PURE__*/ jsxs("p", {
|
|
6315
6309
|
onClick: function() {
|
|
6316
|
-
sendScreenshotData("
|
|
6310
|
+
sendScreenshotData("总结图片内容 ");
|
|
6317
6311
|
},
|
|
6318
6312
|
children: [
|
|
6319
6313
|
/*#__PURE__*/ jsx(CustomWenhaoRound$1, {}),
|
|
6320
|
-
"
|
|
6314
|
+
"总结图片内容 "
|
|
6321
6315
|
]
|
|
6322
6316
|
})
|
|
6323
6317
|
]
|