bhd-components 0.7.6 → 0.7.7
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/{0dcae483.esm.es5.production.js → 51f5ba3f.esm.es5.production.js} +1 -1
- package/dist/{e316787c.esm.es5.development.js → 61049688.esm.es5.development.js} +1 -1
- package/dist/index.esm.es5.development.css +980 -956
- package/dist/index.esm.es5.development.js +79 -39
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/es2017/customerService/index.js +76 -36
- package/es2017/customerService/index.module.less +16 -3
- package/esm/customerService/index.js +76 -36
- package/esm/customerService/index.module.less +16 -3
- 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, B as html2canvas, D as Drawer, F as HighlightJS, Z as ZoomInOutlined, G as _to_consumable_array } from './
|
|
2
|
-
export { J as Affix, K as Alert, N as Anchor, aG as App, O as AutoComplete, Q as Avatar, V as BackTop, W as Badge, Y as Breadcrumb, $ as Button, a0 as Calendar, a1 as Card, a2 as Carousel, a3 as Cascader, a4 as Checkbox, a5 as Col, a6 as Collapse, a7 as DatePicker, a8 as Descriptions, a9 as Divider, D as Drawer, aa as Dropdown, ab as Empty, U as FloatButton, ac as Form, ad as Grid, ae as Image, v as Input, af as InputNumber, ag as Layout, ah as List, ai as Mentions, aj as Menu, M as Modal, al as Popconfirm, am as Popover, an as Progress, aN as QRCode, ao as Radio, ap as Rate, aq as Result, ar as Row, as as Segmented, g as Select, at as Skeleton, au as Slider, av as Space, aw as Spin, ax as Statistic, ay as Steps, az as Switch, aA as Tabs, aB as Tag, aD as TimePicker, aE as Timeline, T as Tooltip, aF as Tour, aH as Transfer, aI as Tree, aJ as TreeSelect, aK as Typography, aL as Upload, aM as Watermark, aP as en_US, ak as notification, aC as theme, aO 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, B as html2canvas, D as Drawer, F as HighlightJS, Z as ZoomInOutlined, G as _to_consumable_array } from './61049688.esm.es5.development.js';
|
|
2
|
+
export { J as Affix, K as Alert, N as Anchor, aG as App, O as AutoComplete, Q as Avatar, V as BackTop, W as Badge, Y as Breadcrumb, $ as Button, a0 as Calendar, a1 as Card, a2 as Carousel, a3 as Cascader, a4 as Checkbox, a5 as Col, a6 as Collapse, a7 as DatePicker, a8 as Descriptions, a9 as Divider, D as Drawer, aa as Dropdown, ab as Empty, U as FloatButton, ac as Form, ad as Grid, ae as Image, v as Input, af as InputNumber, ag as Layout, ah as List, ai as Mentions, aj as Menu, M as Modal, al as Popconfirm, am as Popover, an as Progress, aN as QRCode, ao as Radio, ap as Rate, aq as Result, ar as Row, as as Segmented, g as Select, at as Skeleton, au as Slider, av as Space, aw as Spin, ax as Statistic, ay as Steps, az as Switch, aA as Tabs, aB as Tag, aD as TimePicker, aE as Timeline, T as Tooltip, aF as Tour, aH as Transfer, aI as Tree, aJ as TreeSelect, aK as Typography, aL as Upload, aM as Watermark, aP as en_US, ak as notification, aC as theme, aO as version, z as zh_CN } from './61049688.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';
|
|
@@ -3166,7 +3166,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3166
3166
|
});
|
|
3167
3167
|
var ViewImage$1 = AppViewImage;
|
|
3168
3168
|
|
|
3169
|
-
var modules_63b47c51 = {"service_ChatWindow_Drawer":"
|
|
3169
|
+
var modules_63b47c51 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__061cabac","ChatWindow_Modal":"index_module_ChatWindow_Modal__061cabac","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__061cabac","header_wrap":"index_module_header_wrap__061cabac","top":"index_module_top__061cabac","user":"index_module_user__061cabac","count":"index_module_count__061cabac","operate":"index_module_operate__061cabac","line":"index_module_line__061cabac","popover_main":"index_module_popover_main__061cabac","popover":"index_module_popover__061cabac","header_wrap_newlabo":"index_module_header_wrap_newlabo__061cabac","Drawer_main":"index_module_Drawer_main__061cabac","loading":"index_module_loading__061cabac","message_con":"index_module_message_con__061cabac","left":"index_module_left__061cabac","head_sculpture":"index_module_head_sculpture__061cabac","main_content":"index_module_main_content__061cabac","right":"index_module_right__061cabac","main":"index_module_main__061cabac","main_content_flag":"index_module_main_content_flag__061cabac","operate_modal":"index_module_operate_modal__061cabac","operate_modal_bottom":"index_module_operate_modal_bottom__061cabac","active":"index_module_active__061cabac","stop_generate":"index_module_stop_generate__061cabac","icon":"index_module_icon__061cabac","find_teacher":"index_module_find_teacher__061cabac","stop_findTeacher":"index_module_stop_findTeacher__061cabac","content":"index_module_content__061cabac","content_child":"index_module_content_child__061cabac","sign":"index_module_sign__061cabac","ask_question":"index_module_ask_question__061cabac","association_problem":"index_module_association_problem__061cabac","img_con":"index_module_img_con__061cabac","mask_zoom":"index_module_mask_zoom__061cabac","copyCode":"index_module_copyCode__061cabac","time":"index_module_time__061cabac","citation_content":"index_module_citation_content__061cabac","text_exceed":"index_module_text_exceed__061cabac","popover_content":"index_module_popover_content__061cabac","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__061cabac","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__061cabac","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__061cabac","issues_list_teacherList":"index_module_issues_list_teacherList__061cabac","item":"index_module_item__061cabac","issues_list":"index_module_issues_list__061cabac","issues_list_flag":"index_module_issues_list_flag__061cabac","Drawer_buttom":"index_module_Drawer_buttom__061cabac","input_wrap":"index_module_input_wrap__061cabac","input":"index_module_input__061cabac","picture_layout":"index_module_picture_layout__061cabac","icon_close":"index_module_icon_close__061cabac","icon_zoom":"index_module_icon_zoom__061cabac","anticon":"index_module_anticon__061cabac","no_AI":"index_module_no_AI__061cabac","screenshot":"index_module_screenshot__061cabac","disabled":"index_module_disabled__061cabac","content_main":"index_module_content_main__061cabac","content_con":"index_module_content_con__061cabac","delete_quote":"index_module_delete_quote__061cabac","sending":"index_module_sending__061cabac","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__061cabac","main_list":"index_module_main_list__061cabac","chat_content":"index_module_chat_content__061cabac","popover_main_content":"index_module_popover_main_content__061cabac","popover_main_content_name":"index_module_popover_main_content_name__061cabac","teacher_layout":"index_module_teacher_layout__061cabac","bottom":"index_module_bottom__061cabac","delete":"index_module_delete__061cabac","num":"index_module_num__061cabac","shrink":"index_module_shrink__061cabac","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__061cabac","teacher_layout_modal":"index_module_teacher_layout_modal__061cabac","ai":"index_module_ai__061cabac","user_info":"index_module_user_info__061cabac","message":"index_module_message__061cabac","con":"index_module_con__061cabac","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__061cabac","history_list":"index_module_history_list__061cabac","search_layout":"index_module_search_layout__061cabac","mymove":"index_module_mymove__061cabac","title":"index_module_title__061cabac","search_top":"index_module_search_top__061cabac","list_item":"index_module_list_item__061cabac","list_summary":"index_module_list_summary__061cabac","head_img":"index_module_head_img__061cabac","list_desc":"index_module_list_desc__061cabac","name":"index_module_name__061cabac","decs":"index_module_decs__061cabac","open":"index_module_open__061cabac","list_summary_active":"index_module_list_summary_active__061cabac","list_detail":"index_module_list_detail__061cabac","list":"index_module_list__061cabac","list_more":"index_module_list_more__061cabac","no_data":"index_module_no_data__061cabac","history_list_broadside":"index_module_history_list_broadside__061cabac","screenshot_Modal":"index_module_screenshot_Modal__061cabac","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__061cabac"};
|
|
3170
3170
|
|
|
3171
3171
|
//消息已读
|
|
3172
3172
|
var readMessage = function(roomId, urllocation, userData, http) {
|
|
@@ -4170,6 +4170,7 @@ var CustomerService = function(props) {
|
|
|
4170
4170
|
var _useState29 = _sliced_to_array(useState(""), 2), viewBase64 = _useState29[0], setViewBase64 = _useState29[1]; //图片预览
|
|
4171
4171
|
var _useState30 = _sliced_to_array(useState(false), 2), visible = _useState30[0], setVisible = _useState30[1]; //是否显示图片预览
|
|
4172
4172
|
var _useState31 = _sliced_to_array(useState([]), 2), bottomRecommendationQuestions = _useState31[0], setBottomRecommendationQuestions = _useState31[1]; //底部推荐问题
|
|
4173
|
+
var _useState32 = _sliced_to_array(useState(-1), 2), saveShowType = _useState32[0], setSaveShowType = _useState32[1]; //保存截图时的状态
|
|
4173
4174
|
var timer = useRef(null); //文本框输入时
|
|
4174
4175
|
var receiveMessageTimer = useRef(null); //接收ai发回的消息
|
|
4175
4176
|
// let voiceCountdownTimer = useRef(null); //语音录制倒计时
|
|
@@ -4196,24 +4197,29 @@ var CustomerService = function(props) {
|
|
|
4196
4197
|
}
|
|
4197
4198
|
});
|
|
4198
4199
|
useEffect(function() {
|
|
4199
|
-
console.log(showType, "showTypeshowTypeshowType");
|
|
4200
4200
|
if (showType == 5) {
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4201
|
+
setImgBese64("");
|
|
4202
|
+
html2canvas(document.getElementsByTagName("html")[0]).then(function(canvas) {
|
|
4203
|
+
console.log(canvas, 22222);
|
|
4204
|
+
setTimeout(function() {
|
|
4205
|
+
var dom = document.getElementById("container_html5_api");
|
|
4206
|
+
// let dom = document.getElementById("__docusaurus");
|
|
4207
|
+
html2canvas(dom, {
|
|
4208
|
+
backgroundColor: null,
|
|
4209
|
+
useCORS: true,
|
|
4210
|
+
allowTaint: true,
|
|
4211
|
+
scale: 1,
|
|
4212
|
+
logging: false
|
|
4213
|
+
}).then(function(canvas) {
|
|
4214
|
+
// document.body.appendChild(canvas);
|
|
4215
|
+
console.log(canvas, 4444444);
|
|
4216
|
+
// var base64URL = canvas.toDataURL('image/jpeg')
|
|
4217
|
+
// let base64URL=canvas.toDataURL("image/jpg", 1.0)
|
|
4218
|
+
var base64URL = canvas.toDataURL("image/png");
|
|
4219
|
+
setImgBese64(base64URL);
|
|
4220
|
+
});
|
|
4221
|
+
}, 100);
|
|
4215
4222
|
});
|
|
4216
|
-
// },1000)
|
|
4217
4223
|
}
|
|
4218
4224
|
if (showType != 1 && !firstLoad && pageCount > 0) {
|
|
4219
4225
|
setFirstLoad(true);
|
|
@@ -4628,7 +4634,7 @@ var CustomerService = function(props) {
|
|
|
4628
4634
|
};
|
|
4629
4635
|
//发送知识库问题 item,flag == 1 是获取问候信息的答案,flag == 2 是普通消息,flag == 3 是针对视频页面点击底部推荐问题
|
|
4630
4636
|
var sendMessage = function(item, flag) {
|
|
4631
|
-
console.log(item,
|
|
4637
|
+
// console.log(item,flag,888888888);
|
|
4632
4638
|
var questions = [];
|
|
4633
4639
|
if (item && flag) {
|
|
4634
4640
|
questions = [
|
|
@@ -5053,7 +5059,7 @@ var CustomerService = function(props) {
|
|
|
5053
5059
|
var getHistoryMessage = function(pageNum, flag) {
|
|
5054
5060
|
var id = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "1", raw_data = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : [];
|
|
5055
5061
|
clearTimeout(roomMessage.current);
|
|
5056
|
-
console.log(pageNum,
|
|
5062
|
+
// console.log(pageNum,flag,'dkfjvndfjvndfkvdf')
|
|
5057
5063
|
// flag == 1 时已经设置好了位置标记
|
|
5058
5064
|
var last_id = "";
|
|
5059
5065
|
if (flag == 2 && historyMessageList.length > 0) {
|
|
@@ -5381,14 +5387,13 @@ var CustomerService = function(props) {
|
|
|
5381
5387
|
console.log(props, 3333333);
|
|
5382
5388
|
var config = props.config;
|
|
5383
5389
|
if (config && config.type == "video" && config.params) {
|
|
5384
|
-
console.log("请求接口2222", config);
|
|
5385
5390
|
var params = config.params;
|
|
5386
|
-
var videoId = params.
|
|
5387
|
-
var watchTime = params.
|
|
5391
|
+
var videoId = params.videoId;
|
|
5392
|
+
var watchTime = params.videoProgress;
|
|
5388
5393
|
var courseId = getQuery("yc_id");
|
|
5389
5394
|
var sectionId = getQuery("s_id");
|
|
5390
5395
|
if (videoId && watchTime && courseId && sectionId) {
|
|
5391
|
-
console.log("请求接口2222");
|
|
5396
|
+
console.log("请求接口2222", config);
|
|
5392
5397
|
http.post("".concat(urllocation, "/chat-service/public/v1.0/knowledge-base/questions:recommend"), {
|
|
5393
5398
|
"recommendedQuestions": flag == 2 ? recommendeQuestionID.current : [
|
|
5394
5399
|
""
|
|
@@ -5627,21 +5632,35 @@ var CustomerService = function(props) {
|
|
|
5627
5632
|
/*#__PURE__*/ jsx("span", {
|
|
5628
5633
|
className: styles.line
|
|
5629
5634
|
}),
|
|
5630
|
-
/*#__PURE__*/
|
|
5635
|
+
/*#__PURE__*/ jsxs("i", {
|
|
5636
|
+
className: styles.popover_main,
|
|
5631
5637
|
onClick: function() {
|
|
5632
5638
|
onEvent(serverName + serverUrl(), "click_智能问答_退出全屏", "提交");
|
|
5633
5639
|
setFirstLoad(false); //重启滚动条在最上方
|
|
5634
5640
|
setShowType(3);
|
|
5635
5641
|
},
|
|
5636
|
-
children:
|
|
5642
|
+
children: [
|
|
5643
|
+
/*#__PURE__*/ jsx(CustomExitFullScreen$1, {}),
|
|
5644
|
+
/*#__PURE__*/ jsx("span", {
|
|
5645
|
+
className: styles.popover,
|
|
5646
|
+
children: "退出全屏"
|
|
5647
|
+
})
|
|
5648
|
+
]
|
|
5637
5649
|
}),
|
|
5638
|
-
/*#__PURE__*/
|
|
5650
|
+
/*#__PURE__*/ jsxs("i", {
|
|
5651
|
+
className: styles.popover_main,
|
|
5639
5652
|
onClick: function() {
|
|
5640
5653
|
onEvent(serverName + serverUrl(), "click_智能问答_退出全屏", "提交");
|
|
5641
5654
|
setShowType(3);
|
|
5642
5655
|
setFirstLoad(false); //重启滚动条在最上方
|
|
5643
5656
|
},
|
|
5644
|
-
children:
|
|
5657
|
+
children: [
|
|
5658
|
+
/*#__PURE__*/ jsx(CloseOutlined, {}),
|
|
5659
|
+
/*#__PURE__*/ jsx("span", {
|
|
5660
|
+
className: styles.popover,
|
|
5661
|
+
children: "退出全屏"
|
|
5662
|
+
})
|
|
5663
|
+
]
|
|
5645
5664
|
})
|
|
5646
5665
|
]
|
|
5647
5666
|
})
|
|
@@ -5690,7 +5709,8 @@ var CustomerService = function(props) {
|
|
|
5690
5709
|
/*#__PURE__*/ jsx("span", {
|
|
5691
5710
|
className: styles.line
|
|
5692
5711
|
}),
|
|
5693
|
-
showType == 1 ? /*#__PURE__*/
|
|
5712
|
+
showType == 1 ? /*#__PURE__*/ jsxs("i", {
|
|
5713
|
+
className: styles.popover_main,
|
|
5694
5714
|
onClick: function() {
|
|
5695
5715
|
onEvent(serverName + serverUrl(), "click_智能问答_全屏", "提交");
|
|
5696
5716
|
// switchDialogBox(3, true);
|
|
@@ -5703,14 +5723,27 @@ var CustomerService = function(props) {
|
|
|
5703
5723
|
}, 300);
|
|
5704
5724
|
// childRef.current.roomsListTimer();
|
|
5705
5725
|
},
|
|
5706
|
-
children:
|
|
5707
|
-
|
|
5726
|
+
children: [
|
|
5727
|
+
/*#__PURE__*/ jsx(CustomFullScreen$1, {}),
|
|
5728
|
+
/*#__PURE__*/ jsx("span", {
|
|
5729
|
+
className: styles.popover,
|
|
5730
|
+
children: "\xa0\xa0全屏\xa0\xa0"
|
|
5731
|
+
})
|
|
5732
|
+
]
|
|
5733
|
+
}) : /*#__PURE__*/ jsxs("i", {
|
|
5734
|
+
className: styles.popover_main,
|
|
5708
5735
|
onClick: function() {
|
|
5709
5736
|
onEvent(serverName + serverUrl(), "click_智能问答_退出全屏", "提交");
|
|
5710
5737
|
// switchDialogBox(1, true);
|
|
5711
5738
|
setShowType(1);
|
|
5712
5739
|
},
|
|
5713
|
-
children:
|
|
5740
|
+
children: [
|
|
5741
|
+
/*#__PURE__*/ jsx(CustomExitFullScreen$1, {}),
|
|
5742
|
+
/*#__PURE__*/ jsx("span", {
|
|
5743
|
+
className: styles.popover,
|
|
5744
|
+
children: "退出全屏"
|
|
5745
|
+
})
|
|
5746
|
+
]
|
|
5714
5747
|
}),
|
|
5715
5748
|
/*#__PURE__*/ jsx("i", {
|
|
5716
5749
|
onClick: function() {
|
|
@@ -6120,7 +6153,7 @@ var CustomerService = function(props) {
|
|
|
6120
6153
|
// 不在智能客服窗口,并已经点击了召唤老师,并有召唤老师权限
|
|
6121
6154
|
isAiChatWindow && answerMode != 1 && userData.modules.some(function(item) {
|
|
6122
6155
|
return item.short == "TeacherAnswer";
|
|
6123
|
-
}) && historyMessageList[i - 1].extraInfo && JSON.parse(historyMessageList[i - 1].extraInfo).length > 0 && JSON.parse(historyMessageList[i - 1].extraInfo)[0].key != "imageUrl" && /*#__PURE__*/ jsx("span", {
|
|
6156
|
+
}) && historyMessageList[i - 1] && historyMessageList[i - 1].extraInfo && JSON.parse(historyMessageList[i - 1].extraInfo).length > 0 && JSON.parse(historyMessageList[i - 1].extraInfo)[0].key != "imageUrl" && /*#__PURE__*/ jsx("span", {
|
|
6124
6157
|
className: styles.ask_question,
|
|
6125
6158
|
onClick: function() {
|
|
6126
6159
|
setAnswerMode(1);
|
|
@@ -6267,7 +6300,7 @@ var CustomerService = function(props) {
|
|
|
6267
6300
|
}
|
|
6268
6301
|
//3、是否显示召唤老师回答按钮
|
|
6269
6302
|
var findTeacherBtn = false;
|
|
6270
|
-
if (!showStopBtn && isAiChatWindow && (extraInfo != undefined && JSON.parse(extraInfo).length > 0 && JSON.parse(extraInfo)[0].key == "questionId" || extraInfo == null) && historyMessageList[i - 1].extraInfo && JSON.parse(historyMessageList[i - 1].extraInfo).length > 0 && JSON.parse(historyMessageList[i - 1].extraInfo)[0].key != "imageUrl") {
|
|
6303
|
+
if (!showStopBtn && isAiChatWindow && (extraInfo != undefined && JSON.parse(extraInfo).length > 0 && JSON.parse(extraInfo)[0].key == "questionId" || extraInfo == null) && historyMessageList[i - 1] && historyMessageList[i - 1].extraInfo && JSON.parse(historyMessageList[i - 1].extraInfo).length > 0 && JSON.parse(historyMessageList[i - 1].extraInfo)[0].key != "imageUrl") {
|
|
6271
6304
|
findTeacherBtn = true;
|
|
6272
6305
|
}
|
|
6273
6306
|
return /*#__PURE__*/ jsxs("div", {
|
|
@@ -6694,6 +6727,7 @@ var CustomerService = function(props) {
|
|
|
6694
6727
|
if (roomList.length > 0 && roomList[0].roomId != roomId) {
|
|
6695
6728
|
sendToTeacher(2);
|
|
6696
6729
|
} else {
|
|
6730
|
+
setFinished(false);
|
|
6697
6731
|
clearTimeout(timer.current);
|
|
6698
6732
|
setQuestionsList([]);
|
|
6699
6733
|
setAnswerMode(-1);
|
|
@@ -6719,7 +6753,7 @@ var CustomerService = function(props) {
|
|
|
6719
6753
|
onFocus: function() {
|
|
6720
6754
|
onEvent(serverName + serverUrl(), "click_智能问答_输入框", "提交");
|
|
6721
6755
|
},
|
|
6722
|
-
disabled: !disabled,
|
|
6756
|
+
disabled: !disabled || !finished,
|
|
6723
6757
|
maxLength: 1000,
|
|
6724
6758
|
id: "con_textarea"
|
|
6725
6759
|
}),
|
|
@@ -6751,8 +6785,10 @@ var CustomerService = function(props) {
|
|
|
6751
6785
|
}) && contactsList.length > 0 && contactsList[0].roomId == roomId && /*#__PURE__*/ jsx("p", {
|
|
6752
6786
|
className: styles.screenshot,
|
|
6753
6787
|
children: /*#__PURE__*/ jsx("i", {
|
|
6754
|
-
className: "".concat(!
|
|
6788
|
+
className: "".concat(!finished ? styles.disabled : ""),
|
|
6755
6789
|
onClick: function() {
|
|
6790
|
+
if (!finished) return;
|
|
6791
|
+
setSaveShowType(showType);
|
|
6756
6792
|
setShowType(5);
|
|
6757
6793
|
},
|
|
6758
6794
|
children: /*#__PURE__*/ jsx(CustomScreenshot$1, {})
|
|
@@ -6765,7 +6801,7 @@ var CustomerService = function(props) {
|
|
|
6765
6801
|
children: /*#__PURE__*/ jsx("i", {
|
|
6766
6802
|
className: "".concat(!disabled || keyWord.trim() == "" ? styles.disabled : ""),
|
|
6767
6803
|
onClick: function() {
|
|
6768
|
-
if (
|
|
6804
|
+
if (disabled && keyWord.trim() == "") return;
|
|
6769
6805
|
setCitationContent({});
|
|
6770
6806
|
setButtomHei(45);
|
|
6771
6807
|
if (keyWord.trim() != "") {
|
|
@@ -7439,7 +7475,11 @@ var CustomerService = function(props) {
|
|
|
7439
7475
|
imgBese64: imgBese64,
|
|
7440
7476
|
saveScreenshotBese64: function(base64) {
|
|
7441
7477
|
setScreenshotBese64(base64);
|
|
7442
|
-
|
|
7478
|
+
if (saveShowType != -1) {
|
|
7479
|
+
setShowType(saveShowType);
|
|
7480
|
+
} else {
|
|
7481
|
+
setShowType(1);
|
|
7482
|
+
}
|
|
7443
7483
|
},
|
|
7444
7484
|
cancelScreenshot: function() {
|
|
7445
7485
|
setShowType(1);
|