bhd-components 0.6.2 → 0.6.4

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 (35) hide show
  1. package/dist/{9eaa797e.esm.es5.development.js → 9674e68c.esm.es5.development.js} +1 -1
  2. package/dist/{587f2764.esm.es5.production.js → a57a24b2.esm.es5.production.js} +1 -1
  3. package/dist/index.esm.es5.development.css +1690 -809
  4. package/dist/index.esm.es5.development.js +495 -370
  5. package/dist/index.esm.es5.production.css +1 -1
  6. package/dist/index.esm.es5.production.js +1 -1
  7. package/es2017/bhdSelect/index.module.less +4 -0
  8. package/es2017/customerService/{contactsList/index.js → contactsList.js} +92 -76
  9. package/es2017/customerService/function.d.ts +1 -1
  10. package/es2017/customerService/function.js +10 -2
  11. package/es2017/customerService/{historyFun/index.d.ts → historyFun.d.ts} +0 -1
  12. package/es2017/customerService/{historyFun/index.js → historyFun.js} +62 -16
  13. package/es2017/customerService/index.d.ts +3 -3
  14. package/es2017/customerService/index.js +143 -82
  15. package/es2017/customerService/index.module.less +496 -6
  16. package/es2017/customerService/index2.module.less +1282 -0
  17. package/es2017/typings.d.ts +12 -0
  18. package/esm/bhdSelect/index.module.less +4 -0
  19. package/esm/customerService/{contactsList/index.js → contactsList.js} +83 -65
  20. package/esm/customerService/function.d.ts +1 -1
  21. package/esm/customerService/function.js +10 -1
  22. package/esm/customerService/{historyFun/index.d.ts → historyFun.d.ts} +0 -1
  23. package/esm/customerService/{historyFun/index.js → historyFun.js} +63 -16
  24. package/esm/customerService/index.d.ts +3 -3
  25. package/esm/customerService/index.js +173 -112
  26. package/esm/customerService/index.module.less +496 -6
  27. package/esm/customerService/index2.module.less +1282 -0
  28. package/esm/typings.d.ts +12 -0
  29. package/package.json +1 -1
  30. package/es2017/customerService/contactsList/index.module.less +0 -208
  31. package/es2017/customerService/historyFun/index.module.less +0 -223
  32. package/esm/customerService/contactsList/index.module.less +0 -208
  33. package/esm/customerService/historyFun/index.module.less +0 -223
  34. /package/es2017/customerService/{contactsList/index.d.ts → contactsList.d.ts} +0 -0
  35. /package/esm/customerService/{contactsList/index.d.ts → contactsList.d.ts} +0 -0
@@ -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, y as Remarkable, D as Drawer, H as HighlightJS } from './9eaa797e.esm.es5.development.js';
2
- export { A as Affix, B as Alert, F as Anchor, aA as App, G as AutoComplete, J as Avatar, N as BackTop, O as Badge, Q as Breadcrumb, U as Button, V as Calendar, W as Card, X as Carousel, Y as Cascader, Z as Checkbox, $ as Col, a0 as Collapse, a1 as DatePicker, a2 as Descriptions, a3 as Divider, D as Drawer, a4 as Dropdown, a5 as Empty, K as FloatButton, a6 as Form, a7 as Grid, a8 as Image, v as Input, a9 as InputNumber, aa as Layout, ab as List, ac as Mentions, ad as Menu, M as Modal, af as Popconfirm, ag as Popover, ah as Progress, aH as QRCode, ai as Radio, aj as Rate, ak as Result, al as Row, am as Segmented, g as Select, an as Skeleton, ao as Slider, ap as Space, aq as Spin, ar as Statistic, as as Steps, at as Switch, au as Tabs, av as Tag, ax as TimePicker, ay as Timeline, T as Tooltip, az as Tour, aB as Transfer, aC as Tree, aD as TreeSelect, aE as Typography, aF as Upload, aG as Watermark, aJ as en_US, ae as notification, aw as theme, aI as version, z as zh_CN } from './9eaa797e.esm.es5.development.js';
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, y as Remarkable, D as Drawer, H as HighlightJS } from './9674e68c.esm.es5.development.js';
2
+ export { A as Affix, B as Alert, F as Anchor, aA as App, G as AutoComplete, J as Avatar, N as BackTop, O as Badge, Q as Breadcrumb, U as Button, V as Calendar, W as Card, X as Carousel, Y as Cascader, Z as Checkbox, $ as Col, a0 as Collapse, a1 as DatePicker, a2 as Descriptions, a3 as Divider, D as Drawer, a4 as Dropdown, a5 as Empty, K as FloatButton, a6 as Form, a7 as Grid, a8 as Image, v as Input, a9 as InputNumber, aa as Layout, ab as List, ac as Mentions, ad as Menu, M as Modal, af as Popconfirm, ag as Popover, ah as Progress, aH as QRCode, ai as Radio, aj as Rate, ak as Result, al as Row, am as Segmented, g as Select, an as Skeleton, ao as Slider, ap as Space, aq as Spin, ar as Statistic, as as Steps, at as Switch, au as Tabs, av as Tag, ax as TimePicker, ay as Timeline, T as Tooltip, az as Tour, aB as Transfer, aC as Tree, aD as TreeSelect, aE as Typography, aF as Upload, aG as Watermark, aJ as en_US, ae as notification, aw as theme, aI as version, z as zh_CN } from './9674e68c.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';
@@ -130,7 +130,7 @@ var TextTootip = function(props) {
130
130
  };
131
131
  var TextTootip$1 = TextTootip;
132
132
 
133
- var modules_63b47c51$b = {"Table":"index_module_Table__dfa8dab0","SmallTable":"index_module_SmallTable__dfa8dab0","columnTootipClassName":"index_module_columnTootipClassName__dfa8dab0"};
133
+ var modules_63b47c51$9 = {"Table":"index_module_Table__dfa8dab0","SmallTable":"index_module_SmallTable__dfa8dab0","columnTootipClassName":"index_module_columnTootipClassName__dfa8dab0"};
134
134
 
135
135
  var widthPercentage = /^\d+%$/;
136
136
  var widthPx = /^\d+px$/;
@@ -250,7 +250,7 @@ var Table = function(props) {
250
250
  },
251
251
  title: text,
252
252
  trigger: "hover",
253
- overlayClassName: columnTootipClassName || modules_63b47c51$b.columnTootipClassName,
253
+ overlayClassName: columnTootipClassName || modules_63b47c51$9.columnTootipClassName,
254
254
  color: columnTootipColor || "#FFF",
255
255
  children: /*#__PURE__*/ jsx("span", {
256
256
  children: text
@@ -356,7 +356,7 @@ var Table = function(props) {
356
356
  }
357
357
  });
358
358
  return /*#__PURE__*/ jsx("div", {
359
- className: "".concat(modules_63b47c51$b.Table, " ").concat(kind === "simple" ? modules_63b47c51$b.SmallTable : ""),
359
+ className: "".concat(modules_63b47c51$9.Table, " ").concat(kind === "simple" ? modules_63b47c51$9.SmallTable : ""),
360
360
  ref: tableRef,
361
361
  children: /*#__PURE__*/ jsx(Table$2, _object_spread({}, config))
362
362
  });
@@ -371,7 +371,7 @@ Table.ColumnGroup = Table$2.ColumnGroup;
371
371
  // Table.Summary = AntdTable.Summary;
372
372
  var Table$1 = Table;
373
373
 
374
- var modules_63b47c51$a = {"customSuccess":"index_module_customSuccess__84cecc41","customWarning":"index_module_customWarning__84cecc41","customError":"index_module_customError__84cecc41"};
374
+ var modules_63b47c51$8 = {"customSuccess":"index_module_customSuccess__84cecc41","customWarning":"index_module_customWarning__84cecc41","customError":"index_module_customError__84cecc41"};
375
375
 
376
376
  var CustomCloseSvg = function() {
377
377
  return /*#__PURE__*/ jsx("svg", {
@@ -867,7 +867,7 @@ var CustomAiIcon$1 = CustomAiIcon;
867
867
 
868
868
  var BhdMessage = _object_spread_props(_object_spread({}, message), {
869
869
  customSuccess: function(config) {
870
- var className = modules_63b47c51$a.customSuccess;
870
+ var className = modules_63b47c51$8.customSuccess;
871
871
  if (typeof config === "string") {
872
872
  return message.success({
873
873
  content: config,
@@ -879,7 +879,7 @@ var BhdMessage = _object_spread_props(_object_spread({}, message), {
879
879
  }));
880
880
  },
881
881
  customWarning: function(config) {
882
- var className = modules_63b47c51$a.customWarning;
882
+ var className = modules_63b47c51$8.customWarning;
883
883
  if (typeof config === "string") {
884
884
  return message.warning({
885
885
  content: config,
@@ -891,7 +891,7 @@ var BhdMessage = _object_spread_props(_object_spread({}, message), {
891
891
  }));
892
892
  },
893
893
  customError: function(config) {
894
- var className = modules_63b47c51$a.customError;
894
+ var className = modules_63b47c51$8.customError;
895
895
  if (typeof config === "string") {
896
896
  return message.error({
897
897
  content: config,
@@ -907,17 +907,17 @@ var BhdMessage = _object_spread_props(_object_spread({}, message), {
907
907
  });
908
908
  var BhdMessage$1 = BhdMessage;
909
909
 
910
- var modules_63b47c51$9 = {"pagination":"index_module_pagination__ea803a71"};
910
+ var modules_63b47c51$7 = {"pagination":"index_module_pagination__ea803a71"};
911
911
 
912
912
  var BhdPagination = function(props) {
913
- var className = "".concat(modules_63b47c51$9.pagination, " ").concat(props.className || "");
913
+ var className = "".concat(modules_63b47c51$7.pagination, " ").concat(props.className || "");
914
914
  return /*#__PURE__*/ jsx(Pagination, _object_spread_props(_object_spread({}, props), {
915
915
  className: className
916
916
  }));
917
917
  };
918
918
  var BhdPagination$1 = BhdPagination;
919
919
 
920
- var modules_63b47c51$8 = {"BhdTableSelect":"index_module_BhdTableSelect__1274ed5e"};
920
+ var modules_63b47c51$6 = {"BhdTableSelect":"index_module_BhdTableSelect__1274ed5e"};
921
921
 
922
922
  var BhdTableSelect = function(props) {
923
923
  var _props_className = props.// initOption=[],
@@ -971,7 +971,7 @@ var BhdTableSelect = function(props) {
971
971
  suffixIcon: suffixIcon ? suffixIcon : /*#__PURE__*/ jsx(CaretDownOutlined, {})
972
972
  });
973
973
  return /*#__PURE__*/ jsx("div", {
974
- className: "".concat(modules_63b47c51$8.BhdTableSelect, " ").concat(className),
974
+ className: "".concat(modules_63b47c51$6.BhdTableSelect, " ").concat(className),
975
975
  ref: tableSelectRef,
976
976
  children: /*#__PURE__*/ jsx(Select, _object_spread_props(_object_spread({}, config), {
977
977
  children: children
@@ -981,7 +981,7 @@ var BhdTableSelect = function(props) {
981
981
  BhdTableSelect.Option = Select.Option;
982
982
  var BhdTableSelect$1 = BhdTableSelect;
983
983
 
984
- var modules_63b47c51$7 = {"titleBar":"index_module_titleBar__241d4397","left":"index_module_left__241d4397","leftIcon":"index_module_leftIcon__241d4397","leftContent":"index_module_leftContent__241d4397","leftTitle":"index_module_leftTitle__241d4397","leftSubTitle":"index_module_leftSubTitle__241d4397","right":"index_module_right__241d4397"};
984
+ var modules_63b47c51$5 = {"titleBar":"index_module_titleBar__241d4397","left":"index_module_left__241d4397","leftIcon":"index_module_leftIcon__241d4397","leftContent":"index_module_leftContent__241d4397","leftTitle":"index_module_leftTitle__241d4397","leftSubTitle":"index_module_leftSubTitle__241d4397","right":"index_module_right__241d4397"};
985
985
 
986
986
  var TitleBar = function(props) {
987
987
  var title = props.title, leftIcon = props.leftIcon, subTitle = props.subTitle, rightContent = props.rightContent, _props_wrapClassName = props.wrapClassName, wrapClassName = _props_wrapClassName === void 0 ? "" : _props_wrapClassName, _props_rightMaxWidth = props.rightMaxWidth, rightMaxWidth = _props_rightMaxWidth === void 0 ? 45 : _props_rightMaxWidth, _props_leftIconClassName = props.leftIconClassName, leftIconClassName = _props_leftIconClassName === void 0 ? "" : _props_leftIconClassName, _props_leftTitleClassName = props.leftTitleClassName, leftTitleClassName = _props_leftTitleClassName === void 0 ? "" : _props_leftTitleClassName, _props_leftSubTitleClassName = props.leftSubTitleClassName, leftSubTitleClassName = _props_leftSubTitleClassName === void 0 ? "" : _props_leftSubTitleClassName, _props_rightClassName = props.rightClassName, rightClassName = _props_rightClassName === void 0 ? "" : _props_rightClassName, _props_leftClassName = props.leftClassName, leftClassName = _props_leftClassName === void 0 ? "" : _props_leftClassName;
@@ -1031,25 +1031,25 @@ var TitleBar = function(props) {
1031
1031
  screenWidth
1032
1032
  ]);
1033
1033
  return /*#__PURE__*/ jsxs("div", {
1034
- className: "".concat(modules_63b47c51$7.titleBar, " ").concat(wrapClassName),
1034
+ className: "".concat(modules_63b47c51$5.titleBar, " ").concat(wrapClassName),
1035
1035
  ref: titleBarRef,
1036
1036
  children: [
1037
1037
  /*#__PURE__*/ jsxs("div", {
1038
- className: "".concat(modules_63b47c51$7.left, " ").concat(leftClassName),
1038
+ className: "".concat(modules_63b47c51$5.left, " ").concat(leftClassName),
1039
1039
  children: [
1040
1040
  leftIcon && /*#__PURE__*/ jsx("div", {
1041
- className: "".concat(modules_63b47c51$7.leftIcon, " ").concat(leftIconClassName),
1041
+ className: "".concat(modules_63b47c51$5.leftIcon, " ").concat(leftIconClassName),
1042
1042
  children: leftIcon
1043
1043
  }),
1044
1044
  /*#__PURE__*/ jsxs("div", {
1045
- className: modules_63b47c51$7.leftContent,
1045
+ className: modules_63b47c51$5.leftContent,
1046
1046
  children: [
1047
1047
  /*#__PURE__*/ jsx("div", {
1048
- className: "".concat(modules_63b47c51$7.leftTitle, " ").concat(leftTitleClassName),
1048
+ className: "".concat(modules_63b47c51$5.leftTitle, " ").concat(leftTitleClassName),
1049
1049
  children: title
1050
1050
  }),
1051
1051
  subTitle && /*#__PURE__*/ jsx("div", {
1052
- className: "".concat(modules_63b47c51$7.leftSubTitle, " ").concat(leftSubTitleClassName),
1052
+ className: "".concat(modules_63b47c51$5.leftSubTitle, " ").concat(leftSubTitleClassName),
1053
1053
  children: subTitle
1054
1054
  })
1055
1055
  ]
@@ -1057,7 +1057,7 @@ var TitleBar = function(props) {
1057
1057
  ]
1058
1058
  }),
1059
1059
  rightContent && /*#__PURE__*/ jsx("div", {
1060
- className: "".concat(modules_63b47c51$7.right, " ").concat(rightClassName),
1060
+ className: "".concat(modules_63b47c51$5.right, " ").concat(rightClassName),
1061
1061
  ref: rightContentRef,
1062
1062
  children: renderRightContent()
1063
1063
  })
@@ -1066,7 +1066,7 @@ var TitleBar = function(props) {
1066
1066
  };
1067
1067
  var TitleBar$1 = TitleBar;
1068
1068
 
1069
- var modules_63b47c51$6 = {"AppViewImage":"index_module_AppViewImage__e4b9963d","viewImgBody":"index_module_viewImgBody__e4b9963d","viewImgContent":"index_module_viewImgContent__e4b9963d","viewImgAction":"index_module_viewImgAction__e4b9963d","viewImgBody_load":"index_module_viewImgBody_load__e4b9963d","viewImgBody_pic":"index_module_viewImgBody_pic__e4b9963d","viewImgBody_pre":"index_module_viewImgBody_pre__e4b9963d","viewImgBody_next":"index_module_viewImgBody_next__e4b9963d","viewImgBodyScale":"index_module_viewImgBodyScale__e4b9963d","viewImgBodyScale_minu":"index_module_viewImgBodyScale_minu__e4b9963d","viewImgBodyScale_add":"index_module_viewImgBodyScale_add__e4b9963d","viewImgBodyScale_value":"index_module_viewImgBodyScale_value__e4b9963d","viewImgInfo":"index_module_viewImgInfo__e4b9963d"};
1069
+ var modules_63b47c51$4 = {"AppViewImage":"index_module_AppViewImage__e4b9963d","viewImgBody":"index_module_viewImgBody__e4b9963d","viewImgContent":"index_module_viewImgContent__e4b9963d","viewImgAction":"index_module_viewImgAction__e4b9963d","viewImgBody_load":"index_module_viewImgBody_load__e4b9963d","viewImgBody_pic":"index_module_viewImgBody_pic__e4b9963d","viewImgBody_pre":"index_module_viewImgBody_pre__e4b9963d","viewImgBody_next":"index_module_viewImgBody_next__e4b9963d","viewImgBodyScale":"index_module_viewImgBodyScale__e4b9963d","viewImgBodyScale_minu":"index_module_viewImgBodyScale_minu__e4b9963d","viewImgBodyScale_add":"index_module_viewImgBodyScale_add__e4b9963d","viewImgBodyScale_value":"index_module_viewImgBodyScale_value__e4b9963d","viewImgInfo":"index_module_viewImgInfo__e4b9963d"};
1070
1070
 
1071
1071
  //获取css样式
1072
1072
  var getStyle = function getStyle(dom, key) {
@@ -1091,7 +1091,7 @@ var Success$1 = Success;
1091
1091
  var Info = "data:image/png;base64,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";
1092
1092
  var Info$1 = Info;
1093
1093
 
1094
- var modules_63b47c51$5 = {"confirm":"index_module_confirm__fecd33f4","success":"index_module_success__fecd33f4","custom":"index_module_custom__fecd33f4","noCancel":"index_module_noCancel__fecd33f4","noButton":"index_module_noButton__fecd33f4","haveComfirm":"index_module_haveComfirm__fecd33f4"};
1094
+ var modules_63b47c51$3 = {"confirm":"index_module_confirm__fecd33f4","success":"index_module_success__fecd33f4","custom":"index_module_custom__fecd33f4","noCancel":"index_module_noCancel__fecd33f4","noButton":"index_module_noButton__fecd33f4","haveComfirm":"index_module_haveComfirm__fecd33f4"};
1095
1095
 
1096
1096
  var initConFirmModal = function(obj) {
1097
1097
  var title = obj.title, content = obj.content, _obj_cancelBtn = obj.cancelBtn, cancelBtn = _obj_cancelBtn === void 0 ? true : _obj_cancelBtn, _obj_okText = obj.okText, okText = _obj_okText === void 0 ? "确定" : _obj_okText, _obj_keyboard = obj.keyboard, keyboard = _obj_keyboard === void 0 ? false : _obj_keyboard, _obj_cancelText = obj.cancelText, cancelText = _obj_cancelText === void 0 ? "取消" : _obj_cancelText, _obj_autoFocusButton = obj.autoFocusButton, autoFocusButton = _obj_autoFocusButton === void 0 ? null : _obj_autoFocusButton;
@@ -1127,7 +1127,7 @@ var initConFirmModal = function(obj) {
1127
1127
  })
1128
1128
  ]
1129
1129
  }),
1130
- className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel)
1130
+ className: "".concat(obj.className || "", " ").concat(modules_63b47c51$3.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$3.noCancel)
1131
1131
  });
1132
1132
  };
1133
1133
  var initSuccessModal = function(obj) {
@@ -1165,7 +1165,7 @@ var initSuccessModal = function(obj) {
1165
1165
  })
1166
1166
  ]
1167
1167
  }),
1168
- className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.success, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel)
1168
+ className: "".concat(obj.className || "", " ").concat(modules_63b47c51$3.success, " ").concat(cancelBtn ? "" : modules_63b47c51$3.noCancel)
1169
1169
  });
1170
1170
  };
1171
1171
  var initCustomModal = function(obj) {
@@ -1191,7 +1191,7 @@ var initCustomModal = function(obj) {
1191
1191
  })
1192
1192
  ]
1193
1193
  }),
1194
- className: "".concat(modules_63b47c51$5.custom, " ").concat(obj.className || "", " ").concat(cancelBtn ? "" : okBtn ? modules_63b47c51$5.haveComfirm : modules_63b47c51$5.noButton)
1194
+ className: "".concat(modules_63b47c51$3.custom, " ").concat(obj.className || "", " ").concat(cancelBtn ? "" : okBtn ? modules_63b47c51$3.haveComfirm : modules_63b47c51$3.noButton)
1195
1195
  });
1196
1196
  };
1197
1197
  var initInfoModal = function(obj) {
@@ -1228,7 +1228,7 @@ var initInfoModal = function(obj) {
1228
1228
  })
1229
1229
  ]
1230
1230
  }),
1231
- className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.success, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel)
1231
+ className: "".concat(obj.className || "", " ").concat(modules_63b47c51$3.success, " ").concat(cancelBtn ? "" : modules_63b47c51$3.noCancel)
1232
1232
  });
1233
1233
  };
1234
1234
  var initWarnModal = function(obj) {
@@ -1265,7 +1265,7 @@ var initWarnModal = function(obj) {
1265
1265
  })
1266
1266
  ]
1267
1267
  }),
1268
- className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel, " ")
1268
+ className: "".concat(obj.className || "", " ").concat(modules_63b47c51$3.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$3.noCancel, " ")
1269
1269
  });
1270
1270
  };
1271
1271
  var BhdTipModal = {
@@ -1354,7 +1354,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
1354
1354
  _define_property(_assert_this_initialized(_this), "moveImg", function(ev) {
1355
1355
  var _this_state = _this.state, imgLeft = _this_state.imgLeft, imgTop = _this_state.imgTop;
1356
1356
  ev.preventDefault();
1357
- var dom = document.getElementsByClassName("".concat(modules_63b47c51$6.viewImgBody_pic))[0];
1357
+ var dom = document.getElementsByClassName("".concat(modules_63b47c51$4.viewImgBody_pic))[0];
1358
1358
  if (!dom) return;
1359
1359
  if (imgLeft == "auto") {
1360
1360
  imgLeft = getStyle(dom, "left");
@@ -1650,13 +1650,13 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
1650
1650
  var _this_state = this.state, scaleValue = _this_state.scaleValue, imgSrc = _this_state.imgSrc, imgLeft = _this_state.imgLeft, imgTop = _this_state.imgTop, rotateValue = _this_state.rotateValue, loading = _this_state.loading, multiSelect = _this_state.multiSelect, imgError = _this_state.imgError;
1651
1651
  var _this_props = this.props, content = _this_props.content, download = _this_props.download;
1652
1652
  return /*#__PURE__*/ jsxs("div", {
1653
- className: modules_63b47c51$6.viewImgBody,
1653
+ className: modules_63b47c51$4.viewImgBody,
1654
1654
  children: [
1655
1655
  /*#__PURE__*/ jsxs("div", {
1656
- className: modules_63b47c51$6.viewImgContent,
1656
+ className: modules_63b47c51$4.viewImgContent,
1657
1657
  children: [
1658
1658
  /*#__PURE__*/ jsxs("div", {
1659
- className: modules_63b47c51$6.viewImgAction,
1659
+ className: modules_63b47c51$4.viewImgAction,
1660
1660
  children: [
1661
1661
  /*#__PURE__*/ jsx("span", {
1662
1662
  title: "旋转",
@@ -1676,11 +1676,11 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
1676
1676
  ]
1677
1677
  }),
1678
1678
  /*#__PURE__*/ jsxs("div", {
1679
- className: modules_63b47c51$6.viewImgBody,
1679
+ className: modules_63b47c51$4.viewImgBody,
1680
1680
  children: [
1681
1681
  loading ? /*#__PURE__*/ jsx("img", {
1682
1682
  src: Loading,
1683
- className: modules_63b47c51$6.viewImgBody_load
1683
+ className: modules_63b47c51$4.viewImgBody_load
1684
1684
  }, "load") : imgError ? /*#__PURE__*/ jsx("div", {
1685
1685
  style: {
1686
1686
  color: "#FFFFFF"
@@ -1696,19 +1696,19 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
1696
1696
  left: imgLeft == "auto" ? "auto" : imgLeft + "px",
1697
1697
  top: imgTop == "auto" ? "auto" : imgTop + "px"
1698
1698
  },
1699
- className: modules_63b47c51$6.viewImgBody_pic,
1699
+ className: modules_63b47c51$4.viewImgBody_pic,
1700
1700
  onLoad: this.imgLoad,
1701
1701
  onError: this.imgErr
1702
1702
  }, "img"),
1703
1703
  multiSelect && /*#__PURE__*/ jsxs(Fragment, {
1704
1704
  children: [
1705
1705
  this.state.curIndex !== 0 && /*#__PURE__*/ jsx("div", {
1706
- className: modules_63b47c51$6.viewImgBody_pre,
1706
+ className: modules_63b47c51$4.viewImgBody_pre,
1707
1707
  onClick: this.preChange,
1708
1708
  children: /*#__PURE__*/ jsx(LeftOutlined, {})
1709
1709
  }),
1710
1710
  this.state.curIndex < this.props.multiSelect.length - 1 && /*#__PURE__*/ jsx("div", {
1711
- className: modules_63b47c51$6.viewImgBody_next,
1711
+ className: modules_63b47c51$4.viewImgBody_next,
1712
1712
  onClick: this.nextChange,
1713
1713
  children: /*#__PURE__*/ jsx(RightOutlined, {})
1714
1714
  })
@@ -1717,10 +1717,10 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
1717
1717
  ]
1718
1718
  }),
1719
1719
  /*#__PURE__*/ jsxs("div", {
1720
- className: modules_63b47c51$6.viewImgBodyScale,
1720
+ className: modules_63b47c51$4.viewImgBodyScale,
1721
1721
  children: [
1722
1722
  /*#__PURE__*/ jsx("span", {
1723
- className: modules_63b47c51$6.viewImgBodyScale_minu,
1723
+ className: modules_63b47c51$4.viewImgBodyScale_minu,
1724
1724
  onClick: function() {
1725
1725
  scaleValue = scaleValue - 10;
1726
1726
  _this.scaleChange(scaleValue);
@@ -1728,7 +1728,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
1728
1728
  children: /*#__PURE__*/ jsx(MinusOutlined, {})
1729
1729
  }),
1730
1730
  /*#__PURE__*/ jsxs("span", {
1731
- className: modules_63b47c51$6.viewImgBodyScale_value,
1731
+ className: modules_63b47c51$4.viewImgBodyScale_value,
1732
1732
  onClick: this.reset,
1733
1733
  children: [
1734
1734
  scaleValue,
@@ -1736,7 +1736,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
1736
1736
  ]
1737
1737
  }),
1738
1738
  /*#__PURE__*/ jsx("span", {
1739
- className: modules_63b47c51$6.viewImgBodyScale_add,
1739
+ className: modules_63b47c51$4.viewImgBodyScale_add,
1740
1740
  onClick: function() {
1741
1741
  scaleValue = scaleValue + 10;
1742
1742
  _this.scaleChange(scaleValue);
@@ -1748,7 +1748,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
1748
1748
  ]
1749
1749
  }),
1750
1750
  content && /*#__PURE__*/ jsx("div", {
1751
- className: modules_63b47c51$6.viewImgInfo,
1751
+ className: modules_63b47c51$4.viewImgInfo,
1752
1752
  children: content()
1753
1753
  })
1754
1754
  ]
@@ -1781,7 +1781,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
1781
1781
  maskStyle: {
1782
1782
  background: "rgba(0, 0, 0, 0.65)"
1783
1783
  },
1784
- wrapClassName: "".concat(modules_63b47c51$6.AppViewImage, " ").concat(className || ""),
1784
+ wrapClassName: "".concat(modules_63b47c51$4.AppViewImage, " ").concat(className || ""),
1785
1785
  children: visible && /*#__PURE__*/ jsx(ViewImage, _object_spread_props(_object_spread({}, props), {
1786
1786
  ref: viewRef
1787
1787
  }))
@@ -1789,7 +1789,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
1789
1789
  });
1790
1790
  var AppViewImage$1 = AppViewImage;
1791
1791
 
1792
- var modules_63b47c51$4 = {"BhdSelect":"index_module_BhdSelect__d1717d73","bhdSelect_option":"index_module_bhdSelect_option__d1717d73","bhdSelectDrop":"index_module_bhdSelectDrop__d1717d73","selectTitle":"index_module_selectTitle__d1717d73","bhdSelectSearch":"index_module_bhdSelectSearch__d1717d73","search":"index_module_search__d1717d73"};
1792
+ var modules_63b47c51$2 = {"BhdSelect":"index_module_BhdSelect__d1717d73","bhdSelect_option":"index_module_bhdSelect_option__d1717d73","bhdSelectDrop":"index_module_bhdSelectDrop__d1717d73","selectTitle":"index_module_selectTitle__d1717d73","bhdSelectSearch":"index_module_bhdSelectSearch__d1717d73","search":"index_module_search__d1717d73"};
1793
1793
 
1794
1794
  var Search = Input.Search;
1795
1795
  var RenderDrop = function(param) {
@@ -1929,12 +1929,12 @@ var BhdSelect = function(props) {
1929
1929
  //如果需要搜索菜单
1930
1930
  if (showSearch) {
1931
1931
  return /*#__PURE__*/ jsxs("div", {
1932
- className: "".concat(modules_63b47c51$4.bhdSelectDrop, " ").concat(optionClassName),
1932
+ className: "".concat(modules_63b47c51$2.bhdSelectDrop, " ").concat(optionClassName),
1933
1933
  ref: bhdDropdownRef,
1934
1934
  children: [
1935
1935
  renderTitle(),
1936
1936
  /*#__PURE__*/ jsx("div", {
1937
- className: modules_63b47c51$4.bhdSelectSearch,
1937
+ className: modules_63b47c51$2.bhdSelectSearch,
1938
1938
  style: {
1939
1939
  backgroundColor: select_title ? "rgba(0,0,0,0.02)" : "rgba(0,0,0,0)"
1940
1940
  },
@@ -1944,7 +1944,7 @@ var BhdSelect = function(props) {
1944
1944
  var value = param.target.value;
1945
1945
  setFilterValue(value);
1946
1946
  },
1947
- className: "".concat(modules_63b47c51$4.search, " ").concat(searchClassName || ""),
1947
+ className: "".concat(modules_63b47c51$2.search, " ").concat(searchClassName || ""),
1948
1948
  onKeyDown: function(e) {
1949
1949
  e.stopPropagation();
1950
1950
  },
@@ -1956,7 +1956,7 @@ var BhdSelect = function(props) {
1956
1956
  });
1957
1957
  } else {
1958
1958
  return /*#__PURE__*/ jsx("div", {
1959
- className: modules_63b47c51$4.bhdSelectDrop,
1959
+ className: modules_63b47c51$2.bhdSelectDrop,
1960
1960
  ref: bhdDropdownRef,
1961
1961
  children: dropdownRender ? dropdownRender(menu) : menu
1962
1962
  });
@@ -1971,7 +1971,7 @@ var BhdSelect = function(props) {
1971
1971
  return select_title;
1972
1972
  } else {
1973
1973
  return /*#__PURE__*/ jsx("div", {
1974
- className: modules_63b47c51$4.selectTitle,
1974
+ className: modules_63b47c51$2.selectTitle,
1975
1975
  children: select_title
1976
1976
  });
1977
1977
  }
@@ -1997,7 +1997,7 @@ var BhdSelect = function(props) {
1997
1997
  var getConfig = function() {
1998
1998
  var config = _object_spread_props(_object_spread({}, props), {
1999
1999
  listHeight: optionHei,
2000
- popupClassName: "".concat(modules_63b47c51$4.bhdSelect_option, " ").concat(popupClassName || "", " "),
2000
+ popupClassName: "".concat(modules_63b47c51$2.bhdSelect_option, " ").concat(popupClassName || "", " "),
2001
2001
  suffixIcon: suffixIcon ? suffixIcon : renderSuffixIcon()
2002
2002
  });
2003
2003
  delete config.mask;
@@ -2015,7 +2015,7 @@ var BhdSelect = function(props) {
2015
2015
  return config;
2016
2016
  };
2017
2017
  return /*#__PURE__*/ jsx("div", {
2018
- className: "".concat(modules_63b47c51$4.BhdSelect, " ").concat(className),
2018
+ className: "".concat(modules_63b47c51$2.BhdSelect, " ").concat(className),
2019
2019
  ref: bhdSelectRef,
2020
2020
  children: /*#__PURE__*/ jsx(Select, _object_spread_props(_object_spread({}, getConfig()), {
2021
2021
  showSearch: false,
@@ -2058,7 +2058,7 @@ var BhdSelect = function(props) {
2058
2058
  BhdSelect.Option = Select.Option;
2059
2059
  var BhdSelect$1 = BhdSelect;
2060
2060
 
2061
- var modules_63b47c51$3 = {"bhd_app_layout":"index_module_bhd_app_layout__577bc6d2","bhd_app_layout_header":"index_module_bhd_app_layout_header__577bc6d2","bhd_app_layout_main":"index_module_bhd_app_layout_main__577bc6d2","bhd_app_layout_main_filter":"index_module_bhd_app_layout_main_filter__577bc6d2","bhd_app_layout_main_filter_title":"index_module_bhd_app_layout_main_filter_title__577bc6d2","bhd_app_layout_main_filter_ul":"index_module_bhd_app_layout_main_filter_ul__577bc6d2","bhd_app_layout_main_filter_show_value":"index_module_bhd_app_layout_main_filter_show_value__577bc6d2","bhd_app_layout_main_filter_clear":"index_module_bhd_app_layout_main_filter_clear__577bc6d2","bhd_app_layout_main_table":"index_module_bhd_app_layout_main_table__577bc6d2","bhd_app_layout_footer":"index_module_bhd_app_layout_footer__577bc6d2"};
2061
+ var modules_63b47c51$1 = {"bhd_app_layout":"index_module_bhd_app_layout__577bc6d2","bhd_app_layout_header":"index_module_bhd_app_layout_header__577bc6d2","bhd_app_layout_main":"index_module_bhd_app_layout_main__577bc6d2","bhd_app_layout_main_filter":"index_module_bhd_app_layout_main_filter__577bc6d2","bhd_app_layout_main_filter_title":"index_module_bhd_app_layout_main_filter_title__577bc6d2","bhd_app_layout_main_filter_ul":"index_module_bhd_app_layout_main_filter_ul__577bc6d2","bhd_app_layout_main_filter_show_value":"index_module_bhd_app_layout_main_filter_show_value__577bc6d2","bhd_app_layout_main_filter_clear":"index_module_bhd_app_layout_main_filter_clear__577bc6d2","bhd_app_layout_main_table":"index_module_bhd_app_layout_main_table__577bc6d2","bhd_app_layout_footer":"index_module_bhd_app_layout_footer__577bc6d2"};
2062
2062
 
2063
2063
  var zh_CN = {
2064
2064
  已筛选: "已筛选",
@@ -2213,11 +2213,11 @@ function BhdAppLayout(props) {
2213
2213
  otherContentRef === null || otherContentRef === void 0 ? void 0 : (_otherContentRef_current = otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
2214
2214
  ]);
2215
2215
  return /*#__PURE__*/ jsxs("div", {
2216
- className: "".concat(modules_63b47c51$3.bhd_app_layout, " ").concat(modules_63b47c51$3.className, " ").concat(className || ""),
2216
+ className: "".concat(modules_63b47c51$1.bhd_app_layout, " ").concat(modules_63b47c51$1.className, " ").concat(className || ""),
2217
2217
  children: [
2218
2218
  /*#__PURE__*/ jsx("header", {
2219
2219
  ref: headRef,
2220
- className: "".concat(modules_63b47c51$3.bhd_app_layout_header, " ").concat(headerClassName || ""),
2220
+ className: "".concat(modules_63b47c51$1.bhd_app_layout_header, " ").concat(headerClassName || ""),
2221
2221
  children: headConfig && /*#__PURE__*/ jsx(TitleBar$1, _object_spread({}, headConfig))
2222
2222
  }),
2223
2223
  headContent && /*#__PURE__*/ jsx("div", {
@@ -2225,30 +2225,30 @@ function BhdAppLayout(props) {
2225
2225
  children: headContent
2226
2226
  }),
2227
2227
  /*#__PURE__*/ jsxs("main", {
2228
- className: modules_63b47c51$3.bhd_app_layout_main,
2228
+ className: modules_63b47c51$1.bhd_app_layout_main,
2229
2229
  children: [
2230
2230
  (filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ jsxs("div", {
2231
2231
  ref: filterRef,
2232
- className: modules_63b47c51$3.bhd_app_layout_main_filter,
2232
+ className: modules_63b47c51$1.bhd_app_layout_main_filter,
2233
2233
  children: [
2234
2234
  /*#__PURE__*/ jsxs("div", {
2235
- className: modules_63b47c51$3.bhd_app_layout_main_filter_title,
2235
+ className: modules_63b47c51$1.bhd_app_layout_main_filter_title,
2236
2236
  children: [
2237
2237
  i18Conversion$1("已筛选"),
2238
2238
  ":"
2239
2239
  ]
2240
2240
  }),
2241
2241
  /*#__PURE__*/ jsx("ul", {
2242
- className: modules_63b47c51$3.bhd_app_layout_main_filter_ul,
2242
+ className: modules_63b47c51$1.bhd_app_layout_main_filter_ul,
2243
2243
  children: filterConfig.filterArr.map(function(ele, index) {
2244
2244
  return /*#__PURE__*/ jsxs("li", {
2245
2245
  children: [
2246
2246
  /*#__PURE__*/ jsx("span", {
2247
- className: modules_63b47c51$3.bhd_app_layout_main_filter_show_title,
2247
+ className: modules_63b47c51$1.bhd_app_layout_main_filter_show_title,
2248
2248
  children: ele.title
2249
2249
  }),
2250
2250
  /*#__PURE__*/ jsxs("span", {
2251
- className: modules_63b47c51$3.bhd_app_layout_main_filter_show_value,
2251
+ className: modules_63b47c51$1.bhd_app_layout_main_filter_show_value,
2252
2252
  children: [
2253
2253
  "“",
2254
2254
  ele.value,
@@ -2267,7 +2267,7 @@ function BhdAppLayout(props) {
2267
2267
  }),
2268
2268
  /*#__PURE__*/ jsx("div", {
2269
2269
  onClick: filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.onClearAll,
2270
- className: modules_63b47c51$3.bhd_app_layout_main_filter_clear,
2270
+ className: modules_63b47c51$1.bhd_app_layout_main_filter_clear,
2271
2271
  children: i18Conversion$1("清空条件")
2272
2272
  })
2273
2273
  ]
@@ -2277,7 +2277,7 @@ function BhdAppLayout(props) {
2277
2277
  children: otherContent
2278
2278
  }),
2279
2279
  /*#__PURE__*/ jsx("div", {
2280
- className: "".concat(modules_63b47c51$3.bhd_app_layout_main_table, " ").concat(tableBoxClassName || ""),
2280
+ className: "".concat(modules_63b47c51$1.bhd_app_layout_main_table, " ").concat(tableBoxClassName || ""),
2281
2281
  children: scrollConfig ? tableConfig && /*#__PURE__*/ jsx(BhdTableSimple$1, _object_spread_props(_object_spread({}, tableConfig), {
2282
2282
  pagination: false,
2283
2283
  scroll: _object_spread({}, scrollConfig)
@@ -2286,7 +2286,7 @@ function BhdAppLayout(props) {
2286
2286
  ]
2287
2287
  }),
2288
2288
  footerConfig ? /*#__PURE__*/ jsxs("footer", {
2289
- className: modules_63b47c51$3.bhd_app_layout_footer,
2289
+ className: modules_63b47c51$1.bhd_app_layout_footer,
2290
2290
  children: [
2291
2291
  /*#__PURE__*/ jsx("div", {
2292
2292
  children: (footerConfig === null || footerConfig === void 0 ? void 0 : footerConfig.leftDom) && footerConfig.leftDom
@@ -2298,9 +2298,7 @@ function BhdAppLayout(props) {
2298
2298
  });
2299
2299
  }
2300
2300
 
2301
- var modules_63b47c51$2 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__f2a3e8be","ChatWindow_Modal":"index_module_ChatWindow_Modal__f2a3e8be","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__f2a3e8be","header_wrap":"index_module_header_wrap__f2a3e8be","top":"index_module_top__f2a3e8be","user":"index_module_user__f2a3e8be","count":"index_module_count__f2a3e8be","operate":"index_module_operate__f2a3e8be","line":"index_module_line__f2a3e8be","header_wrap_newlabo":"index_module_header_wrap_newlabo__f2a3e8be","Drawer_main":"index_module_Drawer_main__f2a3e8be","loading":"index_module_loading__f2a3e8be","message_con":"index_module_message_con__f2a3e8be","left":"index_module_left__f2a3e8be","head_sculpture":"index_module_head_sculpture__f2a3e8be","right":"index_module_right__f2a3e8be","main":"index_module_main__f2a3e8be","main_content":"index_module_main_content__f2a3e8be","operate_modal":"index_module_operate_modal__f2a3e8be","content":"index_module_content__f2a3e8be","content_child":"index_module_content_child__f2a3e8be","active":"index_module_active__f2a3e8be","ask_question":"index_module_ask_question__f2a3e8be","operate_modal_bottom":"index_module_operate_modal_bottom__f2a3e8be","stop_generate":"index_module_stop_generate__f2a3e8be","icon":"index_module_icon__f2a3e8be","find_teacher":"index_module_find_teacher__f2a3e8be","stop_findTeacher":"index_module_stop_findTeacher__f2a3e8be","association_problem":"index_module_association_problem__f2a3e8be","time":"index_module_time__f2a3e8be","citation_content":"index_module_citation_content__f2a3e8be","popover_content":"index_module_popover_content__f2a3e8be","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__f2a3e8be","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__f2a3e8be","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__f2a3e8be","issues_list_teacherList":"index_module_issues_list_teacherList__f2a3e8be","item":"index_module_item__f2a3e8be","issues_list":"index_module_issues_list__f2a3e8be","sign":"index_module_sign__f2a3e8be","Drawer_buttom":"index_module_Drawer_buttom__f2a3e8be","input_wrap":"index_module_input_wrap__f2a3e8be","input":"index_module_input__f2a3e8be","no_AI":"index_module_no_AI__f2a3e8be","voice":"index_module_voice__f2a3e8be","voice_btn":"index_module_voice_btn__f2a3e8be","disabled":"index_module_disabled__f2a3e8be","content_main":"index_module_content_main__f2a3e8be","content_con":"index_module_content_con__f2a3e8be","delete_quote":"index_module_delete_quote__f2a3e8be","sending":"index_module_sending__f2a3e8be","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__f2a3e8be","main_list":"index_module_main_list__f2a3e8be","chat_content":"index_module_chat_content__f2a3e8be","popover_main_content":"index_module_popover_main_content__f2a3e8be"};
2302
-
2303
- var modules_63b47c51$1 = {"history_list":"index_module_history_list__65b6bf62","search_layout":"index_module_search_layout__65b6bf62","mymove":"index_module_mymove__65b6bf62","title":"index_module_title__65b6bf62","search_top":"index_module_search_top__65b6bf62","main_list":"index_module_main_list__65b6bf62","list":"index_module_list__65b6bf62","name":"index_module_name__65b6bf62","time":"index_module_time__65b6bf62","con":"index_module_con__65b6bf62","no_data":"index_module_no_data__65b6bf62","history_list_broadside":"index_module_history_list_broadside__65b6bf62"};
2301
+ var modules_63b47c51 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__0ae06d23","ChatWindow_Modal":"index_module_ChatWindow_Modal__0ae06d23","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__0ae06d23","header_wrap":"index_module_header_wrap__0ae06d23","top":"index_module_top__0ae06d23","user":"index_module_user__0ae06d23","count":"index_module_count__0ae06d23","operate":"index_module_operate__0ae06d23","line":"index_module_line__0ae06d23","header_wrap_newlabo":"index_module_header_wrap_newlabo__0ae06d23","Drawer_main":"index_module_Drawer_main__0ae06d23","loading":"index_module_loading__0ae06d23","message_con":"index_module_message_con__0ae06d23","left":"index_module_left__0ae06d23","head_sculpture":"index_module_head_sculpture__0ae06d23","main_content":"index_module_main_content__0ae06d23","right":"index_module_right__0ae06d23","main":"index_module_main__0ae06d23","operate_modal":"index_module_operate_modal__0ae06d23","content":"index_module_content__0ae06d23","content_child":"index_module_content_child__0ae06d23","active":"index_module_active__0ae06d23","ask_question":"index_module_ask_question__0ae06d23","operate_modal_bottom":"index_module_operate_modal_bottom__0ae06d23","stop_generate":"index_module_stop_generate__0ae06d23","icon":"index_module_icon__0ae06d23","find_teacher":"index_module_find_teacher__0ae06d23","stop_findTeacher":"index_module_stop_findTeacher__0ae06d23","association_problem":"index_module_association_problem__0ae06d23","time":"index_module_time__0ae06d23","citation_content":"index_module_citation_content__0ae06d23","text_exceed":"index_module_text_exceed__0ae06d23","popover_content":"index_module_popover_content__0ae06d23","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__0ae06d23","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__0ae06d23","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__0ae06d23","issues_list_teacherList":"index_module_issues_list_teacherList__0ae06d23","item":"index_module_item__0ae06d23","issues_list":"index_module_issues_list__0ae06d23","sign":"index_module_sign__0ae06d23","Drawer_buttom":"index_module_Drawer_buttom__0ae06d23","input_wrap":"index_module_input_wrap__0ae06d23","input":"index_module_input__0ae06d23","no_AI":"index_module_no_AI__0ae06d23","voice":"index_module_voice__0ae06d23","voice_btn":"index_module_voice_btn__0ae06d23","disabled":"index_module_disabled__0ae06d23","content_main":"index_module_content_main__0ae06d23","content_con":"index_module_content_con__0ae06d23","delete_quote":"index_module_delete_quote__0ae06d23","sending":"index_module_sending__0ae06d23","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__0ae06d23","main_list":"index_module_main_list__0ae06d23","chat_content":"index_module_chat_content__0ae06d23","popover_main_content":"index_module_popover_main_content__0ae06d23","popover_main_content_name":"index_module_popover_main_content_name__0ae06d23","teacher_layout":"index_module_teacher_layout__0ae06d23","bottom":"index_module_bottom__0ae06d23","delete":"index_module_delete__0ae06d23","num":"index_module_num__0ae06d23","shrink":"index_module_shrink__0ae06d23","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__0ae06d23","teacher_layout_modal":"index_module_teacher_layout_modal__0ae06d23","ai":"index_module_ai__0ae06d23","user_info":"index_module_user_info__0ae06d23","message":"index_module_message__0ae06d23","con":"index_module_con__0ae06d23","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__0ae06d23","history_list":"index_module_history_list__0ae06d23","search_layout":"index_module_search_layout__0ae06d23","mymove":"index_module_mymove__0ae06d23","title":"index_module_title__0ae06d23","search_top":"index_module_search_top__0ae06d23","list":"index_module_list__0ae06d23","name":"index_module_name__0ae06d23","no_data":"index_module_no_data__0ae06d23","history_list_broadside":"index_module_history_list_broadside__0ae06d23"};
2304
2302
 
2305
2303
  //消息已读
2306
2304
  var readMessage = function(roomId, urllocation, userData, http) {
@@ -2355,6 +2353,9 @@ var copyText = function(text) {
2355
2353
  };
2356
2354
  //获取当前时间
2357
2355
  var getDataTime = function(time) {
2356
+ var type = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1;
2357
+ //type = 1 ,获取当前年月日
2358
+ //type = 2 ,只显示十 分
2358
2359
  try {
2359
2360
  var now;
2360
2361
  if (time != undefined && time != -1) {
@@ -2370,23 +2371,58 @@ var getDataTime = function(time) {
2370
2371
  var minutes = String(now.getMinutes()).padStart(2, "0");
2371
2372
  var seconds = String(now.getSeconds()).padStart(2, "0");
2372
2373
  var currentDateTime = "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hours, ":").concat(minutes, ":").concat(seconds);
2373
- return currentDateTime;
2374
+ if (type == 1) {
2375
+ return "".concat(year, "-").concat(month, "-").concat(day);
2376
+ } else if (type == 2) {
2377
+ return "".concat(hours, ":").concat(minutes);
2378
+ } else {
2379
+ return currentDateTime;
2380
+ }
2374
2381
  } catch (error) {
2375
2382
  return "";
2376
2383
  }
2377
2384
  };
2378
2385
 
2379
2386
  var HistoryFun = function(props) {
2380
- var type = props.type, roomId = props.roomId, userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, loadSpecifiedData = props.loadSpecifiedData; props.roomList;
2387
+ var type = props.type, roomId = props.roomId, userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, loadSpecifiedData = props.loadSpecifiedData;
2381
2388
  var _useState = _sliced_to_array(useState(""), 2), keyWordProblem = _useState[0], setKeyWordProblem = _useState[1]; //搜索内容
2382
2389
  var _useState1 = _sliced_to_array(useState([]), 2), keyHistoryMessageList = _useState1[0], setKeyHistoryMessageList = _useState1[1]; //搜索的历史记录
2383
2390
  var _useState2 = _sliced_to_array(useState(1), 2), showLoadingState = _useState2[0], setShowLoadingState = _useState2[1]; //1,初始状态,2、无数据 ,3、不显示图片
2384
- var _useState3 = _sliced_to_array(useState(false), 2), load = _useState3[0], setLoad = _useState3[1];
2391
+ var _useState3 = _sliced_to_array(useState(1), 2); _useState3[0]; _useState3[1];
2392
+ var _useState4 = _sliced_to_array(useState(0), 2); _useState4[0]; var setPageCount = _useState4[1];
2393
+ var _useState5 = _sliced_to_array(useState(false), 2), load = _useState5[0], setLoad = _useState5[1];
2385
2394
  var timer = useRef(null); //文本框输入时
2386
2395
  var objName = useRef([]);
2396
+ // useEffect(() => {
2397
+ // function handleScroll() {
2398
+ // const container = document.getElementById('history_list');
2399
+ // const scrollTop = container.scrollTop;
2400
+ // const clientHeight = container.clientHeight;
2401
+ // const scrollHeight = container.scrollHeight;
2402
+ // // console.log(scrollTop,clientHeight,scrollHeight,'333dfkvmdfv')
2403
+ // // if((clientHeight + scrollTop + 10) >= scrollHeight && pageCount > pageNum && pageCount > 0){
2404
+ // // // console.log(11111111,pageNumHistory)
2405
+ // // let number = pageNum + 1;
2406
+ // // console.log('到底部了22222',number)
2407
+ // // setPageNum((pageNum) => {
2408
+ // // return pageNum + 1;
2409
+ // // });
2410
+ // // getKeyHistoryMessage(keyWordProblem,number);
2411
+ // // }
2412
+ // }
2413
+ // const content = document.getElementById('history_list');
2414
+ // if (content) {
2415
+ // content.addEventListener("scroll", handleScroll);
2416
+ // }
2417
+ // return () => {
2418
+ // const content = document.getElementById('history_list');
2419
+ // if (content) {
2420
+ // content.removeEventListener("scroll", handleScroll);
2421
+ // }
2422
+ // };
2423
+ // }, [keyHistoryMessageList]);
2387
2424
  useEffect(function() {
2388
2425
  setKeyHistoryMessageList(function(list) {
2389
- console.log(objName, 4444455555);
2390
2426
  var newList = list.map(function(item) {
2391
2427
  var name = "";
2392
2428
  var nameList = objName.current.filter(function(a) {
@@ -2395,12 +2431,10 @@ var HistoryFun = function(props) {
2395
2431
  if (nameList.length > 0) {
2396
2432
  name = nameList[0].name;
2397
2433
  }
2398
- console.log(name, 77777);
2399
2434
  return _object_spread_props(_object_spread({}, item), {
2400
2435
  name: name
2401
2436
  });
2402
2437
  });
2403
- console.log(newList, 4444444444);
2404
2438
  return newList;
2405
2439
  });
2406
2440
  }, [
@@ -2408,13 +2442,16 @@ var HistoryFun = function(props) {
2408
2442
  ]);
2409
2443
  //获取搜索中的历史消息记录
2410
2444
  var getKeyHistoryMessage = function(keyWordProblem) {
2445
+ var page = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
2411
2446
  if (roomId == "") return;
2447
+ setLoad(false);
2448
+ setKeyHistoryMessageList([]);
2412
2449
  return http.get("".concat(urllocation, "/chat-service/public/v1.0/history-messages"), {
2413
2450
  params: {
2414
2451
  roomId: "",
2415
2452
  message: keyWordProblem,
2416
- page: 1,
2417
- maxPageSize: 300,
2453
+ page: page,
2454
+ maxPageSize: 1000,
2418
2455
  direction: "desc"
2419
2456
  },
2420
2457
  headers: {
@@ -2424,11 +2461,16 @@ var HistoryFun = function(props) {
2424
2461
  "x-auth-jwt": window.localStorage.getItem("usertoken") || ""
2425
2462
  }
2426
2463
  }).then(function(res) {
2427
- console.log(res.data, 3434378);
2428
2464
  if (res.data.messages.length > 0) {
2465
+ var total = res.data.total;
2466
+ var maxPageSize = 20;
2467
+ setPageCount(Math.ceil(total / maxPageSize));
2429
2468
  setShowLoadingState(3);
2430
2469
  var dataList = res.data.messages;
2431
- setKeyHistoryMessageList(dataList);
2470
+ setKeyHistoryMessageList(function(list) {
2471
+ var newList = list.concat(dataList);
2472
+ return newList;
2473
+ });
2432
2474
  getUserName(dataList);
2433
2475
  } else {
2434
2476
  // setKeyHistoryMessageList([]);
@@ -2461,7 +2503,7 @@ var HistoryFun = function(props) {
2461
2503
  return pageNumber;
2462
2504
  };
2463
2505
  //根据index,计算历史数据在第几页
2464
- var calculationData = function(roomId, index, id, receiver) {
2506
+ var calculationData = function(roomId, id, receiver) {
2465
2507
  allData(roomId).then(function(res) {
2466
2508
  // console.log(res.data.messages,'11111111')
2467
2509
  if (res.data) {
@@ -2475,7 +2517,10 @@ var HistoryFun = function(props) {
2475
2517
  }
2476
2518
  });
2477
2519
  var pageNumber = findPageNumber(30, Math.ceil(total / 30), number);
2478
- console.log(roomId, pageNumber, id, "第几页第几页第几页第几页第几页第几页");
2520
+ // console.log(
2521
+ // roomId, pageNumber, id,
2522
+ // "第几页第几页第几页第几页第几页第几页"
2523
+ // );
2479
2524
  loadSpecifiedData(roomId, pageNumber, id, receiver);
2480
2525
  onClose();
2481
2526
  setKeyWordProblem("");
@@ -2527,12 +2572,12 @@ var HistoryFun = function(props) {
2527
2572
  });
2528
2573
  };
2529
2574
  return /*#__PURE__*/ jsx("div", {
2530
- className: "".concat(modules_63b47c51$1.history_list, " ").concat(type == 2 ? modules_63b47c51$1.history_list_broadside : "", " "),
2575
+ className: "".concat(modules_63b47c51.history_list, " ").concat(type == 2 ? modules_63b47c51.history_list_broadside : "", " "),
2531
2576
  children: /*#__PURE__*/ jsxs("div", {
2532
- className: modules_63b47c51$1.search_layout,
2577
+ className: modules_63b47c51.search_layout,
2533
2578
  children: [
2534
2579
  /*#__PURE__*/ jsxs("div", {
2535
- className: modules_63b47c51$1.title,
2580
+ className: modules_63b47c51.title,
2536
2581
  children: [
2537
2582
  /*#__PURE__*/ jsx("span", {
2538
2583
  children: "历史记录"
@@ -2546,7 +2591,7 @@ var HistoryFun = function(props) {
2546
2591
  ]
2547
2592
  }),
2548
2593
  /*#__PURE__*/ jsxs("div", {
2549
- className: modules_63b47c51$1.search_top,
2594
+ className: modules_63b47c51.search_top,
2550
2595
  children: [
2551
2596
  /*#__PURE__*/ jsx(SearchOutlined, {}),
2552
2597
  /*#__PURE__*/ jsx(Input, {
@@ -2580,10 +2625,11 @@ var HistoryFun = function(props) {
2580
2625
  ]
2581
2626
  }),
2582
2627
  /*#__PURE__*/ jsxs("div", {
2583
- className: modules_63b47c51$1.main_list,
2628
+ className: modules_63b47c51.main_list,
2629
+ id: "history_list",
2584
2630
  children: [
2585
2631
  showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
2586
- className: modules_63b47c51$1.no_data,
2632
+ className: modules_63b47c51.no_data,
2587
2633
  children: [
2588
2634
  /*#__PURE__*/ jsx("img", {
2589
2635
  src: "/new_yun/images/aiService/search_for_icon.png"
@@ -2594,7 +2640,7 @@ var HistoryFun = function(props) {
2594
2640
  ]
2595
2641
  }),
2596
2642
  showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
2597
- className: modules_63b47c51$1.no_data,
2643
+ className: modules_63b47c51.no_data,
2598
2644
  children: [
2599
2645
  /*#__PURE__*/ jsx("img", {
2600
2646
  src: "/new_yun/images/aiService/no_data.png"
@@ -2606,7 +2652,7 @@ var HistoryFun = function(props) {
2606
2652
  }),
2607
2653
  keyHistoryMessageList.map(function(item, index) {
2608
2654
  var span = item.message.replaceAll(keyWordProblem, function() {
2609
- return "<span class=".concat(modules_63b47c51$1.sign, ">").concat(keyWordProblem, "</span>");
2655
+ return "<span class=".concat(modules_63b47c51.sign, ">").concat(keyWordProblem, "</span>");
2610
2656
  });
2611
2657
  var name = "";
2612
2658
  if (item.receiver == userData.mid) {
@@ -2619,27 +2665,35 @@ var HistoryFun = function(props) {
2619
2665
  } else {
2620
2666
  name = item.name;
2621
2667
  }
2668
+ var time = "";
2669
+ var currentTime = getDataTime(-1, 1); //当前时间
2670
+ var updatedAt = getDataTime(item.updatedAt, 1);
2671
+ if (currentTime == updatedAt) {
2672
+ time = getDataTime(item.updatedAt, 2);
2673
+ } else {
2674
+ time = getDataTime(item.updatedAt);
2675
+ }
2622
2676
  return /*#__PURE__*/ jsxs("div", {
2623
- className: modules_63b47c51$1.list,
2677
+ className: modules_63b47c51.list,
2624
2678
  onClick: function() {
2625
- var id = item.receiver == userData.mid ? item.sender : item.receiver;
2626
- calculationData(item.roomId, item.messageIdWithinRoom, id, item.receiver);
2679
+ var id = item.receiver; // == userData.mid ? item.sender : item.receiver
2680
+ calculationData(item.roomId, item.id, id);
2627
2681
  },
2628
2682
  children: [
2629
2683
  /*#__PURE__*/ jsxs("div", {
2630
- className: modules_63b47c51$1.name,
2684
+ className: modules_63b47c51.name,
2631
2685
  children: [
2632
2686
  /*#__PURE__*/ jsx("p", {
2633
2687
  children: name
2634
2688
  }),
2635
2689
  /*#__PURE__*/ jsx("span", {
2636
- className: modules_63b47c51$1.time,
2637
- children: getDataTime(item.updatedAt)
2690
+ className: modules_63b47c51.time,
2691
+ children: time
2638
2692
  })
2639
2693
  ]
2640
2694
  }),
2641
2695
  /*#__PURE__*/ jsx("div", {
2642
- className: modules_63b47c51$1.con,
2696
+ className: modules_63b47c51.con,
2643
2697
  dangerouslySetInnerHTML: {
2644
2698
  __html: span
2645
2699
  }
@@ -2655,24 +2709,21 @@ var HistoryFun = function(props) {
2655
2709
  };
2656
2710
  var HistoryFun$1 = HistoryFun;
2657
2711
 
2658
- var modules_63b47c51 = {"teacher_layout":"index_module_teacher_layout__7dfb8d6a","top":"index_module_top__7dfb8d6a","bottom":"index_module_bottom__7dfb8d6a","delete":"index_module_delete__7dfb8d6a","num":"index_module_num__7dfb8d6a","shrink":"index_module_shrink__7dfb8d6a","active":"index_module_active__7dfb8d6a","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__7dfb8d6a","teacher_layout_modal":"index_module_teacher_layout_modal__7dfb8d6a","ai":"index_module_ai__7dfb8d6a","user_info":"index_module_user_info__7dfb8d6a","message":"index_module_message__7dfb8d6a","time":"index_module_time__7dfb8d6a","con":"index_module_con__7dfb8d6a"};
2659
-
2660
2712
  var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2661
2713
  var type = props.type, roomId = props.roomId, userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, switchChatRoom = props.switchChatRoom, saveContactsList = props.saveContactsList;
2662
2714
  var _useState = _sliced_to_array(useState([]), 2), contactsList = _useState[0], setContactsList = _useState[1]; //老师列表
2663
- var _useState1 = _sliced_to_array(useState(""), 2); _useState1[0]; var setNewRoomId = _useState1[1];
2664
- // const [type,setType] = useState(0);
2665
2715
  var timer = useRef(null); //文本框输入时
2666
2716
  //获取聊天室列表
2667
2717
  useEffect(function() {
2668
2718
  roomsListTimer();
2669
- if (roomId != "") {
2670
- setNewRoomId(roomId);
2671
- }
2672
2719
  return function() {
2673
2720
  clearTimeout(timer.current);
2674
2721
  };
2675
2722
  }, []);
2723
+ // //获取聊天室列表
2724
+ // useEffect(() => {
2725
+ // roomsListTimer();
2726
+ // }, [contactsList]);
2676
2727
  useImperativeHandle(ref, function() {
2677
2728
  return {
2678
2729
  roomsListTimer: function() {
@@ -2680,11 +2731,6 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2680
2731
  }
2681
2732
  };
2682
2733
  });
2683
- // useEffect(()=>{
2684
- // //重新调用接口
2685
- // console.log(44444444,contactsList)
2686
- // roomsListTimer();
2687
- // },[type])
2688
2734
  var roomsListTimer = function() {
2689
2735
  if (timer != null) clearTimeout(timer.current);
2690
2736
  timer.current = setTimeout(function() {
@@ -2704,7 +2750,6 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2704
2750
  }).then(function(res) {
2705
2751
  if (res.data) {
2706
2752
  var list = res.data.contacts;
2707
- // let newMessage = false;
2708
2753
  setContactsList(function(contactsList) {
2709
2754
  list = list.map(function(item, index) {
2710
2755
  var c_list = contactsList.filter(function(e) {
@@ -2719,42 +2764,24 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2719
2764
  return list;
2720
2765
  });
2721
2766
  getUserInfo(list);
2722
- // if(firstLoading){
2723
- // setFirstLoading(false);
2724
- // let isRoom = false;
2725
- // for (let index = 0; index < list.length; index++) {
2726
- // let count = list[index].unreadCount;
2727
- // if(count > 0 && list[index].roomId == roomId){
2728
- // isRoom = true;
2729
- // //在当前窗口
2730
- // return null;
2731
- // }else if(count > 0){
2732
- // isRoom = true;
2733
- // switchChatRoom(list[index].roomId, "");
2734
- // setContactsList((contactsList)=>{
2735
- // let new_list = contactsList;
2736
- // new_list = new_list.map((item)=>{
2737
- // if(item.roomId == list[index].roomId){
2738
- // return {
2739
- // ...item,
2740
- // unreadCount:0,
2741
- // }
2742
- // }else{
2743
- // return item;
2744
- // }
2745
- // })
2746
- // return new_list;
2747
- // })
2748
- // return null;
2749
- // }
2750
- // }
2751
- // }
2752
2767
  saveContactsList(list);
2753
2768
  }
2754
2769
  });
2755
2770
  };
2756
2771
  //删除聊天室
2757
2772
  var deleteRoom = function(roomId) {
2773
+ var contactsList;
2774
+ setContactsList(function(list) {
2775
+ contactsList = list.filter(function(e) {
2776
+ return e.roomId != roomId;
2777
+ });
2778
+ //切换到AI聊天窗口
2779
+ if (roomId == props.roomId) {
2780
+ switchChatRoom(contactsList[0].roomId, "");
2781
+ }
2782
+ saveContactsList(contactsList);
2783
+ return contactsList;
2784
+ });
2758
2785
  http.delete("".concat(urllocation, "/chat-service/public/v1.0/rooms/").concat(roomId), {
2759
2786
  headers: {
2760
2787
  "x-module-id": userData.modules.find(function(ele) {
@@ -2764,16 +2791,6 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2764
2791
  }
2765
2792
  }).then(function(res) {
2766
2793
  roomsListTimer();
2767
- // let contactsList;
2768
- // setContactsList((list)=>{
2769
- // contactsList = list.filter(e=>e.roomId != roomId);
2770
- // //切换到AI聊天窗口
2771
- // if(roomId == props.roomId){
2772
- // switchChatRoom(contactsList[0].roomId, "");
2773
- // }
2774
- // return contactsList;
2775
- // })
2776
- // saveContactsList(contactsList);
2777
2794
  });
2778
2795
  };
2779
2796
  //获取老师的信息等
@@ -2814,16 +2831,15 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2814
2831
  };
2815
2832
  return type == 2 || type == 4 ? //联系人展开
2816
2833
  /*#__PURE__*/ jsxs("div", {
2817
- className: modules_63b47c51.teacher_layout_modal,
2834
+ className: "".concat(modules_63b47c51.teacher_layout_modal, " ").concat(type == 4 ? modules_63b47c51.teacher_layout_modal_newlabo : ""),
2818
2835
  children: [
2819
2836
  /*#__PURE__*/ jsx("div", {
2820
2837
  className: modules_63b47c51.top,
2821
2838
  children: /*#__PURE__*/ jsxs("div", {
2822
2839
  className: "".concat(modules_63b47c51.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51.active : ""),
2823
2840
  onClick: function() {
2824
- setNewRoomId(contactsList[0].roomId);
2825
2841
  switchChatRoom(contactsList[0].roomId, "");
2826
- roomsListTimer();
2842
+ // roomsListTimer();
2827
2843
  },
2828
2844
  children: [
2829
2845
  /*#__PURE__*/ jsx(CustomAiIcon$1, {}),
@@ -2836,7 +2852,7 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2836
2852
  "AI助手",
2837
2853
  /*#__PURE__*/ jsx("span", {
2838
2854
  className: modules_63b47c51.time,
2839
- children: contactsList.length > 0 && getDataTime(contactsList[0].createdAt)
2855
+ children: contactsList.length > 0 && contactsList[0].createdAt != undefined && getDataTime(contactsList[0].createdAt)
2840
2856
  })
2841
2857
  ]
2842
2858
  }),
@@ -2855,12 +2871,36 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2855
2871
  className: modules_63b47c51.bottom,
2856
2872
  children: contactsList.map(function(item, index) {
2857
2873
  if (index != 0) {
2874
+ var currentTime = getDataTime(-1, 1); //当前时间
2875
+ var updatedAt = getDataTime(item.createdAt, 1);
2876
+ if (currentTime == updatedAt) {
2877
+ getDataTime(item.createdAt, 2);
2878
+ } else {
2879
+ getDataTime(item.createdAt);
2880
+ }
2858
2881
  return /*#__PURE__*/ jsxs("div", {
2859
2882
  className: "".concat(modules_63b47c51.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51.active : ""),
2860
2883
  onClick: function() {
2861
- setNewRoomId(item.roomId);
2862
2884
  switchChatRoom(item.roomId, "");
2863
- roomsListTimer();
2885
+ // roomsListTimer();
2886
+ var newList = [];
2887
+ setContactsList(function(list) {
2888
+ newList = list;
2889
+ newList = newList.map(function(v) {
2890
+ if (v.roomId == item.roomId) {
2891
+ return _object_spread_props(_object_spread({}, v), {
2892
+ unreadCount: 0
2893
+ });
2894
+ } else {
2895
+ return v;
2896
+ }
2897
+ });
2898
+ return newList;
2899
+ });
2900
+ // console.log(newList,9999999999)
2901
+ setTimeout(function() {
2902
+ saveContactsList(newList);
2903
+ }, 100);
2864
2904
  },
2865
2905
  children: [
2866
2906
  /*#__PURE__*/ jsx("img", {
@@ -2872,7 +2912,12 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2872
2912
  /*#__PURE__*/ jsxs("p", {
2873
2913
  className: modules_63b47c51.message,
2874
2914
  children: [
2875
- item.name,
2915
+ item.name != undefined && getByteLen(item.name) >= 20 ? /*#__PURE__*/ jsx(Tooltip, {
2916
+ overlayClassName: "".concat(modules_63b47c51.popover_main_content_name),
2917
+ title: item.name,
2918
+ placement: "top",
2919
+ children: item.name
2920
+ }) : item.name,
2876
2921
  item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
2877
2922
  className: modules_63b47c51.num,
2878
2923
  children: item.unreadCount > 99 ? "99+" : item.unreadCount
@@ -2924,9 +2969,8 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2924
2969
  /*#__PURE__*/ jsxs("div", {
2925
2970
  className: "".concat(modules_63b47c51.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51.active : ""),
2926
2971
  onClick: function() {
2927
- setNewRoomId(contactsList[0].roomId);
2928
2972
  switchChatRoom(contactsList[0].roomId, "");
2929
- roomsListTimer();
2973
+ // roomsListTimer();
2930
2974
  },
2931
2975
  children: [
2932
2976
  /*#__PURE__*/ jsx(CustomAiIcon$1, {}),
@@ -2946,16 +2990,39 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2946
2990
  return /*#__PURE__*/ jsxs("div", {
2947
2991
  className: "".concat(modules_63b47c51.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51.active : ""),
2948
2992
  onClick: function() {
2949
- setNewRoomId(item.roomId);
2950
2993
  switchChatRoom(item.roomId, "");
2951
- roomsListTimer();
2994
+ // roomsListTimer();
2995
+ //消息更改为已读
2996
+ var newList = [];
2997
+ setContactsList(function(list) {
2998
+ newList = list;
2999
+ newList = newList.map(function(v) {
3000
+ if (v.roomId == item.roomId) {
3001
+ return _object_spread_props(_object_spread({}, v), {
3002
+ unreadCount: 0
3003
+ });
3004
+ } else {
3005
+ return v;
3006
+ }
3007
+ });
3008
+ return newList;
3009
+ });
3010
+ // console.log(newList,9999999999)
3011
+ setTimeout(function() {
3012
+ saveContactsList(newList);
3013
+ }, 100);
2952
3014
  },
2953
3015
  children: [
2954
3016
  /*#__PURE__*/ jsx("img", {
2955
3017
  src: item.headImg
2956
3018
  }),
2957
3019
  /*#__PURE__*/ jsx("p", {
2958
- children: item.name
3020
+ children: item.name != undefined && getByteLen(item.name) >= 10 ? /*#__PURE__*/ jsx(Tooltip, {
3021
+ overlayClassName: modules_63b47c51.popover_main_content_name,
3022
+ title: item.name,
3023
+ placement: "top",
3024
+ children: item.name
3025
+ }) : item.name
2959
3026
  }),
2960
3027
  item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
2961
3028
  className: modules_63b47c51.num,
@@ -3120,38 +3187,38 @@ var useMediaRecorder = function() {
3120
3187
  };
3121
3188
  };
3122
3189
 
3190
+ var styles = modules_63b47c51;
3123
3191
  var TextArea = Input.TextArea;
3124
3192
  var CustomerService = function(props) {
3125
3193
  var userData = props.userData, http = props.http, urllocation = props.urllocation, onCancel = props.onCancel, serverName = props.serverName, fetchEventSource = props.fetchEventSource, initShowType = props.initShowType, onEvent = props.onEvent, stepIds = props.stepIds, stepId = props.stepId;
3126
- var _useState = _sliced_to_array(useState(props.userData.mid), 2), mid = _useState[0]; _useState[1]; //当前用户id
3127
3194
  var _useMediaRecorder = useMediaRecorder(), bese64String = _useMediaRecorder.bese64String, startRecord = _useMediaRecorder.startRecord, stopRecord = _useMediaRecorder.stopRecord; //语音转文字
3128
- var _useState1 = _sliced_to_array(useState(3), 2), voiceRecordingStatus = _useState1[0], setVoiceRecordingStatus = _useState1[1]; //语音录制状态 3,语音识别完成 2,录制中, 1,录制结束
3129
- var _useState2 = _sliced_to_array(useState([]), 2), copyTextOBJ = _useState2[0], setCopyTextObj = _useState2[1]; //复制的消息id
3130
- var _useState3 = _sliced_to_array(useState({}), 2), citationContent = _useState3[0], setCitationContent = _useState3[1]; //引用内容
3131
- var _useState4 = _sliced_to_array(useState(""), 2), roomId = _useState4[0], setRoomId = _useState4[1]; //聊天室id
3132
- var _useState5 = _sliced_to_array(useState([]), 2), historyMessageList = _useState5[0], setHistoryMessageList = _useState5[1]; //历史消息
3133
- var _useState6 = _sliced_to_array(useState(""), 2), keyWord = _useState6[0], setKeyWord = _useState6[1]; //搜索内容
3134
- var _useState7 = _sliced_to_array(useState([]), 2), questionsList = _useState7[0], setQuestionsList = _useState7[1]; //问题列表
3135
- var _useState8 = _sliced_to_array(useState([]), 2), hotQuestionsList = _useState8[0], setHotQuestionsList = _useState8[1]; //热门问题
3136
- var _useState9 = _sliced_to_array(useState(false), 2), greetingMessage = _useState9[0], setGreetingMessage = _useState9[1]; //聊天记录列表是否请求完成
3137
- var _useState10 = _sliced_to_array(useState(1), 2), pageNum = _useState10[0], setPageNum = _useState10[1]; //页码
3138
- var _useState11 = _sliced_to_array(useState(0), 2), pageNumHistory = _useState11[0], setPageNumHistory = _useState11[1]; //用于搜索历史记录后的页码
3139
- var _useState12 = _sliced_to_array(useState(0), 2), pageCount = _useState12[0], setPageCount = _useState12[1]; //总页数
3140
- var _useState13 = _sliced_to_array(useState(false), 2), loading = _useState13[0], setLoading = _useState13[1]; //上拉显示加载图标
3141
- var _useState14 = _sliced_to_array(useState(false), 2), bottomLoading = _useState14[0], setBottomLoading = _useState14[1]; //下拉显示加载图标
3142
- var _useState15 = _sliced_to_array(useState(true), 2), finished = _useState15[0], setFinished = _useState15[1]; //是否结束生成
3143
- var _useState16 = _sliced_to_array(useState(""), 2), lastId = _useState16[0], setLastId = _useState16[1]; //最后一条数据的id,可用于定位当前位置
3144
- var _useState17 = _sliced_to_array(useState({}), 2), chatWith = _useState17[0], setChatWith = _useState17[1]; //聊天的老师id或ai
3145
- var _useState18 = _sliced_to_array(useState(false), 2), firstLoad = _useState18[0], setFirstLoad = _useState18[1]; //第一次切换全屏时滚动到页面底部
3146
- var _useState19 = _sliced_to_array(useState(45), 2), buttomHei = _useState19[0], setButtomHei = _useState19[1]; //底部输入框的高度
3147
- var _useState20 = _sliced_to_array(useState(false), 2), showHistory = _useState20[0], setShowHistory = _useState20[1]; //是否显示历史记录
3148
- var _useState21 = _sliced_to_array(useState(false), 2), showContacts = _useState21[0], setShowContacts = _useState21[1]; //是否显示关联老师
3149
- var _useState22 = _sliced_to_array(useState(-1), 2), showType = _useState22[0], setShowType = _useState22[1]; //显示聊天框类型 1、侧边栏 2 modal 3 相应的div中 newlabo中使用
3150
- var _useState23 = _sliced_to_array(useState(-1), 2), answerMode = _useState23[0], setAnswerMode = _useState23[1]; //设置回答模式。1,召唤老师回答
3151
- var _useState24 = _sliced_to_array(useState([]), 2), teacherList = _useState24[0], setTeacherList = _useState24[1]; //老师列表
3152
- var _useState25 = _sliced_to_array(useState({}), 2), problem = _useState25[0], setProblem = _useState25[1]; //召唤老师回答的问题
3153
- var _useState26 = _sliced_to_array(useState([]), 2), roomList = _useState26[0], setRoomList = _useState26[1]; //聊天列表
3154
- var _useState27 = _sliced_to_array(useState([]), 2), chatObj = _useState27[0], setChatObj = _useState27[1]; //聊天记录id保存,用来在实验报告中记录
3195
+ var _useState = _sliced_to_array(useState(3), 2), voiceRecordingStatus = _useState[0], setVoiceRecordingStatus = _useState[1]; //语音录制状态 3,语音识别完成 2,录制中, 1,录制结束
3196
+ var _useState1 = _sliced_to_array(useState([]), 2), copyTextOBJ = _useState1[0], setCopyTextObj = _useState1[1]; //复制的消息id
3197
+ var _useState2 = _sliced_to_array(useState({}), 2), citationContent = _useState2[0], setCitationContent = _useState2[1]; //引用内容
3198
+ var _useState3 = _sliced_to_array(useState(""), 2), roomId = _useState3[0], setRoomId = _useState3[1]; //聊天室id
3199
+ var _useState4 = _sliced_to_array(useState([]), 2), historyMessageList = _useState4[0], setHistoryMessageList = _useState4[1]; //历史消息
3200
+ var _useState5 = _sliced_to_array(useState(""), 2), keyWord = _useState5[0], setKeyWord = _useState5[1]; //搜索内容
3201
+ var _useState6 = _sliced_to_array(useState([]), 2), questionsList = _useState6[0], setQuestionsList = _useState6[1]; //问题列表
3202
+ var _useState7 = _sliced_to_array(useState([]), 2), hotQuestionsList = _useState7[0], setHotQuestionsList = _useState7[1]; //热门问题
3203
+ var _useState8 = _sliced_to_array(useState(false), 2), greetingMessage = _useState8[0], setGreetingMessage = _useState8[1]; //聊天记录列表是否请求完成
3204
+ var _useState9 = _sliced_to_array(useState(1), 2), pageNum = _useState9[0], setPageNum = _useState9[1]; //页码
3205
+ var _useState10 = _sliced_to_array(useState(0), 2), pageNumHistory = _useState10[0], setPageNumHistory = _useState10[1]; //用于搜索历史记录后的页码
3206
+ var _useState11 = _sliced_to_array(useState(0), 2), pageCount = _useState11[0], setPageCount = _useState11[1]; //总页数
3207
+ var _useState12 = _sliced_to_array(useState(false), 2), loading = _useState12[0], setLoading = _useState12[1]; //上拉显示加载图标
3208
+ var _useState13 = _sliced_to_array(useState(false), 2), bottomLoading = _useState13[0], setBottomLoading = _useState13[1]; //下拉显示加载图标
3209
+ var _useState14 = _sliced_to_array(useState(true), 2), finished = _useState14[0], setFinished = _useState14[1]; //是否结束生成
3210
+ var _useState15 = _sliced_to_array(useState(""), 2), lastId = _useState15[0], setLastId = _useState15[1]; //最后一条数据的id,可用于定位当前位置
3211
+ var _useState16 = _sliced_to_array(useState({}), 2), chatWith = _useState16[0], setChatWith = _useState16[1]; //聊天的老师id或ai
3212
+ var _useState17 = _sliced_to_array(useState(false), 2), firstLoad = _useState17[0], setFirstLoad = _useState17[1]; //第一次切换全屏时滚动到页面底部
3213
+ var _useState18 = _sliced_to_array(useState(45), 2), buttomHei = _useState18[0], setButtomHei = _useState18[1]; //底部输入框的高度
3214
+ var _useState19 = _sliced_to_array(useState(false), 2), showHistory = _useState19[0], setShowHistory = _useState19[1]; //是否显示历史记录
3215
+ var _useState20 = _sliced_to_array(useState(false), 2), showContacts = _useState20[0], setShowContacts = _useState20[1]; //是否显示关联老师
3216
+ var _useState21 = _sliced_to_array(useState(-1), 2), showType = _useState21[0], setShowType = _useState21[1]; //显示聊天框类型 1、侧边栏 2 modal 3 相应的div中 newlabo中使用
3217
+ var _useState22 = _sliced_to_array(useState(-1), 2), answerMode = _useState22[0], setAnswerMode = _useState22[1]; //设置回答模式。1,召唤老师回答
3218
+ var _useState23 = _sliced_to_array(useState([]), 2), teacherList = _useState23[0], setTeacherList = _useState23[1]; //老师列表
3219
+ var _useState24 = _sliced_to_array(useState({}), 2), problem = _useState24[0], setProblem = _useState24[1]; //召唤老师回答的问题
3220
+ var _useState25 = _sliced_to_array(useState([]), 2), roomList = _useState25[0], setRoomList = _useState25[1]; //聊天列表
3221
+ var _useState26 = _sliced_to_array(useState([]), 2), chatObj = _useState26[0], setChatObj = _useState26[1]; //聊天记录id保存,用来在实验报告中记录
3155
3222
  var timer = useRef(null); //文本框输入时
3156
3223
  var receiveMessageTimer = useRef(null); //接收ai发回的消息
3157
3224
  var voiceCountdownTimer = useRef(null); //语音录制倒计时
@@ -3159,6 +3226,8 @@ var CustomerService = function(props) {
3159
3226
  var roomMessage = useRef(null); //循环当前页面的新消息
3160
3227
  var ctrl = useRef(); //停止生成ai回答时使用
3161
3228
  var childRef = useRef(null); //获取子组件方法
3229
+ // const [mid, setmid] = useState(props.userData.mid); //当前用户id
3230
+ var mid = props.userData.mid;
3162
3231
  var remarkable = new Remarkable({
3163
3232
  highlight: function highlight(str, lang) {
3164
3233
  if (lang && HighlightJS.getLanguage(lang)) {
@@ -3192,37 +3261,39 @@ var CustomerService = function(props) {
3192
3261
  var container = document.getElementById(showType == 1 || showType == 3 ? "chat_content" : "chat_content_modal");
3193
3262
  var scrollTop = container.scrollTop;
3194
3263
  // const scrollBottom = container.scroll;
3195
- // console.log(container,'sdcsdcsdcsdc');
3196
- container.onscroll = function(e) {
3197
- //元素内部页面滚动到达底部
3198
- if (e.target.clientHeight + e.target.scrollTop >= e.target.scrollHeight) {
3199
- //console.log('元素内部页面滚动到达底部');
3200
- if (pageNumHistory > 1) {
3201
- console.log(pageNumHistory, "pageNumpageNumpageNum");
3202
- var number = pageNumHistory - 1;
3203
- // setPageNum((pageNum) => {
3204
- // return pageNum - 1;
3205
- // });
3206
- setPageNumHistory(number);
3207
- clearTimeout(listTimer.current);
3208
- setBottomLoading(true);
3209
- listTimer.current = setTimeout(function() {
3210
- console.log("加载下一页", number);
3211
- getHistoryMessage(number, 4);
3212
- }, 1000);
3213
- }
3264
+ var clientHeight = container.clientHeight;
3265
+ var scrollHeight = container.scrollHeight;
3266
+ // console.log(scrollTop,clientHeight,scrollHeight,'333dfkvmdfv')
3267
+ if (clientHeight + scrollTop + 0.5 >= scrollHeight) {
3268
+ console.log("到底部了22222");
3269
+ // console.log(11111111,pageNumHistory)
3270
+ if (pageNumHistory > 1) {
3271
+ // console.log(pageNumHistory,'pageNumpageNumpageNum')
3272
+ var number = pageNumHistory - 1;
3273
+ setPageNumHistory(number);
3274
+ clearTimeout(listTimer.current);
3275
+ setBottomLoading(true);
3276
+ listTimer.current = setTimeout(function() {
3277
+ // console.log("加载下一页", number);
3278
+ getHistoryMessage(number, 4);
3279
+ }, 1000);
3280
+ } else {
3281
+ setLastId("");
3214
3282
  }
3215
- };
3283
+ }
3216
3284
  if (scrollTop == 0 && pageCount > pageNum && pageCount > 0) {
3285
+ console.log("到顶了", pageNum);
3286
+ // if(pageNum == 1){
3287
+ // setFirstpage(true);//代表是否存在第一页
3288
+ // }
3217
3289
  setLoading(true);
3218
- var number = pageNum + 1;
3290
+ var number1 = pageNum + 1;
3219
3291
  setPageNum(function(pageNum) {
3220
3292
  return pageNum + 1;
3221
3293
  });
3222
- clearTimeout(listTimer.current);
3223
3294
  listTimer.current = setTimeout(function() {
3224
- console.log("下拉加载下一页", number);
3225
- getHistoryMessage(number, 2);
3295
+ console.log("下拉加载下一页", number1);
3296
+ getHistoryMessage(number1, 2);
3226
3297
  }, 1000);
3227
3298
  }
3228
3299
  }
@@ -3508,19 +3579,23 @@ var CustomerService = function(props) {
3508
3579
  }
3509
3580
  }).then(function(res) {
3510
3581
  if (res.data.id) {
3511
- setHistoryMessageList(function(historyMessageList) {
3512
- var newHistoryMessageList = historyMessageList.concat(_object_spread_props(_object_spread({}, obj), {
3513
- id: res.data.id,
3514
- upvoted: false,
3515
- downvoted: false,
3516
- createdAt: getDataTime(-1)
3517
- }));
3518
- return newHistoryMessageList;
3519
- });
3520
- scrollToBottom();
3521
- //记录一个问题id,用于记录老师和学生之间的聊天保存到实验报告中
3522
- // if(stepIds != undefined && stepIds != '' && (showType == 3 || showType == 4)){
3523
- // setChatObj({'roomId':roomId,'id':res.data.id});
3582
+ console.log(pageNum, pageNumHistory, lastId, "dlskskdsd4444");
3583
+ if (pageNum == 1 || pageNumHistory == 1 || pageNumHistory == 0) {
3584
+ setHistoryMessageList(function(historyMessageList) {
3585
+ var newHistoryMessageList = historyMessageList.concat(_object_spread_props(_object_spread({}, obj), {
3586
+ id: res.data.id,
3587
+ upvoted: false,
3588
+ downvoted: false,
3589
+ createdAt: getDataTime(-1)
3590
+ }));
3591
+ return newHistoryMessageList;
3592
+ });
3593
+ if (!lastId) {
3594
+ setTimeout(function() {
3595
+ scrollToBottom();
3596
+ }, 100);
3597
+ }
3598
+ }
3524
3599
  //判断当前窗口是否是
3525
3600
  if (type == 1) {
3526
3601
  var roomList = [
@@ -3536,7 +3611,6 @@ var CustomerService = function(props) {
3536
3611
  return list2.concat(roomList);
3537
3612
  });
3538
3613
  }
3539
- // }
3540
3614
  }
3541
3615
  }).catch(function(err) {
3542
3616
  console.log(err);
@@ -3997,6 +4071,7 @@ var CustomerService = function(props) {
3997
4071
  var getHistoryMessage = function(pageNum, flag) {
3998
4072
  var id = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "1";
3999
4073
  clearTimeout(roomMessage.current);
4074
+ console.log(pageNum, flag, "dkfjvndfjvndfkvdf");
4000
4075
  // flag == 1 时已经设置好了位置标记
4001
4076
  var last_id = "";
4002
4077
  if (flag == 2 && historyMessageList.length > 0) {
@@ -4102,7 +4177,7 @@ var CustomerService = function(props) {
4102
4177
  return item.roomId == rid;
4103
4178
  });
4104
4179
  var isAiChatWindow = chatWindow.length > 0 && chatWindow[0].sender != undefined && chatWindow[0].sender == "AI" ? true : false;
4105
- if (!isAiChatWindow && roomList.length > 0) {
4180
+ if (!isAiChatWindow && roomList.length > 0 && (pageNum == 1 || pageNumHistory == 0)) {
4106
4181
  getRoomidHistoryMessage(totalNumber, rid);
4107
4182
  }
4108
4183
  }).catch(function(res) {
@@ -4121,7 +4196,7 @@ var CustomerService = function(props) {
4121
4196
  params: {
4122
4197
  roomId: rid,
4123
4198
  page: 1,
4124
- maxPageSize: totalNumber < 30 ? 30 : totalNumber + 10,
4199
+ maxPageSize: totalNumber,
4125
4200
  direction: "desc"
4126
4201
  },
4127
4202
  headers: {
@@ -4134,17 +4209,24 @@ var CustomerService = function(props) {
4134
4209
  var newHistoryMessageList = [];
4135
4210
  if (res.data.messages.length > 0) {
4136
4211
  var dataList = res.data.messages.reverse();
4212
+ var originList = 0;
4213
+ var newList = 0;
4137
4214
  setHistoryMessageList(function(historyMessageList) {
4138
- newHistoryMessageList = dataList;
4215
+ originList = historyMessageList.length;
4216
+ newHistoryMessageList = historyMessageList.concat(dataList);
4139
4217
  //去重
4140
4218
  var _$res = new Map();
4141
4219
  newHistoryMessageList = newHistoryMessageList.filter(function(a) {
4142
4220
  return !_$res.has(a.id) && _$res.set(a.id, 1);
4143
4221
  });
4222
+ newList = newHistoryMessageList.length;
4144
4223
  return newHistoryMessageList;
4145
4224
  });
4146
- if (dataList.length > totalNumber) {
4147
- scrollToBottom();
4225
+ console.log(dataList.length, originList, lastId, "dfkvdnfkvdfj44444");
4226
+ if (!lastId && originList != newList) {
4227
+ setTimeout(function() {
4228
+ scrollToBottom();
4229
+ }, 100);
4148
4230
  }
4149
4231
  }
4150
4232
  try {
@@ -4204,7 +4286,7 @@ var CustomerService = function(props) {
4204
4286
  });
4205
4287
  console.log(result, "存储的消息");
4206
4288
  result.map(function(item) {
4207
- testLabQuestion(item.question, item.answer, item.id);
4289
+ testLabQuestion(item.question, item.answer, String(item.id));
4208
4290
  });
4209
4291
  }
4210
4292
  }
@@ -4367,7 +4449,7 @@ var CustomerService = function(props) {
4367
4449
  var list = roomList.filter(function(e) {
4368
4450
  return e.roomId == roomId;
4369
4451
  });
4370
- var title = "智能回答";
4452
+ var title = "智能问答";
4371
4453
  if (list.length > 0 && list[0].name) {
4372
4454
  title = list[0].name;
4373
4455
  }
@@ -4377,16 +4459,16 @@ var CustomerService = function(props) {
4377
4459
  });
4378
4460
  if (showType == 4) {
4379
4461
  return /*#__PURE__*/ jsxs("div", {
4380
- className: modules_63b47c51$2.top,
4462
+ className: styles.top,
4381
4463
  children: [
4382
4464
  /*#__PURE__*/ jsx("div", {
4383
- className: modules_63b47c51$2.user,
4465
+ className: styles.user,
4384
4466
  children: /*#__PURE__*/ jsx("p", {
4385
4467
  children: title
4386
4468
  })
4387
4469
  }),
4388
4470
  /*#__PURE__*/ jsxs("div", {
4389
- className: modules_63b47c51$2.operate,
4471
+ className: styles.operate,
4390
4472
  children: [
4391
4473
  /*#__PURE__*/ jsx("i", {
4392
4474
  onClick: function() {
@@ -4395,7 +4477,7 @@ var CustomerService = function(props) {
4395
4477
  children: /*#__PURE__*/ jsx(CustomRecord$1, {})
4396
4478
  }),
4397
4479
  /*#__PURE__*/ jsx("span", {
4398
- className: modules_63b47c51$2.line
4480
+ className: styles.line
4399
4481
  }),
4400
4482
  /*#__PURE__*/ jsx("i", {
4401
4483
  onClick: function() {
@@ -4418,22 +4500,23 @@ var CustomerService = function(props) {
4418
4500
  ]
4419
4501
  });
4420
4502
  } else {
4503
+ // console.log(roomList,'777668888900')
4421
4504
  return /*#__PURE__*/ jsxs("div", {
4422
- className: modules_63b47c51$2.top,
4505
+ className: styles.top,
4423
4506
  children: [
4424
4507
  /*#__PURE__*/ jsx("div", {
4425
- className: modules_63b47c51$2.user,
4508
+ className: styles.user,
4426
4509
  children: /*#__PURE__*/ jsxs("p", {
4427
4510
  children: [
4428
4511
  showType == 1 && /*#__PURE__*/ jsxs("i", {
4429
4512
  className: "lianxiren21",
4430
4513
  onClick: function() {
4431
- setShowContacts(true);
4514
+ setShowContacts(!showContacts);
4432
4515
  },
4433
4516
  children: [
4434
4517
  /*#__PURE__*/ jsx(CustomContacts$1, {}),
4435
4518
  count > 0 ? /*#__PURE__*/ jsx("span", {
4436
- className: modules_63b47c51$2.count,
4519
+ className: styles.count,
4437
4520
  children: count > 99 ? "99+" : count
4438
4521
  }) : ""
4439
4522
  ]
@@ -4443,17 +4526,18 @@ var CustomerService = function(props) {
4443
4526
  })
4444
4527
  }),
4445
4528
  /*#__PURE__*/ jsxs("div", {
4446
- className: modules_63b47c51$2.operate,
4529
+ className: styles.operate,
4447
4530
  children: [
4448
4531
  /*#__PURE__*/ jsx("i", {
4449
4532
  className: "_lishixiao22",
4450
4533
  onClick: function() {
4451
4534
  setShowHistory(true);
4535
+ onEvent(serverName + serverUrl(), "click_智能问答_历史记录", "提交");
4452
4536
  },
4453
4537
  children: /*#__PURE__*/ jsx(CustomRecord$1, {})
4454
4538
  }),
4455
4539
  /*#__PURE__*/ jsx("span", {
4456
- className: modules_63b47c51$2.line
4540
+ className: styles.line
4457
4541
  }),
4458
4542
  showType == 1 ? /*#__PURE__*/ jsx("i", {
4459
4543
  onClick: function() {
@@ -4523,7 +4607,7 @@ var CustomerService = function(props) {
4523
4607
  // console.log(mid, historyMessageList, "ddkfdscksdcs");
4524
4608
  if (historyMessageList.length > 0) {
4525
4609
  return /*#__PURE__*/ jsx("ul", {
4526
- className: modules_63b47c51$2.message_con,
4610
+ className: styles.message_con,
4527
4611
  children: historyMessageList.map(function(item, i) {
4528
4612
  var timeObj = parseDate(item.createdAt);
4529
4613
  // console.log(item.message);
@@ -4559,22 +4643,22 @@ var CustomerService = function(props) {
4559
4643
  li = /*#__PURE__*/ jsxs(Fragment, {
4560
4644
  children: [
4561
4645
  dataTime ? /*#__PURE__*/ jsx("li", {
4562
- className: modules_63b47c51$2.time,
4646
+ className: styles.time,
4563
4647
  children: dataTime
4564
4648
  }) : "",
4565
4649
  /*#__PURE__*/ jsxs("li", {
4566
- className: modules_63b47c51$2.left,
4650
+ className: styles.left,
4567
4651
  id: lastId == item.id ? "li_flag" : "",
4568
4652
  children: [
4569
4653
  /*#__PURE__*/ jsx("div", {
4570
- className: modules_63b47c51$2.main,
4654
+ className: styles.main,
4571
4655
  children: /*#__PURE__*/ jsxs("div", {
4572
- className: modules_63b47c51$2.main_content,
4656
+ className: styles.main_content,
4573
4657
  children: [
4574
4658
  /*#__PURE__*/ jsx("div", {
4575
- className: modules_63b47c51$2.operate_modal,
4659
+ className: styles.operate_modal,
4576
4660
  children: /*#__PURE__*/ jsxs("p", {
4577
- className: modules_63b47c51$2.operate,
4661
+ className: styles.operate,
4578
4662
  children: [
4579
4663
  /*#__PURE__*/ jsx("i", {
4580
4664
  className: "yinyong_quote1",
@@ -4620,25 +4704,26 @@ var CustomerService = function(props) {
4620
4704
  })
4621
4705
  }),
4622
4706
  /*#__PURE__*/ jsx("div", {
4623
- className: modules_63b47c51$2.content,
4707
+ className: styles.content,
4624
4708
  children: /*#__PURE__*/ jsx("p", {
4625
4709
  dangerouslySetInnerHTML: {
4626
4710
  __html: remarkable.render(message)
4627
4711
  },
4628
- className: modules_63b47c51$2.content_child
4712
+ className: styles.content_child
4629
4713
  })
4630
4714
  }),
4631
4715
  //引用消息
4632
4716
  item.quotedMessage && /*#__PURE__*/ jsx("div", {
4633
- className: modules_63b47c51$2.citation_content,
4717
+ className: styles.citation_content,
4634
4718
  children: getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
4635
- overlayClassName: modules_63b47c51$2.popover_main_content,
4719
+ overlayClassName: styles.popover_main_content,
4636
4720
  title: item.quotedMessage,
4637
4721
  placement: "leftTop",
4638
4722
  children: /*#__PURE__*/ jsxs("p", {
4723
+ className: styles.text_exceed,
4639
4724
  children: [
4640
4725
  item.quotedMessage,
4641
- ">"
4726
+ /*#__PURE__*/ jsx(RightOutlined, {})
4642
4727
  ]
4643
4728
  })
4644
4729
  }) : /*#__PURE__*/ jsx("p", {
@@ -4649,7 +4734,7 @@ var CustomerService = function(props) {
4649
4734
  })
4650
4735
  }),
4651
4736
  showType == 2 || showType == 4 ? /*#__PURE__*/ jsx("div", {
4652
- className: modules_63b47c51$2.head_sculpture,
4737
+ className: styles.head_sculpture,
4653
4738
  style: {
4654
4739
  marginLeft: "12px"
4655
4740
  },
@@ -4680,15 +4765,15 @@ var CustomerService = function(props) {
4680
4765
  li = /*#__PURE__*/ jsxs(Fragment, {
4681
4766
  children: [
4682
4767
  dataTime ? /*#__PURE__*/ jsx("li", {
4683
- className: modules_63b47c51$2.time,
4768
+ className: styles.time,
4684
4769
  children: dataTime
4685
4770
  }) : "",
4686
4771
  /*#__PURE__*/ jsxs("li", {
4687
- className: modules_63b47c51$2.right,
4772
+ className: styles.right,
4688
4773
  id: lastId == item.id ? "li_flag" : "",
4689
4774
  children: [
4690
4775
  (showType == 2 || showType == 4) && /*#__PURE__*/ jsx("div", {
4691
- className: modules_63b47c51$2.head_sculpture,
4776
+ className: styles.head_sculpture,
4692
4777
  style: {
4693
4778
  marginRight: "12px"
4694
4779
  },
@@ -4699,26 +4784,26 @@ var CustomerService = function(props) {
4699
4784
  })
4700
4785
  }),
4701
4786
  /*#__PURE__*/ jsx("div", {
4702
- className: modules_63b47c51$2.main,
4787
+ className: styles.main,
4703
4788
  children: /*#__PURE__*/ jsxs("div", {
4704
- className: modules_63b47c51$2.main_content,
4789
+ className: styles.main_content,
4705
4790
  children: [
4706
4791
  /*#__PURE__*/ jsx("div", {
4707
- className: modules_63b47c51$2.operate_modal,
4792
+ className: styles.operate_modal,
4708
4793
  children: // 不是最后一行,
4709
4794
  historyMessageList.length - 1 != i && renderOperateBtn(item, isAiChatWindow, i)
4710
4795
  }),
4711
4796
  /*#__PURE__*/ jsxs("div", {
4712
- className: modules_63b47c51$2.content,
4797
+ className: styles.content,
4713
4798
  children: [
4714
4799
  /*#__PURE__*/ jsx("p", {
4715
4800
  dangerouslySetInnerHTML: {
4716
4801
  __html: remarkable.render(message)
4717
4802
  },
4718
- className: modules_63b47c51$2.content_child
4803
+ className: styles.content_child
4719
4804
  }),
4720
4805
  item.extraInfo != undefined && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "messageSource" && JSON.parse(item.extraInfo)[0].value != "knowledgebase" && /*#__PURE__*/ jsx("ul", {
4721
- className: modules_63b47c51$2.association_problem,
4806
+ className: styles.association_problem,
4722
4807
  children: JSON.parse(item.extraInfo).map(function(list, index) {
4723
4808
  return /*#__PURE__*/ jsxs("li", {
4724
4809
  onClick: function() {
@@ -4736,15 +4821,16 @@ var CustomerService = function(props) {
4736
4821
  }),
4737
4822
  //引用消息
4738
4823
  item.quotedMessage && /*#__PURE__*/ jsx("div", {
4739
- className: modules_63b47c51$2.citation_content,
4824
+ className: styles.citation_content,
4740
4825
  children: getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
4741
- overlayClassName: modules_63b47c51$2.popover_main_content,
4826
+ overlayClassName: styles.popover_main_content,
4742
4827
  title: item.quotedMessage,
4743
- placement: "leftTop",
4828
+ placement: "rightTop",
4744
4829
  children: /*#__PURE__*/ jsxs("p", {
4830
+ className: styles.text_exceed,
4745
4831
  children: [
4746
4832
  item.quotedMessage,
4747
- ">"
4833
+ /*#__PURE__*/ jsx(RightOutlined, {})
4748
4834
  ]
4749
4835
  })
4750
4836
  }) : /*#__PURE__*/ jsx("p", {
@@ -4757,9 +4843,9 @@ var CustomerService = function(props) {
4757
4843
  isAiChatWindow && item.findTeacher && userData.modules.some(function(item) {
4758
4844
  return item.short == "TeacherAnswer";
4759
4845
  }) ? /*#__PURE__*/ jsx("div", {
4760
- className: "".concat(modules_63b47c51$2.operate_modal_bottom),
4846
+ className: "".concat(styles.operate_modal_bottom),
4761
4847
  children: /*#__PURE__*/ jsx("p", {
4762
- className: modules_63b47c51$2.stop_findTeacher,
4848
+ className: styles.stop_findTeacher,
4763
4849
  children: /*#__PURE__*/ jsx("span", {
4764
4850
  onClick: function() {
4765
4851
  setAnswerMode(-1);
@@ -4789,7 +4875,7 @@ var CustomerService = function(props) {
4789
4875
  return "";
4790
4876
  }
4791
4877
  };
4792
- //渲染相关操作按钮
4878
+ //渲染相关操作按钮 header == 1 ai ,== 2 知识库
4793
4879
  var renderOperateBtn = function(item, isAiChatWindow, i) {
4794
4880
  //问候语及点赞下面不需要展示相关按钮
4795
4881
  var extraInfo = item.extraInfo;
@@ -4798,13 +4884,13 @@ var CustomerService = function(props) {
4798
4884
  return "";
4799
4885
  }
4800
4886
  return /*#__PURE__*/ jsxs("p", {
4801
- className: modules_63b47c51$2.operate,
4887
+ className: styles.operate,
4802
4888
  children: [
4803
4889
  // 不在智能客服窗口,并已经点击了召唤老师,并有召唤老师权限
4804
4890
  isAiChatWindow && answerMode != 1 && userData.modules.some(function(item) {
4805
4891
  return item.short == "TeacherAnswer";
4806
4892
  }) && /*#__PURE__*/ jsx("span", {
4807
- className: modules_63b47c51$2.ask_question,
4893
+ className: styles.ask_question,
4808
4894
  onClick: function() {
4809
4895
  setAnswerMode(1);
4810
4896
  setProblem({
@@ -4819,7 +4905,13 @@ var CustomerService = function(props) {
4819
4905
  recevier: mid,
4820
4906
  message: "请告诉我您要召唤的老师名字",
4821
4907
  createdAt: getDataTime(-1),
4822
- findTeacher: true
4908
+ findTeacher: true,
4909
+ extraInfo: item.extraInfo == null ? null : JSON.stringify([
4910
+ {
4911
+ key: "questionId",
4912
+ value: "questionId"
4913
+ }
4914
+ ])
4823
4915
  });
4824
4916
  return newHistoryMessageList;
4825
4917
  });
@@ -4874,14 +4966,14 @@ var CustomerService = function(props) {
4874
4966
  children: "|"
4875
4967
  }),
4876
4968
  /*#__PURE__*/ jsx("i", {
4877
- className: "Frame427319094 ".concat(item.upvoted ? modules_63b47c51$2.active : ""),
4969
+ className: "Frame427319094 ".concat(item.upvoted ? styles.active : ""),
4878
4970
  onClick: function() {
4879
4971
  likeMessage(item.id, item.upvoted);
4880
4972
  //老师的聊天窗口中不需要点赞和踩消息
4881
4973
  if (!isAiChatWindow) return;
4882
4974
  //只有最后一条回答,支持发送点赞或踩
4883
4975
  if (!item.upvoted && (historyMessageList.length == i + 1 || historyMessageList.length - 2 == i)) {
4884
- console.log("判断是AI还是智能回答", item);
4976
+ console.log("判断是AI还是智能问答", item);
4885
4977
  if (!item.extraInfo && item.sender == "AI") {
4886
4978
  aiSendQuestions(1, {
4887
4979
  roomId: roomId,
@@ -4899,7 +4991,7 @@ var CustomerService = function(props) {
4899
4991
  children: /*#__PURE__*/ jsx(CustomLike$1, {})
4900
4992
  }),
4901
4993
  /*#__PURE__*/ jsx("i", {
4902
- className: "Frame427319095 ".concat(item.downvoted ? modules_63b47c51$2.active : ""),
4994
+ className: "Frame427319095 ".concat(item.downvoted ? styles.active : ""),
4903
4995
  onClick: function() {
4904
4996
  disagreeMessage(item.id, item.downvoted);
4905
4997
  //老师的聊天窗口中不需要点赞和踩消息
@@ -4948,15 +5040,15 @@ var CustomerService = function(props) {
4948
5040
  findTeacherBtn = true;
4949
5041
  }
4950
5042
  return /*#__PURE__*/ jsxs("div", {
4951
- className: "".concat(modules_63b47c51$2.operate_modal_bottom),
5043
+ className: "".concat(styles.operate_modal_bottom),
4952
5044
  children: [
4953
5045
  /*#__PURE__*/ jsxs("p", {
4954
- className: modules_63b47c51$2.stop_generate,
5046
+ className: styles.stop_generate,
4955
5047
  children: [
4956
5048
  showStopBtn && /*#__PURE__*/ jsxs(Fragment, {
4957
5049
  children: [
4958
5050
  /*#__PURE__*/ jsx("span", {
4959
- className: modules_63b47c51$2.icon,
5051
+ className: styles.icon,
4960
5052
  onClick: function() {
4961
5053
  try {
4962
5054
  if (ctrl && ctrl.current) {
@@ -4998,13 +5090,15 @@ var CustomerService = function(props) {
4998
5090
  findTeacherBtn && userData.modules.some(function(item) {
4999
5091
  return item.short == "TeacherAnswer";
5000
5092
  }) && /*#__PURE__*/ jsx("span", {
5001
- className: modules_63b47c51$2.find_teacher,
5093
+ className: styles.find_teacher,
5002
5094
  onClick: function() {
5003
5095
  setAnswerMode(1);
5004
5096
  setProblem({
5005
5097
  question: historyMessageList[i - 1].message,
5006
5098
  user: problem.user
5007
5099
  });
5100
+ console.log(item, "88888999999");
5101
+ // if(item.extraInfo == null){
5008
5102
  setHistoryMessageList(function(historyMessageList) {
5009
5103
  var newHistoryMessageList = historyMessageList.concat({
5010
5104
  id: -1,
@@ -5013,10 +5107,40 @@ var CustomerService = function(props) {
5013
5107
  recevier: mid,
5014
5108
  message: "请告诉我您要召唤的老师名字",
5015
5109
  createdAt: getDataTime(-1),
5016
- findTeacher: true
5110
+ findTeacher: true,
5111
+ extraInfo: item.extraInfo == null ? null : JSON.stringify([
5112
+ {
5113
+ key: "questionId",
5114
+ value: "questionId"
5115
+ }
5116
+ ])
5017
5117
  });
5018
5118
  return newHistoryMessageList;
5019
5119
  });
5120
+ // }else{
5121
+ // setHistoryMessageList(
5122
+ // (historyMessageList) => {
5123
+ // let newHistoryMessageList =
5124
+ // historyMessageList.concat({
5125
+ // id: -1,
5126
+ // roomId: roomId,
5127
+ // sender: "AI",
5128
+ // recevier: mid,
5129
+ // message:
5130
+ // "请告诉我您要召唤的老师名字",
5131
+ // createdAt: getDataTime(-1),
5132
+ // findTeacher:true,
5133
+ // extraInfo: JSON.stringify([
5134
+ // {
5135
+ // key: "questionId",
5136
+ // value: "questionId",
5137
+ // },
5138
+ // ])
5139
+ // });
5140
+ // return newHistoryMessageList;
5141
+ // }
5142
+ // );
5143
+ // }
5020
5144
  setTimeout(function() {
5021
5145
  scrollToBottom();
5022
5146
  }, 200);
@@ -5026,7 +5150,7 @@ var CustomerService = function(props) {
5026
5150
  ]
5027
5151
  }),
5028
5152
  /*#__PURE__*/ jsxs("p", {
5029
- className: "".concat(modules_63b47c51$2.operate),
5153
+ className: "".concat(styles.operate),
5030
5154
  children: [
5031
5155
  regenerationBtn && /*#__PURE__*/ jsx("i", {
5032
5156
  onClick: function() {
@@ -5086,14 +5210,14 @@ var CustomerService = function(props) {
5086
5210
  children: "|"
5087
5211
  }),
5088
5212
  /*#__PURE__*/ jsx("i", {
5089
- className: "Frame427319094 ".concat(item.upvoted ? modules_63b47c51$2.active : ""),
5213
+ className: "Frame427319094 ".concat(item.upvoted ? styles.active : ""),
5090
5214
  onClick: function() {
5091
5215
  likeMessage(item.id, item.upvoted);
5092
5216
  //老师的聊天窗口中不需要点赞和踩消息
5093
5217
  if (!isAiChatWindow) return;
5094
5218
  //只有最后一条回答,支持发送点赞或踩
5095
5219
  if (!item.upvoted && (historyMessageList.length == i + 1 || historyMessageList.length - 2 == i)) {
5096
- console.log("判断是AI还是智能回答", item);
5220
+ console.log("判断是AI还是智能问答", item);
5097
5221
  if (!item.extraInfo && item.sender == "AI") {
5098
5222
  aiSendQuestions(1, {
5099
5223
  roomId: roomId,
@@ -5111,7 +5235,7 @@ var CustomerService = function(props) {
5111
5235
  children: /*#__PURE__*/ jsx(CustomLike$1, {})
5112
5236
  }),
5113
5237
  /*#__PURE__*/ jsx("i", {
5114
- className: "Frame427319095 ".concat(item.downvoted ? modules_63b47c51$2.active : ""),
5238
+ className: "Frame427319095 ".concat(item.downvoted ? styles.active : ""),
5115
5239
  onClick: function() {
5116
5240
  disagreeMessage(item.id, item.downvoted);
5117
5241
  //老师的聊天窗口中不需要点赞和踩消息
@@ -5146,7 +5270,7 @@ var CustomerService = function(props) {
5146
5270
  var placeholder = "";
5147
5271
  var disabled = false;
5148
5272
  if (voiceRecordingStatus == 2) {
5149
- placeholder = "录制中...";
5273
+ placeholder = "语音录制中,请说话...";
5150
5274
  } else if (voiceRecordingStatus == 1) {
5151
5275
  placeholder = "正在语音识别文字,请稍后...";
5152
5276
  } else if (!finished) {
@@ -5158,15 +5282,15 @@ var CustomerService = function(props) {
5158
5282
  return /*#__PURE__*/ jsxs(Fragment, {
5159
5283
  children: [
5160
5284
  /*#__PURE__*/ jsxs("div", {
5161
- className: modules_63b47c51$2.input_wrap,
5285
+ className: styles.input_wrap,
5162
5286
  onChange: function() {
5163
5287
  resettingBottomHei();
5164
5288
  },
5165
5289
  children: [
5166
5290
  /*#__PURE__*/ jsxs("div", {
5167
- className: "".concat(modules_63b47c51$2.input, " ").concat(userData.modules.some(function(item) {
5291
+ className: "".concat(styles.input, " ").concat(userData.modules.some(function(item) {
5168
5292
  return item.short == "AIservice";
5169
- }) ? "" : modules_63b47c51$2.no_AI),
5293
+ }) ? "" : styles.no_AI),
5170
5294
  children: [
5171
5295
  /*#__PURE__*/ jsx(TextArea, {
5172
5296
  placeholder: placeholder,
@@ -5206,7 +5330,7 @@ var CustomerService = function(props) {
5206
5330
  if (roomList.length > 0 && roomList[0].roomId != roomId) {
5207
5331
  sendToTeacher(2);
5208
5332
  } else {
5209
- sendMessage();
5333
+ sendMessage("", 0);
5210
5334
  }
5211
5335
  setButtomHei(45);
5212
5336
  } else {
@@ -5221,16 +5345,16 @@ var CustomerService = function(props) {
5221
5345
  maxLength: 1000
5222
5346
  }),
5223
5347
  citationContent.content != undefined && citationContent.content != "" ? /*#__PURE__*/ jsxs("div", {
5224
- className: modules_63b47c51$2.content_main,
5348
+ className: styles.content_main,
5225
5349
  children: [
5226
5350
  /*#__PURE__*/ jsx("div", {
5227
- className: modules_63b47c51$2.content_con,
5351
+ className: styles.content_con,
5228
5352
  children: /*#__PURE__*/ jsx("p", {
5229
5353
  children: citationContent.content
5230
5354
  })
5231
5355
  }),
5232
5356
  /*#__PURE__*/ jsx("i", {
5233
- className: modules_63b47c51$2.delete_quote,
5357
+ className: styles.delete_quote,
5234
5358
  onClick: function() {
5235
5359
  setCitationContent({});
5236
5360
  resettingBottomHei();
@@ -5244,10 +5368,10 @@ var CustomerService = function(props) {
5244
5368
  userData.modules.some(function(item) {
5245
5369
  return item.short == "AIservice";
5246
5370
  }) ? /*#__PURE__*/ jsxs("p", {
5247
- className: modules_63b47c51$2.voice,
5371
+ className: styles.voice,
5248
5372
  children: [
5249
5373
  voiceRecordingStatus == 1 || voiceRecordingStatus == 3 ? /*#__PURE__*/ jsx("i", {
5250
- className: "".concat(!disabled ? modules_63b47c51$2.disabled : ""),
5374
+ className: "".concat(!disabled ? styles.disabled : ""),
5251
5375
  onClick: function() {
5252
5376
  //开始录音
5253
5377
  if (!disabled) return;
@@ -5265,7 +5389,7 @@ var CustomerService = function(props) {
5265
5389
  voiceRecordingStatus == 2 ? /*#__PURE__*/ jsx("img", {
5266
5390
  // src={Voice_btn}
5267
5391
  src: "/new_yun/images/aiService/voice_btn.gif",
5268
- className: modules_63b47c51$2.voice_btn,
5392
+ className: styles.voice_btn,
5269
5393
  onClick: function() {
5270
5394
  //结束录音
5271
5395
  // console.log(mediaRecorder,'3333333');
@@ -5280,9 +5404,9 @@ var CustomerService = function(props) {
5280
5404
  ]
5281
5405
  }),
5282
5406
  /*#__PURE__*/ jsx("p", {
5283
- className: "".concat(modules_63b47c51$2.sending),
5407
+ className: "".concat(styles.sending),
5284
5408
  children: /*#__PURE__*/ jsx("i", {
5285
- className: "".concat(!disabled || keyWord.trim() == "" ? modules_63b47c51$2.disabled : ""),
5409
+ className: "".concat(!disabled || keyWord.trim() == "" ? styles.disabled : ""),
5286
5410
  onClick: function() {
5287
5411
  if (!disabled) return;
5288
5412
  setCitationContent({});
@@ -5293,7 +5417,7 @@ var CustomerService = function(props) {
5293
5417
  if (roomList.length > 0 && roomList[0].roomId != roomId) {
5294
5418
  sendToTeacher(2);
5295
5419
  } else {
5296
- sendMessage();
5420
+ sendMessage("", 0);
5297
5421
  }
5298
5422
  onEvent(serverName + serverUrl(), "click_智能问答_ Enter", "提交");
5299
5423
  }
@@ -5308,16 +5432,16 @@ var CustomerService = function(props) {
5308
5432
  var renderAssociationProblem = function() {
5309
5433
  if (answerMode == 1) {
5310
5434
  return /*#__PURE__*/ jsx("div", {
5311
- className: "".concat(modules_63b47c51$2.issues_list, " ").concat(modules_63b47c51$2.issues_list_teacherList),
5435
+ className: "".concat(styles.issues_list, " ").concat(styles.issues_list_teacherList),
5312
5436
  style: {
5313
- bottom: "".concat(buttomHei + 6, "px")
5437
+ bottom: "".concat(buttomHei + 14, "px")
5314
5438
  },
5315
5439
  children: teacherList.map(function(item) {
5316
5440
  var span = item.name.replaceAll(keyWord, function() {
5317
- return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(keyWord, "</span>");
5441
+ return "<span class=".concat(styles.sign, ">").concat(keyWord, "</span>");
5318
5442
  });
5319
5443
  return /*#__PURE__*/ jsx("p", {
5320
- className: modules_63b47c51$2.item,
5444
+ className: styles.item,
5321
5445
  children: /*#__PURE__*/ jsx("span", {
5322
5446
  onClick: function() {
5323
5447
  setTeacherList([]);
@@ -5352,16 +5476,16 @@ var CustomerService = function(props) {
5352
5476
  });
5353
5477
  } else {
5354
5478
  return /*#__PURE__*/ jsx("div", {
5355
- className: modules_63b47c51$2.issues_list,
5479
+ className: styles.issues_list,
5356
5480
  style: {
5357
5481
  bottom: "".concat(buttomHei + 6, "px")
5358
5482
  },
5359
5483
  children: questionsList.map(function(item) {
5360
5484
  var span = item.question.replaceAll(keyWord, function() {
5361
- return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(keyWord, "</span>");
5485
+ return "<span class=".concat(styles.sign, ">").concat(keyWord, "</span>");
5362
5486
  });
5363
5487
  return /*#__PURE__*/ jsx("p", {
5364
- className: modules_63b47c51$2.item,
5488
+ className: styles.item,
5365
5489
  children: /*#__PURE__*/ jsx("span", {
5366
5490
  onClick: function() {
5367
5491
  sendMessage(item, 2);
@@ -5382,12 +5506,6 @@ var CustomerService = function(props) {
5382
5506
  if (page != 1) {
5383
5507
  setPageNumHistory(page);
5384
5508
  }
5385
- createRooms(receiver);
5386
- if (childRef.current) {
5387
- setTimeout(function() {
5388
- childRef.current.roomsListTimer();
5389
- }, 500);
5390
- }
5391
5509
  setPageNum(page);
5392
5510
  setLastId(id); //用于定位
5393
5511
  //如果是当前聊天室
@@ -5395,22 +5513,30 @@ var CustomerService = function(props) {
5395
5513
  getHistoryMessage(page, 1);
5396
5514
  } else {
5397
5515
  setRoomId(renewRoomId);
5516
+ if (childRef.current) {
5517
+ if (receiver != mid) {
5518
+ createRooms(receiver);
5519
+ }
5520
+ setTimeout(function() {
5521
+ childRef.current.roomsListTimer();
5522
+ }, 500);
5523
+ }
5398
5524
  }
5399
5525
  };
5400
5526
  return /*#__PURE__*/ jsxs(Fragment, {
5401
5527
  children: [
5402
5528
  /*#__PURE__*/ jsxs(Drawer, {
5403
- title: "智能回答",
5529
+ title: "智能问答",
5404
5530
  width: 560,
5405
5531
  onClose: function() {
5406
5532
  onCancel();
5407
5533
  onEvent(serverName + serverUrl(), "click_智能问答_收起侧边栏", "提交");
5408
5534
  },
5409
5535
  open: showType == 1 ? true : false,
5410
- className: modules_63b47c51$2.ChatWindow_Drawer,
5536
+ className: styles.ChatWindow_Drawer,
5411
5537
  mask: false,
5412
5538
  // maskClosable={false}
5413
- rootClassName: modules_63b47c51$2.service_ChatWindow_Drawer,
5539
+ rootClassName: styles.service_ChatWindow_Drawer,
5414
5540
  children: [
5415
5541
  showType == 1 && /*#__PURE__*/ jsx("div", {
5416
5542
  style: {
@@ -5432,18 +5558,18 @@ var CustomerService = function(props) {
5432
5558
  })
5433
5559
  }),
5434
5560
  /*#__PURE__*/ jsx("div", {
5435
- className: modules_63b47c51$2.header_wrap,
5561
+ className: styles.header_wrap,
5436
5562
  children: renderHeader()
5437
5563
  }),
5438
5564
  /*#__PURE__*/ jsxs("div", {
5439
- className: "".concat(modules_63b47c51$2.Drawer_main),
5565
+ className: "".concat(styles.Drawer_main),
5440
5566
  id: "chat_content",
5441
5567
  style: {
5442
5568
  maxHeight: "calc(100vh-".concat(buttomHei + 48, "px)")
5443
5569
  },
5444
5570
  children: [
5445
5571
  loading ? /*#__PURE__*/ jsx("div", {
5446
- className: modules_63b47c51$2.loading,
5572
+ className: styles.loading,
5447
5573
  children: /*#__PURE__*/ jsx("img", {
5448
5574
  src: "/new_yun/images/loading_d.gif",
5449
5575
  alt: ""
@@ -5451,7 +5577,7 @@ var CustomerService = function(props) {
5451
5577
  }) : "",
5452
5578
  renderQuestion(),
5453
5579
  bottomLoading ? /*#__PURE__*/ jsx("div", {
5454
- className: modules_63b47c51$2.loading,
5580
+ className: styles.loading,
5455
5581
  children: /*#__PURE__*/ jsx("img", {
5456
5582
  src: "/new_yun/images/loading_d.gif",
5457
5583
  alt: ""
@@ -5460,11 +5586,11 @@ var CustomerService = function(props) {
5460
5586
  ]
5461
5587
  }),
5462
5588
  /*#__PURE__*/ jsxs("div", {
5463
- className: modules_63b47c51$2.Drawer_buttom_Issues_List,
5589
+ className: styles.Drawer_buttom_Issues_List,
5464
5590
  children: [
5465
5591
  renderAssociationProblem(),
5466
5592
  /*#__PURE__*/ jsx("div", {
5467
- className: modules_63b47c51$2.Drawer_buttom,
5593
+ className: styles.Drawer_buttom,
5468
5594
  id: "Drawer_buttom",
5469
5595
  children: renderBottomAnt()
5470
5596
  })
@@ -5479,13 +5605,12 @@ var CustomerService = function(props) {
5479
5605
  onClose: function() {
5480
5606
  setShowHistory(false);
5481
5607
  },
5482
- loadSpecifiedData: loadSpecifiedData,
5483
- roomList: roomList
5608
+ loadSpecifiedData: loadSpecifiedData
5484
5609
  })
5485
5610
  ]
5486
5611
  }),
5487
5612
  /*#__PURE__*/ jsxs(Modal, {
5488
- title: "智能回答",
5613
+ title: "智能问答",
5489
5614
  open: showType == 2 ? true : false,
5490
5615
  onCancel: function() {
5491
5616
  onCancel();
@@ -5493,21 +5618,22 @@ var CustomerService = function(props) {
5493
5618
  },
5494
5619
  centered: true,
5495
5620
  width: window.innerWidth - 252 > 1214 ? window.innerWidth - 252 : 1214,
5621
+ // @ts-ignore
5496
5622
  height: window.innerHeight - 160,
5497
- wrapClassName: modules_63b47c51$2.ChatWindow_Modal,
5623
+ wrapClassName: styles.ChatWindow_Modal,
5498
5624
  footer: false,
5499
5625
  maskClosable: false,
5500
5626
  closeIcon: null,
5501
5627
  children: [
5502
5628
  /*#__PURE__*/ jsx("div", {
5503
- className: modules_63b47c51$2.header_wrap,
5629
+ className: styles.header_wrap,
5504
5630
  children: renderHeader()
5505
5631
  }),
5506
5632
  /*#__PURE__*/ jsxs("div", {
5507
- className: "".concat(modules_63b47c51$2.Drawer_wrap_main),
5633
+ className: "".concat(styles.Drawer_wrap_main),
5508
5634
  children: [
5509
5635
  /*#__PURE__*/ jsxs("div", {
5510
- className: "".concat(modules_63b47c51$2.Drawer_main, " ChatWindow_Modal_history_list"),
5636
+ className: "".concat(styles.Drawer_main, " ChatWindow_Modal_history_list"),
5511
5637
  id: "chat_content_modal",
5512
5638
  style: {
5513
5639
  maxHeight: "".concat(window.innerHeight - 148 - buttomHei, "px")
@@ -5527,10 +5653,10 @@ var CustomerService = function(props) {
5527
5653
  ref: childRef
5528
5654
  }),
5529
5655
  /*#__PURE__*/ jsxs("div", {
5530
- className: modules_63b47c51$2.chat_content,
5656
+ className: styles.chat_content,
5531
5657
  children: [
5532
5658
  loading ? /*#__PURE__*/ jsx("div", {
5533
- className: modules_63b47c51$2.loading,
5659
+ className: styles.loading,
5534
5660
  children: /*#__PURE__*/ jsx("img", {
5535
5661
  src: "/new_yun/images/loading_d.gif",
5536
5662
  alt: ""
@@ -5542,11 +5668,11 @@ var CustomerService = function(props) {
5542
5668
  ]
5543
5669
  }),
5544
5670
  /*#__PURE__*/ jsxs("div", {
5545
- className: modules_63b47c51$2.Drawer_buttom_Issues_List,
5671
+ className: styles.Drawer_buttom_Issues_List,
5546
5672
  children: [
5547
5673
  renderAssociationProblem(),
5548
5674
  /*#__PURE__*/ jsx("div", {
5549
- className: modules_63b47c51$2.Drawer_buttom,
5675
+ className: styles.Drawer_buttom,
5550
5676
  id: "Drawer_buttom_modal",
5551
5677
  children: renderBottomAnt()
5552
5678
  })
@@ -5561,24 +5687,23 @@ var CustomerService = function(props) {
5561
5687
  onClose: function() {
5562
5688
  setShowHistory(false);
5563
5689
  },
5564
- loadSpecifiedData: loadSpecifiedData,
5565
- roomList: roomList
5690
+ loadSpecifiedData: loadSpecifiedData
5566
5691
  })
5567
5692
  ]
5568
5693
  })
5569
5694
  ]
5570
5695
  }),
5571
5696
  showType == 3 ? /*#__PURE__*/ jsxs("div", {
5572
- className: "".concat(modules_63b47c51$2.ChatWindow_Drawer),
5697
+ className: "".concat(styles.ChatWindow_Drawer),
5573
5698
  id: "",
5574
5699
  children: [
5575
5700
  /*#__PURE__*/ jsx("div", {
5576
- className: "".concat(modules_63b47c51$2.header_wrap, " ").concat(modules_63b47c51$2.header_wrap_newlabo),
5701
+ className: "".concat(styles.header_wrap, " ").concat(styles.header_wrap_newlabo),
5577
5702
  children: /*#__PURE__*/ jsxs("div", {
5578
- className: modules_63b47c51$2.top,
5703
+ className: styles.top,
5579
5704
  children: [
5580
5705
  /*#__PURE__*/ jsx("div", {
5581
- className: modules_63b47c51$2.user,
5706
+ className: styles.user,
5582
5707
  children: /*#__PURE__*/ jsx("p", {
5583
5708
  children: roomList.filter(function(e) {
5584
5709
  return e.roomId == roomId;
@@ -5586,20 +5711,21 @@ var CustomerService = function(props) {
5586
5711
  return e.roomId == roomId;
5587
5712
  })[0].name != undefined ? roomList.filter(function(e) {
5588
5713
  return e.roomId == roomId;
5589
- })[0].name : "智能回答"
5714
+ })[0].name : "智能问答"
5590
5715
  })
5591
5716
  }),
5592
5717
  /*#__PURE__*/ jsxs("div", {
5593
- className: modules_63b47c51$2.operate,
5718
+ className: styles.operate,
5594
5719
  children: [
5595
5720
  /*#__PURE__*/ jsx("i", {
5596
5721
  onClick: function() {
5597
5722
  setShowHistory(true);
5723
+ onEvent(serverName + serverUrl(), "click_智能问答_历史记录", "提交");
5598
5724
  },
5599
5725
  children: /*#__PURE__*/ jsx(CustomRecord$1, {})
5600
5726
  }),
5601
5727
  /*#__PURE__*/ jsx("span", {
5602
- className: modules_63b47c51$2.line
5728
+ className: styles.line
5603
5729
  }),
5604
5730
  /*#__PURE__*/ jsx("i", {
5605
5731
  onClick: function() {
@@ -5613,7 +5739,7 @@ var CustomerService = function(props) {
5613
5739
  /*#__PURE__*/ jsx("i", {
5614
5740
  className: "lianxiren21",
5615
5741
  onClick: function() {
5616
- setShowContacts(true);
5742
+ setShowContacts(!showContacts);
5617
5743
  },
5618
5744
  children: /*#__PURE__*/ jsx(CustomContacts$1, {})
5619
5745
  })
@@ -5623,14 +5749,14 @@ var CustomerService = function(props) {
5623
5749
  })
5624
5750
  }),
5625
5751
  /*#__PURE__*/ jsxs("div", {
5626
- className: "".concat(modules_63b47c51$2.Drawer_main, " ").concat(modules_63b47c51$2.Drawer_main_newlabo),
5752
+ className: "".concat(styles.Drawer_main, " ").concat(styles.Drawer_main_newlabo),
5627
5753
  id: "chat_content",
5628
5754
  style: {
5629
5755
  maxHeight: "".concat(window.innerHeight - 110 - buttomHei, "px)")
5630
5756
  },
5631
5757
  children: [
5632
5758
  loading ? /*#__PURE__*/ jsx("div", {
5633
- className: modules_63b47c51$2.loading,
5759
+ className: styles.loading,
5634
5760
  children: /*#__PURE__*/ jsx("img", {
5635
5761
  src: "/new_yun/images/loading_d.gif",
5636
5762
  alt: ""
@@ -5640,11 +5766,11 @@ var CustomerService = function(props) {
5640
5766
  ]
5641
5767
  }),
5642
5768
  /*#__PURE__*/ jsxs("div", {
5643
- className: "".concat(modules_63b47c51$2.Drawer_buttom_Issues_List, " ").concat(modules_63b47c51$2.Drawer_buttom_Issues_List_newlabo),
5769
+ className: "".concat(styles.Drawer_buttom_Issues_List, " ").concat(styles.Drawer_buttom_Issues_List_newlabo),
5644
5770
  children: [
5645
5771
  renderAssociationProblem(),
5646
5772
  /*#__PURE__*/ jsx("div", {
5647
- className: modules_63b47c51$2.Drawer_buttom,
5773
+ className: styles.Drawer_buttom,
5648
5774
  id: "Drawer_buttom",
5649
5775
  children: renderBottomAnt()
5650
5776
  })
@@ -5659,8 +5785,7 @@ var CustomerService = function(props) {
5659
5785
  onClose: function() {
5660
5786
  setShowHistory(false);
5661
5787
  },
5662
- loadSpecifiedData: loadSpecifiedData,
5663
- roomList: roomList
5788
+ loadSpecifiedData: loadSpecifiedData
5664
5789
  }),
5665
5790
  showType == 3 && /*#__PURE__*/ jsx("div", {
5666
5791
  style: {
@@ -5685,7 +5810,7 @@ var CustomerService = function(props) {
5685
5810
  showType == 4 && /*#__PURE__*/ jsxs(Fragment, {
5686
5811
  children: [
5687
5812
  /*#__PURE__*/ jsxs(Modal, {
5688
- title: "智能回答",
5813
+ title: "智能问答",
5689
5814
  open: true,
5690
5815
  onCancel: function() {
5691
5816
  onCancel();
@@ -5693,21 +5818,22 @@ var CustomerService = function(props) {
5693
5818
  },
5694
5819
  centered: true,
5695
5820
  width: window.innerWidth - 252 > 1214 ? window.innerWidth - 252 : 1214,
5821
+ // @ts-ignore
5696
5822
  height: window.innerHeight - 160,
5697
- wrapClassName: "".concat(modules_63b47c51$2.ChatWindow_Modal),
5823
+ wrapClassName: "".concat(styles.ChatWindow_Modal),
5698
5824
  footer: false,
5699
5825
  maskClosable: false,
5700
5826
  closeIcon: null,
5701
5827
  children: [
5702
5828
  /*#__PURE__*/ jsx("div", {
5703
- className: modules_63b47c51$2.header_wrap,
5829
+ className: styles.header_wrap,
5704
5830
  children: renderHeader()
5705
5831
  }),
5706
5832
  /*#__PURE__*/ jsxs("div", {
5707
- className: "".concat(modules_63b47c51$2.Drawer_wrap_main),
5833
+ className: "".concat(styles.Drawer_wrap_main),
5708
5834
  children: [
5709
5835
  /*#__PURE__*/ jsxs("div", {
5710
- className: "".concat(modules_63b47c51$2.Drawer_main, " ").concat(modules_63b47c51$2.Drawer_main_newlabo),
5836
+ className: "".concat(styles.Drawer_main, " ").concat(styles.Drawer_main_newlabo),
5711
5837
  id: "chat_content_modal",
5712
5838
  style: {
5713
5839
  maxHeight: "".concat(window.innerHeight - 148 - buttomHei, "px")
@@ -5727,10 +5853,10 @@ var CustomerService = function(props) {
5727
5853
  ref: childRef
5728
5854
  }),
5729
5855
  /*#__PURE__*/ jsxs("div", {
5730
- className: modules_63b47c51$2.chat_content,
5856
+ className: styles.chat_content,
5731
5857
  children: [
5732
5858
  loading ? /*#__PURE__*/ jsx("div", {
5733
- className: modules_63b47c51$2.loading,
5859
+ className: styles.loading,
5734
5860
  children: /*#__PURE__*/ jsx("img", {
5735
5861
  src: "/new_yun/images/loading_d.gif",
5736
5862
  alt: ""
@@ -5742,11 +5868,11 @@ var CustomerService = function(props) {
5742
5868
  ]
5743
5869
  }),
5744
5870
  /*#__PURE__*/ jsxs("div", {
5745
- className: modules_63b47c51$2.Drawer_buttom_Issues_List,
5871
+ className: styles.Drawer_buttom_Issues_List,
5746
5872
  children: [
5747
5873
  renderAssociationProblem(),
5748
5874
  /*#__PURE__*/ jsx("div", {
5749
- className: modules_63b47c51$2.Drawer_buttom,
5875
+ className: styles.Drawer_buttom,
5750
5876
  id: "Drawer_buttom_modal",
5751
5877
  children: renderBottomAnt()
5752
5878
  })
@@ -5761,24 +5887,23 @@ var CustomerService = function(props) {
5761
5887
  onClose: function() {
5762
5888
  setShowHistory(false);
5763
5889
  },
5764
- loadSpecifiedData: loadSpecifiedData,
5765
- roomList: roomList
5890
+ loadSpecifiedData: loadSpecifiedData
5766
5891
  })
5767
5892
  ]
5768
5893
  })
5769
5894
  ]
5770
5895
  }),
5771
5896
  /*#__PURE__*/ jsxs("div", {
5772
- className: "".concat(modules_63b47c51$2.ChatWindow_Drawer),
5897
+ className: "".concat(styles.ChatWindow_Drawer),
5773
5898
  id: "",
5774
5899
  children: [
5775
5900
  /*#__PURE__*/ jsx("div", {
5776
- className: "".concat(modules_63b47c51$2.header_wrap, " ").concat(modules_63b47c51$2.header_wrap_newlabo),
5901
+ className: "".concat(styles.header_wrap, " ").concat(styles.header_wrap_newlabo),
5777
5902
  children: /*#__PURE__*/ jsxs("div", {
5778
- className: modules_63b47c51$2.top,
5903
+ className: styles.top,
5779
5904
  children: [
5780
5905
  /*#__PURE__*/ jsx("div", {
5781
- className: modules_63b47c51$2.user,
5906
+ className: styles.user,
5782
5907
  children: /*#__PURE__*/ jsx("p", {
5783
5908
  children: roomList.filter(function(e) {
5784
5909
  return e.roomId == roomId;
@@ -5786,11 +5911,11 @@ var CustomerService = function(props) {
5786
5911
  return e.roomId == roomId;
5787
5912
  })[0].name ? roomList.filter(function(e) {
5788
5913
  return e.roomId == roomId;
5789
- })[0].name : "智能回答"
5914
+ })[0].name : "智能问答"
5790
5915
  })
5791
5916
  }),
5792
5917
  /*#__PURE__*/ jsxs("div", {
5793
- className: modules_63b47c51$2.operate,
5918
+ className: styles.operate,
5794
5919
  children: [
5795
5920
  /*#__PURE__*/ jsx("i", {
5796
5921
  onClick: function() {
@@ -5799,7 +5924,7 @@ var CustomerService = function(props) {
5799
5924
  children: /*#__PURE__*/ jsx(CustomRecord$1, {})
5800
5925
  }),
5801
5926
  /*#__PURE__*/ jsx("span", {
5802
- className: modules_63b47c51$2.line
5927
+ className: styles.line
5803
5928
  }),
5804
5929
  /*#__PURE__*/ jsx("i", {
5805
5930
  onClick: function() {
@@ -5822,14 +5947,14 @@ var CustomerService = function(props) {
5822
5947
  })
5823
5948
  }),
5824
5949
  /*#__PURE__*/ jsxs("div", {
5825
- className: "".concat(modules_63b47c51$2.Drawer_main, " ").concat(modules_63b47c51$2.Drawer_main_newlabo, " ").concat(modules_63b47c51$2.Drawer_main_newlabo_no_pic),
5950
+ className: "".concat(styles.Drawer_main, " ").concat(styles.Drawer_main_newlabo, " ").concat(styles.Drawer_main_newlabo_no_pic),
5826
5951
  id: "",
5827
5952
  style: {
5828
5953
  maxHeight: "".concat(window.innerHeight - 100 - buttomHei, "px)")
5829
5954
  },
5830
5955
  children: [
5831
5956
  loading ? /*#__PURE__*/ jsx("div", {
5832
- className: modules_63b47c51$2.loading,
5957
+ className: styles.loading,
5833
5958
  children: /*#__PURE__*/ jsx("img", {
5834
5959
  src: "/new_yun/images/loading_d.gif",
5835
5960
  alt: ""
@@ -5839,11 +5964,11 @@ var CustomerService = function(props) {
5839
5964
  ]
5840
5965
  }),
5841
5966
  /*#__PURE__*/ jsxs("div", {
5842
- className: "".concat(modules_63b47c51$2.Drawer_buttom_Issues_List, " ").concat(modules_63b47c51$2.Drawer_buttom_Issues_List_newlabo),
5967
+ className: "".concat(styles.Drawer_buttom_Issues_List, " ").concat(styles.Drawer_buttom_Issues_List_newlabo),
5843
5968
  children: [
5844
5969
  renderAssociationProblem(),
5845
5970
  /*#__PURE__*/ jsx("div", {
5846
- className: modules_63b47c51$2.Drawer_buttom,
5971
+ className: styles.Drawer_buttom,
5847
5972
  id: "Drawer_buttom",
5848
5973
  children: renderBottomAnt()
5849
5974
  })