bhd-components 0.6.2 → 0.6.3

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 (39) hide show
  1. package/dist/{9eaa797e.esm.es5.development.js → a0cd97b9.esm.es5.development.js} +1 -1
  2. package/dist/{587f2764.esm.es5.production.js → e88a10a0.esm.es5.production.js} +1 -1
  3. package/dist/index.esm.es5.development.css +1711 -827
  4. package/dist/index.esm.es5.development.js +511 -383
  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.d.ts +3 -0
  8. package/es2017/bhdSelect/index.js +18 -13
  9. package/es2017/bhdSelect/index.module.less +4 -1
  10. package/es2017/customerService/{contactsList/index.js → contactsList.js} +92 -76
  11. package/es2017/customerService/function.d.ts +1 -1
  12. package/es2017/customerService/function.js +10 -2
  13. package/es2017/customerService/{historyFun/index.d.ts → historyFun.d.ts} +0 -1
  14. package/es2017/customerService/{historyFun/index.js → historyFun.js} +62 -16
  15. package/es2017/customerService/index.d.ts +3 -3
  16. package/es2017/customerService/index.js +143 -82
  17. package/es2017/customerService/index.module.less +496 -6
  18. package/es2017/customerService/index2.module.less +1282 -0
  19. package/es2017/typings.d.ts +12 -0
  20. package/esm/bhdSelect/index.d.ts +3 -0
  21. package/esm/bhdSelect/index.js +18 -13
  22. package/esm/bhdSelect/index.module.less +4 -1
  23. package/esm/customerService/{contactsList/index.js → contactsList.js} +83 -65
  24. package/esm/customerService/function.d.ts +1 -1
  25. package/esm/customerService/function.js +10 -1
  26. package/esm/customerService/{historyFun/index.d.ts → historyFun.d.ts} +0 -1
  27. package/esm/customerService/{historyFun/index.js → historyFun.js} +63 -16
  28. package/esm/customerService/index.d.ts +3 -3
  29. package/esm/customerService/index.js +173 -112
  30. package/esm/customerService/index.module.less +496 -6
  31. package/esm/customerService/index2.module.less +1282 -0
  32. package/esm/typings.d.ts +12 -0
  33. package/package.json +1 -1
  34. package/es2017/customerService/contactsList/index.module.less +0 -208
  35. package/es2017/customerService/historyFun/index.module.less +0 -223
  36. package/esm/customerService/contactsList/index.module.less +0 -208
  37. package/esm/customerService/historyFun/index.module.less +0 -223
  38. /package/es2017/customerService/{contactsList/index.d.ts → contactsList.d.ts} +0 -0
  39. /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 './a0cd97b9.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 './a0cd97b9.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,iVBORw0KGgoAAAANSUhEUgAAAGAAAABoCAYAAAAOy/VVAAAO8ElEQVR4Xu1daXBb1RX+7n1P+2I7juM4wWFJwxp2aCBAQllCS9kLgZZOB2g7w1A6LS0Uyq+2/yntD6Z06EALBVqgAQZoGkiABAwkISGbnTh2VseLZEve5EXLe7dznvIcRZEsPUlPi9GdeaMn6a7fd8+5+7kMM8QJIfj+/fs9gUDAqyiK2+Fw2K1Wqw2AVZZl+rRJkmSLxZhTslgcTMARU1WnJMn06WCcOyBgZwx2xrlNVRQH59wKMBug2mRJtkCodnBmYQxWzrjMIOhd5vQbBH3KDJCiCkJjk+pAz6DY1taLd0MRvuE3tzfuSwU1ywd/IQSFt+7Zs8cNwDM+Pu6VJMkuy7LVYrHYqOBCCKuqMieXZVckqrqp8IrKnaoac3Eu2yFUJ2fMrgg4GGd2BtgAYZO0wsPGwCycwcoYLOCwcDCZMSFLnEsMQuKcSRJnHBA8n7KYFXYsLPBZexSHAuIjK5MffnRlU1tiWikJEEJYDvYE74iEYz+VZHayzEUtBCwSBzHOJc4kziDRu1kZn2nxbuyIYtcRdQIM9/52ZfObevlOIGD3wf4fuCzqX+0WRrW66gqIwPq2KDp8akxi/MbHV87/gKI+joDWff4XGjy4r4BpVqNKQCCqAP/ZGMZYGH6LUzrn0ZvnDUwRsL2j77mmGv6TKmLmIrCnR8Gne6IAY888eXfzwxoBOzqD32n0Ku8xaI1q1SUgwBgDPZq6SHqn3xRFgaqqWWNGXl9uCSMSw4TL45yrxdx+wNdX52KNWcdSAo+pgEgHTPLv+fjLpqhEwsTEhPZk49btiuCAXwWXpVvY5ta+W09u4G9lEzDRD+d8qkbkU8BsgTWav1L4j0ajGB4ehhBi2uRbu2L4vCMGcPYHtmWPb23zLHZtNhm22+2gR5blKbHMJtzXyU8sFsPg4OC0RT7Yr2DtzigY4/9g7Qd8g3UuVjtdCKrtXq8XFovl64RlzmUlVRQKhdKG7xtS8e7WCDhnq1hXT3/UJgs5nW8Cv7a2FpIk5Zyhr1tAUkEkBdQ2pHK+IRXvbI3QGOBt5vP3q9P1fmpqamC10qxA1RlBYHx8HGNjY5kJ8Pv9aVsMAp4IqDrjCEzXFhwnAdMRUK39xoHXQ5AaGhgYyE8CZs+eXe3t5M6BRkCqLmlWEkBdzbq6ujySNyfoeFjF1s4QFjbZ0TSrvNumvAigLif1fsrNrd85jM/aRtBYZ8UDK8p68J6fBJRrA/y/LYP4qjMEr1PGz25uKrf6cVx+8pKAKgH5czsjCfh4xzA+3z2CObVW/PiGqgrKv5oYjGF4TMGH24dw3qkurSEuZ1cRErD2qyHQAvPy82rATVqNaD00jo6eCVx7QS08juJNqZQ9AQMjMTy3ulerxItPceHmJbMKXqEJ/Hc2BrX++DUX1GLJGZ6Cp5EuwrIngKbNn/1vL4ZCMa0My86twRVne9MCFByNYTAUw9ikAruVa7W5sdYKnmZvRk8ggn9+6IeiCpp5xH3XN6KxtngzumVPACFNoL64zo+JsIIal4yHbjq+axmJCWzeO4pdB8cRHI2eQI7DynFGs1Or2bM8x0/qrtkyqA3ayN20pB7nnuIsWu2nhCqCAMoo1VTq35/V7MTlZx1TEXu7J/D+lkGMTqSe1k1EU5IYLjvDg6sW1+DoEi4O94ex5stBXLzIjYu+UfxdNhVDQKpqual9FB9uP7a8Rw31aXPtaKq3wm2XMBlRERiNoaN7AuPhYwQtmufAbUvrIUsmtegGZKhiCdjSEcL7W+PLerRmfMFCF5afWwNSN8lOFcC2fSHQFAWRQm5hkwMrl802AJU5XiuSgL7BKF5c54OiCK0W37Z0NhbNy9zfp/HBv9b3T7UT3zq/FpedWbweTyoKK5KAF973oW8wopXnzqsasgJfL3xoUsXza/q0XhKprAe/2wSvs3j9/mQSKo6Afb2TeG1Dv1aOS0734PoLjc/G7u+bxL/Xx+O4eJEHKy4yHkehFFLFEfDahgHs652AVeZ46OamlDo/G3Be+bgfh3yTmgp75Pb5JWuQy46AcFRoANP2POoq0lwODajIKSrwx1VHEFMELlzoxrcvyX0xqKNnEm98EpeClcsapuaMaOBHUqY31vPqrSeMHbIhOFs/ZUfAyx/147B/cir/tKJFo1Nyh/xhvPKRPyfdnwxINCbw9FvdWkO+5Ewvrjk/vrHgk10j+LR1eMo7jY4fu/Mk0+agyo6Al9b5cWQgPAVA4qrWjgNjeG9TUPvv57fOh9ue39mP59/3wTcYwZnNTty+tF6LV19N0zPwtSOA1nNp4ER9d5r5XDTfAactDvQXe0bx0fYhrd//+F0nTY1msxX3ZH/UEFOD3Nxgww+vmaP9TaqvvXtiSgXNr7dijolzQ2UnAdOB2dI2gg07h7VJMyIgX/f6JwPo7JnA/Nk2/OjaOAHFdhVFwLb9Y1i9Oa6CfnnbfDiOSkauoP39Ax96gxGcPt+B711ZmlFxRRHQ2TuJ14+OAe69Zg4WNNDJ0twc9XaefrMb4aiqTcLdcHHuParcchAPVVEEUNfwT2/1aAsnl5/lxdXn5b4l8shABC+t82kg3Hp5Pc5eUNxpaJ20iiKAMv3iWj+6A2G4HRIeumkepBw7QrQCtuvgmNag/+K2eTkP6PKp/RUnAZThxHbgugvrcOnpxufwAyMx/G1NH1RVlFT/VyQB1E38y3u9GBmPwSJz3HfdHMyuyX4JkUbT1Pj6h+KTefevmIu5ddmHz7fGJ4evOBVEBWg/MoFVLfFdxbT77Z6rG1CftNSYCiiawljVEtCmOsidf5obN15amsa3YtsAPeP69kP67rBJ2lQC7QNK56i7ufrLQW3kS67ea8H9KxphKfGqWEVKAAFII2VqSNsOHTthQqCec7JT2xFNuyG0JcmRGHZ3jWvzSPo2cPJ3z/KGkq4DVLwE6AWgbYgb20e1BjUbd+pcO269rD7vQVw2aWXjp2IlILFw/cNREBE0r5OOCNonuvRsL85qdmSDS9H8zAgCdLQmwipotDw8FkNoQoHNylHjlLBgjh2zvWkPeRYN7FQJzSgCSopkjonPCAKoe0lLjH3BeA8nlXPZJdxxRX3ZHVmaEQR0ByJ4cW18Xmc6d8U5NVi2OP2+0kzhzfh/RhBAM5s0LsgkAddfVIs6d3m1BTOCADNqZrHinHEEHPSFtUV1ahfI0WbeJSXe/TYdmXkRUI7HVF/9uB8Hfcd2VdDy5a/vKN2+n0ySlBcBZB1l1qzCn1jJlOnp/qedEx9uG0JUEZq1wbMXuHDjN0s74WaaBFDE9fX1IHM1VZcbAv398c1hye44UwXdvf2KRUptddbtdsPhKK/hfW5QFD8UGfILBAKZCdh32DfpsZN95BMdqSGyF6HbhCt+MSo3xUgkotmPyygB2/f6Optq2cJ0RXU6nXC50s/FVy5E5uacTJals6LYFVCwZnsUnLE3WMtO3zOLGtlD02XH4/FoxvqqLjsESP0Eg/Gjsanc3l4FG3ZrRvueZTsOibo6S/+ATZ7eEDdJAj1VdZSZhNHRUUxOHusuJ4fY1BnDjsN0NJc/op1k29Tqe/uUBnZLpqipR2Sz2TTrifSu95BSWZTNFNdM/T+TxUQq96pNEQRDKp3iWaIRQObq9x7s99e5UJDjJIW0XJutYddSSyapGzLUR890LjCq4s3NmsXE/U/c3bxo6ixnS1twcZM7utltZxWr7ItNPIFO+p56PFTzs7EhvW5XFAf82rHaB568Z8ELxx2m3dQ+dJrHEm6pd7O5M1VFlLJcxyzmYu0TK5tXMMZSW0vf2Or7Xa0DD87y8DlHrykpZb5nRNqk89/7KopwTLTBwpc9ecdJ2iht2uPkdCHOoaB6oYjhdAG1RgWcTHAXhOJkEl16ozoZYOec2yBUB2PMxiBsjDMrXWzDIWx02Q2YoEtuLBJjMuNCu/6E7n05+kkVga5Fobao9MfbTaC7d1DF2p0RRBSstTjl79PFDXoyZVVgIYQtGAzarFarPTCmuAZHIjXzatlrDGKREVx6h8RQMKTUypxpllTo02VnhyWmHR+2MA7tEiDOyGSzkCROX+jQDlWEuFF4I+ml8zs0JrCzS0F7b2wrZ+ypx+866VWqbYn+C5JQITKbLg6/37+NdhoaSWNjZ2z9zsOx5YlhLHVW92M3zE1tSzgpcroSi25wGh4ephuhbKFQzBEmqReqQwjJrihRpwLhkCE5AGZXodgB4eCMbo1SZVUwfyCkdH7eyVrVcGTkVyub014sUCXACLMm+K0SYAKoRqKsEmAELRP8VgkwAVQjUVYJMIKWCX6rBJgAqpEoqwQYQcsEv1UCTADVSJRVAoygZYLfKgEmgGokyioBRtAywW+VABNANRJllQAjaJngt0qACaAaibJKgBG0TPBbJcAEUI1EWSXACFom+DWbAFpZ0h9KK3GvOy3N0UMWt/XnhL18pVgRMwHntFEWmgCKj07K0UNGm43Gn0gGvSt+v39rsZckK5EAApwM8xT8mGJfX18L5/xcI6B80RHdsKtLWZYYJsxHPL9fuZi2relSlp0BCiMJ5+DXaA1NToJqOZ0tMM1EeS4EfN4++WlrN65MzOy6t5+au+7VPyfvG0wkQ1eJyZ8kiYm/5QBz+iD5EEDAm36bpskEGAUzUUXS/kJ68pKkXAkg4HO3K5ldsbU2pKura72ugmjvJT2JV4XTJh59pza9037NlrbQZ3t62VIh4lbCOZewYfUzqSQgu5yk90Xg05aTzJfcpImjnAnQGvLVq1df7/V653HO3RaLxS1Jkove6ZMexpiHc06/OemdMeb6bPfYzg6/tHSqzIzh0zXPmkEAJUF7jeJ3p+TgciWAwtHpPdN0f4YKky7f+u+JakHX3znAkzEIncI48W6tjMGOeciVAIqBwlLPh9RRPvEYyG7ZeKUaT+DnrHr0khQCOIqDJIEeUhsz+WAxnSuiGp9341tIApKrJRGij3qJDP27LjX6f4Ugv9Aikdzd1Hs9BLjeHS1omqUEIZEkIookSCesoIVMikyf/tBBNbWfn6kgpSQgXd4S5490UnJVa8n9dv17JlyK9n85EpCq8MlqLZWk6DU7cYIvr0FSMVioFAKKgUVJ0vg/1rbSfRydEDwAAAAASUVORK5CYII=";
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__0982ff78","bhdSelect_option":"index_module_bhdSelect_option__0982ff78","bhdSelectDrop":"index_module_bhdSelectDrop__0982ff78","selectTitle":"index_module_selectTitle__0982ff78","bhdSelectSearch":"index_module_bhdSelectSearch__0982ff78","search":"index_module_search__0982ff78"};
1793
1793
 
1794
1794
  var Search = Input.Search;
1795
1795
  var RenderDrop = function(param) {
@@ -1812,7 +1812,7 @@ var BhdSelect = function(props) {
1812
1812
  var _useState1 = _sliced_to_array(useState(0), 2), optionHei = _useState1[0], setOptionHei = _useState1[1]; //option的宽度
1813
1813
  var _useState2 = _sliced_to_array(useState(""), 2), filterValue = _useState2[0], setFilterValue = _useState2[1]; //下拉搜索的内容
1814
1814
  var _useState3 = _sliced_to_array(useState([]), 2), filterChildren = _useState3[0], setfilterChildren = _useState3[1];
1815
- // const [selectWidth,setSelectWidth] = useState(0);//下拉框的宽度
1815
+ var _useState4 = _sliced_to_array(useState(0), 2), selectWidth = _useState4[0], setSelectWidth = _useState4[1]; //下拉框的宽度
1816
1816
  var renderSuffixIcon = function() {
1817
1817
  switch(arrowType){
1818
1818
  case "table":
@@ -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,18 +1971,16 @@ 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
  }
1978
1978
  };
1979
1979
  useEffect(function() {
1980
1980
  // console.log(34343434,props);
1981
- // if(props.popupMatchSelectWidth){
1982
- // setSelectWidth(props.popupMatchSelectWidth);
1983
- // }else{
1984
- // // console.log(bhdSelectRef.current.getBoundingClientRect(),555555555);
1985
- // }
1981
+ if (props.popupMatchSelectWidth) {
1982
+ setSelectWidth(props.popupMatchSelectWidth);
1983
+ }
1986
1984
  filterOption();
1987
1985
  window.addEventListener("resize", initHeight);
1988
1986
  return function() {
@@ -1997,8 +1995,12 @@ var BhdSelect = function(props) {
1997
1995
  var getConfig = function() {
1998
1996
  var config = _object_spread_props(_object_spread({}, props), {
1999
1997
  listHeight: optionHei,
2000
- popupClassName: "".concat(modules_63b47c51$4.bhdSelect_option, " ").concat(popupClassName || "", " "),
2001
- suffixIcon: suffixIcon ? suffixIcon : renderSuffixIcon()
1998
+ popupClassName: "".concat(modules_63b47c51$2.bhdSelect_option, " ").concat(popupClassName || "", " "),
1999
+ suffixIcon: suffixIcon ? suffixIcon : renderSuffixIcon(),
2000
+ popupMatchSelectWidth: selectWidth,
2001
+ dropdownStyle: _object_spread_props(_object_spread({}, props.dropdownStyle), {
2002
+ width: selectWidth
2003
+ })
2002
2004
  });
2003
2005
  delete config.mask;
2004
2006
  delete config.className;
@@ -2015,7 +2017,7 @@ var BhdSelect = function(props) {
2015
2017
  return config;
2016
2018
  };
2017
2019
  return /*#__PURE__*/ jsx("div", {
2018
- className: "".concat(modules_63b47c51$4.BhdSelect, " ").concat(className),
2020
+ className: "".concat(modules_63b47c51$2.BhdSelect, " ").concat(className),
2019
2021
  ref: bhdSelectRef,
2020
2022
  children: /*#__PURE__*/ jsx(Select, _object_spread_props(_object_spread({}, getConfig()), {
2021
2023
  showSearch: false,
@@ -2043,12 +2045,13 @@ var BhdSelect = function(props) {
2043
2045
  }
2044
2046
  //表格中使用下拉列表,定义下拉列表宽度
2045
2047
  // console.log(props.dropdownStyle,'sdsddfdfdf');
2046
- // if(props.dropdownStyle != undefined && props.dropdownStyle.width != undefined){
2047
- // setSelectWidth(props.dropdownStyle.width)
2048
- // }else if( (props.dropdownStyle == undefined || props.dropdownStyle.width == undefined) && useType === 'table'){
2049
- // console.log(bhdSelectRef.current.parentNode.getBoundingClientRect().width-4,33333);
2050
- // setSelectWidth(bhdSelectRef.current.parentNode.getBoundingClientRect().width-4)
2051
- // }
2048
+ if (props.dropdownStyle != undefined && props.dropdownStyle.width != undefined) {
2049
+ setSelectWidth(props.dropdownStyle.width);
2050
+ } else if ((props.dropdownStyle == undefined || props.dropdownStyle.width == undefined) && useType === "table") {
2051
+ try {
2052
+ setSelectWidth(bhdSelectRef.current.parentNode.getBoundingClientRect().width + 14);
2053
+ } catch (error) {}
2054
+ }
2052
2055
  props.onMouseEnter && props.onMouseEnter(e);
2053
2056
  },
2054
2057
  children: filterChildren
@@ -2058,7 +2061,7 @@ var BhdSelect = function(props) {
2058
2061
  BhdSelect.Option = Select.Option;
2059
2062
  var BhdSelect$1 = BhdSelect;
2060
2063
 
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"};
2064
+ 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
2065
 
2063
2066
  var zh_CN = {
2064
2067
  已筛选: "已筛选",
@@ -2213,11 +2216,11 @@ function BhdAppLayout(props) {
2213
2216
  otherContentRef === null || otherContentRef === void 0 ? void 0 : (_otherContentRef_current = otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
2214
2217
  ]);
2215
2218
  return /*#__PURE__*/ jsxs("div", {
2216
- className: "".concat(modules_63b47c51$3.bhd_app_layout, " ").concat(modules_63b47c51$3.className, " ").concat(className || ""),
2219
+ className: "".concat(modules_63b47c51$1.bhd_app_layout, " ").concat(modules_63b47c51$1.className, " ").concat(className || ""),
2217
2220
  children: [
2218
2221
  /*#__PURE__*/ jsx("header", {
2219
2222
  ref: headRef,
2220
- className: "".concat(modules_63b47c51$3.bhd_app_layout_header, " ").concat(headerClassName || ""),
2223
+ className: "".concat(modules_63b47c51$1.bhd_app_layout_header, " ").concat(headerClassName || ""),
2221
2224
  children: headConfig && /*#__PURE__*/ jsx(TitleBar$1, _object_spread({}, headConfig))
2222
2225
  }),
2223
2226
  headContent && /*#__PURE__*/ jsx("div", {
@@ -2225,30 +2228,30 @@ function BhdAppLayout(props) {
2225
2228
  children: headContent
2226
2229
  }),
2227
2230
  /*#__PURE__*/ jsxs("main", {
2228
- className: modules_63b47c51$3.bhd_app_layout_main,
2231
+ className: modules_63b47c51$1.bhd_app_layout_main,
2229
2232
  children: [
2230
2233
  (filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ jsxs("div", {
2231
2234
  ref: filterRef,
2232
- className: modules_63b47c51$3.bhd_app_layout_main_filter,
2235
+ className: modules_63b47c51$1.bhd_app_layout_main_filter,
2233
2236
  children: [
2234
2237
  /*#__PURE__*/ jsxs("div", {
2235
- className: modules_63b47c51$3.bhd_app_layout_main_filter_title,
2238
+ className: modules_63b47c51$1.bhd_app_layout_main_filter_title,
2236
2239
  children: [
2237
2240
  i18Conversion$1("已筛选"),
2238
2241
  ":"
2239
2242
  ]
2240
2243
  }),
2241
2244
  /*#__PURE__*/ jsx("ul", {
2242
- className: modules_63b47c51$3.bhd_app_layout_main_filter_ul,
2245
+ className: modules_63b47c51$1.bhd_app_layout_main_filter_ul,
2243
2246
  children: filterConfig.filterArr.map(function(ele, index) {
2244
2247
  return /*#__PURE__*/ jsxs("li", {
2245
2248
  children: [
2246
2249
  /*#__PURE__*/ jsx("span", {
2247
- className: modules_63b47c51$3.bhd_app_layout_main_filter_show_title,
2250
+ className: modules_63b47c51$1.bhd_app_layout_main_filter_show_title,
2248
2251
  children: ele.title
2249
2252
  }),
2250
2253
  /*#__PURE__*/ jsxs("span", {
2251
- className: modules_63b47c51$3.bhd_app_layout_main_filter_show_value,
2254
+ className: modules_63b47c51$1.bhd_app_layout_main_filter_show_value,
2252
2255
  children: [
2253
2256
  "“",
2254
2257
  ele.value,
@@ -2267,7 +2270,7 @@ function BhdAppLayout(props) {
2267
2270
  }),
2268
2271
  /*#__PURE__*/ jsx("div", {
2269
2272
  onClick: filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.onClearAll,
2270
- className: modules_63b47c51$3.bhd_app_layout_main_filter_clear,
2273
+ className: modules_63b47c51$1.bhd_app_layout_main_filter_clear,
2271
2274
  children: i18Conversion$1("清空条件")
2272
2275
  })
2273
2276
  ]
@@ -2277,7 +2280,7 @@ function BhdAppLayout(props) {
2277
2280
  children: otherContent
2278
2281
  }),
2279
2282
  /*#__PURE__*/ jsx("div", {
2280
- className: "".concat(modules_63b47c51$3.bhd_app_layout_main_table, " ").concat(tableBoxClassName || ""),
2283
+ className: "".concat(modules_63b47c51$1.bhd_app_layout_main_table, " ").concat(tableBoxClassName || ""),
2281
2284
  children: scrollConfig ? tableConfig && /*#__PURE__*/ jsx(BhdTableSimple$1, _object_spread_props(_object_spread({}, tableConfig), {
2282
2285
  pagination: false,
2283
2286
  scroll: _object_spread({}, scrollConfig)
@@ -2286,7 +2289,7 @@ function BhdAppLayout(props) {
2286
2289
  ]
2287
2290
  }),
2288
2291
  footerConfig ? /*#__PURE__*/ jsxs("footer", {
2289
- className: modules_63b47c51$3.bhd_app_layout_footer,
2292
+ className: modules_63b47c51$1.bhd_app_layout_footer,
2290
2293
  children: [
2291
2294
  /*#__PURE__*/ jsx("div", {
2292
2295
  children: (footerConfig === null || footerConfig === void 0 ? void 0 : footerConfig.leftDom) && footerConfig.leftDom
@@ -2298,9 +2301,7 @@ function BhdAppLayout(props) {
2298
2301
  });
2299
2302
  }
2300
2303
 
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"};
2304
+ 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
2305
 
2305
2306
  //消息已读
2306
2307
  var readMessage = function(roomId, urllocation, userData, http) {
@@ -2355,6 +2356,9 @@ var copyText = function(text) {
2355
2356
  };
2356
2357
  //获取当前时间
2357
2358
  var getDataTime = function(time) {
2359
+ var type = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1;
2360
+ //type = 1 ,获取当前年月日
2361
+ //type = 2 ,只显示十 分
2358
2362
  try {
2359
2363
  var now;
2360
2364
  if (time != undefined && time != -1) {
@@ -2370,23 +2374,58 @@ var getDataTime = function(time) {
2370
2374
  var minutes = String(now.getMinutes()).padStart(2, "0");
2371
2375
  var seconds = String(now.getSeconds()).padStart(2, "0");
2372
2376
  var currentDateTime = "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hours, ":").concat(minutes, ":").concat(seconds);
2373
- return currentDateTime;
2377
+ if (type == 1) {
2378
+ return "".concat(year, "-").concat(month, "-").concat(day);
2379
+ } else if (type == 2) {
2380
+ return "".concat(hours, ":").concat(minutes);
2381
+ } else {
2382
+ return currentDateTime;
2383
+ }
2374
2384
  } catch (error) {
2375
2385
  return "";
2376
2386
  }
2377
2387
  };
2378
2388
 
2379
2389
  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;
2390
+ var type = props.type, roomId = props.roomId, userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, loadSpecifiedData = props.loadSpecifiedData;
2381
2391
  var _useState = _sliced_to_array(useState(""), 2), keyWordProblem = _useState[0], setKeyWordProblem = _useState[1]; //搜索内容
2382
2392
  var _useState1 = _sliced_to_array(useState([]), 2), keyHistoryMessageList = _useState1[0], setKeyHistoryMessageList = _useState1[1]; //搜索的历史记录
2383
2393
  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];
2394
+ var _useState3 = _sliced_to_array(useState(1), 2); _useState3[0]; _useState3[1];
2395
+ var _useState4 = _sliced_to_array(useState(0), 2); _useState4[0]; var setPageCount = _useState4[1];
2396
+ var _useState5 = _sliced_to_array(useState(false), 2), load = _useState5[0], setLoad = _useState5[1];
2385
2397
  var timer = useRef(null); //文本框输入时
2386
2398
  var objName = useRef([]);
2399
+ // useEffect(() => {
2400
+ // function handleScroll() {
2401
+ // const container = document.getElementById('history_list');
2402
+ // const scrollTop = container.scrollTop;
2403
+ // const clientHeight = container.clientHeight;
2404
+ // const scrollHeight = container.scrollHeight;
2405
+ // // console.log(scrollTop,clientHeight,scrollHeight,'333dfkvmdfv')
2406
+ // // if((clientHeight + scrollTop + 10) >= scrollHeight && pageCount > pageNum && pageCount > 0){
2407
+ // // // console.log(11111111,pageNumHistory)
2408
+ // // let number = pageNum + 1;
2409
+ // // console.log('到底部了22222',number)
2410
+ // // setPageNum((pageNum) => {
2411
+ // // return pageNum + 1;
2412
+ // // });
2413
+ // // getKeyHistoryMessage(keyWordProblem,number);
2414
+ // // }
2415
+ // }
2416
+ // const content = document.getElementById('history_list');
2417
+ // if (content) {
2418
+ // content.addEventListener("scroll", handleScroll);
2419
+ // }
2420
+ // return () => {
2421
+ // const content = document.getElementById('history_list');
2422
+ // if (content) {
2423
+ // content.removeEventListener("scroll", handleScroll);
2424
+ // }
2425
+ // };
2426
+ // }, [keyHistoryMessageList]);
2387
2427
  useEffect(function() {
2388
2428
  setKeyHistoryMessageList(function(list) {
2389
- console.log(objName, 4444455555);
2390
2429
  var newList = list.map(function(item) {
2391
2430
  var name = "";
2392
2431
  var nameList = objName.current.filter(function(a) {
@@ -2395,12 +2434,10 @@ var HistoryFun = function(props) {
2395
2434
  if (nameList.length > 0) {
2396
2435
  name = nameList[0].name;
2397
2436
  }
2398
- console.log(name, 77777);
2399
2437
  return _object_spread_props(_object_spread({}, item), {
2400
2438
  name: name
2401
2439
  });
2402
2440
  });
2403
- console.log(newList, 4444444444);
2404
2441
  return newList;
2405
2442
  });
2406
2443
  }, [
@@ -2408,13 +2445,16 @@ var HistoryFun = function(props) {
2408
2445
  ]);
2409
2446
  //获取搜索中的历史消息记录
2410
2447
  var getKeyHistoryMessage = function(keyWordProblem) {
2448
+ var page = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
2411
2449
  if (roomId == "") return;
2450
+ setLoad(false);
2451
+ setKeyHistoryMessageList([]);
2412
2452
  return http.get("".concat(urllocation, "/chat-service/public/v1.0/history-messages"), {
2413
2453
  params: {
2414
2454
  roomId: "",
2415
2455
  message: keyWordProblem,
2416
- page: 1,
2417
- maxPageSize: 300,
2456
+ page: page,
2457
+ maxPageSize: 1000,
2418
2458
  direction: "desc"
2419
2459
  },
2420
2460
  headers: {
@@ -2424,11 +2464,16 @@ var HistoryFun = function(props) {
2424
2464
  "x-auth-jwt": window.localStorage.getItem("usertoken") || ""
2425
2465
  }
2426
2466
  }).then(function(res) {
2427
- console.log(res.data, 3434378);
2428
2467
  if (res.data.messages.length > 0) {
2468
+ var total = res.data.total;
2469
+ var maxPageSize = 20;
2470
+ setPageCount(Math.ceil(total / maxPageSize));
2429
2471
  setShowLoadingState(3);
2430
2472
  var dataList = res.data.messages;
2431
- setKeyHistoryMessageList(dataList);
2473
+ setKeyHistoryMessageList(function(list) {
2474
+ var newList = list.concat(dataList);
2475
+ return newList;
2476
+ });
2432
2477
  getUserName(dataList);
2433
2478
  } else {
2434
2479
  // setKeyHistoryMessageList([]);
@@ -2461,7 +2506,7 @@ var HistoryFun = function(props) {
2461
2506
  return pageNumber;
2462
2507
  };
2463
2508
  //根据index,计算历史数据在第几页
2464
- var calculationData = function(roomId, index, id, receiver) {
2509
+ var calculationData = function(roomId, id, receiver) {
2465
2510
  allData(roomId).then(function(res) {
2466
2511
  // console.log(res.data.messages,'11111111')
2467
2512
  if (res.data) {
@@ -2475,7 +2520,10 @@ var HistoryFun = function(props) {
2475
2520
  }
2476
2521
  });
2477
2522
  var pageNumber = findPageNumber(30, Math.ceil(total / 30), number);
2478
- console.log(roomId, pageNumber, id, "第几页第几页第几页第几页第几页第几页");
2523
+ // console.log(
2524
+ // roomId, pageNumber, id,
2525
+ // "第几页第几页第几页第几页第几页第几页"
2526
+ // );
2479
2527
  loadSpecifiedData(roomId, pageNumber, id, receiver);
2480
2528
  onClose();
2481
2529
  setKeyWordProblem("");
@@ -2527,12 +2575,12 @@ var HistoryFun = function(props) {
2527
2575
  });
2528
2576
  };
2529
2577
  return /*#__PURE__*/ jsx("div", {
2530
- className: "".concat(modules_63b47c51$1.history_list, " ").concat(type == 2 ? modules_63b47c51$1.history_list_broadside : "", " "),
2578
+ className: "".concat(modules_63b47c51.history_list, " ").concat(type == 2 ? modules_63b47c51.history_list_broadside : "", " "),
2531
2579
  children: /*#__PURE__*/ jsxs("div", {
2532
- className: modules_63b47c51$1.search_layout,
2580
+ className: modules_63b47c51.search_layout,
2533
2581
  children: [
2534
2582
  /*#__PURE__*/ jsxs("div", {
2535
- className: modules_63b47c51$1.title,
2583
+ className: modules_63b47c51.title,
2536
2584
  children: [
2537
2585
  /*#__PURE__*/ jsx("span", {
2538
2586
  children: "历史记录"
@@ -2546,7 +2594,7 @@ var HistoryFun = function(props) {
2546
2594
  ]
2547
2595
  }),
2548
2596
  /*#__PURE__*/ jsxs("div", {
2549
- className: modules_63b47c51$1.search_top,
2597
+ className: modules_63b47c51.search_top,
2550
2598
  children: [
2551
2599
  /*#__PURE__*/ jsx(SearchOutlined, {}),
2552
2600
  /*#__PURE__*/ jsx(Input, {
@@ -2580,10 +2628,11 @@ var HistoryFun = function(props) {
2580
2628
  ]
2581
2629
  }),
2582
2630
  /*#__PURE__*/ jsxs("div", {
2583
- className: modules_63b47c51$1.main_list,
2631
+ className: modules_63b47c51.main_list,
2632
+ id: "history_list",
2584
2633
  children: [
2585
2634
  showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
2586
- className: modules_63b47c51$1.no_data,
2635
+ className: modules_63b47c51.no_data,
2587
2636
  children: [
2588
2637
  /*#__PURE__*/ jsx("img", {
2589
2638
  src: "/new_yun/images/aiService/search_for_icon.png"
@@ -2594,7 +2643,7 @@ var HistoryFun = function(props) {
2594
2643
  ]
2595
2644
  }),
2596
2645
  showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
2597
- className: modules_63b47c51$1.no_data,
2646
+ className: modules_63b47c51.no_data,
2598
2647
  children: [
2599
2648
  /*#__PURE__*/ jsx("img", {
2600
2649
  src: "/new_yun/images/aiService/no_data.png"
@@ -2606,7 +2655,7 @@ var HistoryFun = function(props) {
2606
2655
  }),
2607
2656
  keyHistoryMessageList.map(function(item, index) {
2608
2657
  var span = item.message.replaceAll(keyWordProblem, function() {
2609
- return "<span class=".concat(modules_63b47c51$1.sign, ">").concat(keyWordProblem, "</span>");
2658
+ return "<span class=".concat(modules_63b47c51.sign, ">").concat(keyWordProblem, "</span>");
2610
2659
  });
2611
2660
  var name = "";
2612
2661
  if (item.receiver == userData.mid) {
@@ -2619,27 +2668,35 @@ var HistoryFun = function(props) {
2619
2668
  } else {
2620
2669
  name = item.name;
2621
2670
  }
2671
+ var time = "";
2672
+ var currentTime = getDataTime(-1, 1); //当前时间
2673
+ var updatedAt = getDataTime(item.updatedAt, 1);
2674
+ if (currentTime == updatedAt) {
2675
+ time = getDataTime(item.updatedAt, 2);
2676
+ } else {
2677
+ time = getDataTime(item.updatedAt);
2678
+ }
2622
2679
  return /*#__PURE__*/ jsxs("div", {
2623
- className: modules_63b47c51$1.list,
2680
+ className: modules_63b47c51.list,
2624
2681
  onClick: function() {
2625
- var id = item.receiver == userData.mid ? item.sender : item.receiver;
2626
- calculationData(item.roomId, item.messageIdWithinRoom, id, item.receiver);
2682
+ var id = item.receiver; // == userData.mid ? item.sender : item.receiver
2683
+ calculationData(item.roomId, item.id, id);
2627
2684
  },
2628
2685
  children: [
2629
2686
  /*#__PURE__*/ jsxs("div", {
2630
- className: modules_63b47c51$1.name,
2687
+ className: modules_63b47c51.name,
2631
2688
  children: [
2632
2689
  /*#__PURE__*/ jsx("p", {
2633
2690
  children: name
2634
2691
  }),
2635
2692
  /*#__PURE__*/ jsx("span", {
2636
- className: modules_63b47c51$1.time,
2637
- children: getDataTime(item.updatedAt)
2693
+ className: modules_63b47c51.time,
2694
+ children: time
2638
2695
  })
2639
2696
  ]
2640
2697
  }),
2641
2698
  /*#__PURE__*/ jsx("div", {
2642
- className: modules_63b47c51$1.con,
2699
+ className: modules_63b47c51.con,
2643
2700
  dangerouslySetInnerHTML: {
2644
2701
  __html: span
2645
2702
  }
@@ -2655,24 +2712,21 @@ var HistoryFun = function(props) {
2655
2712
  };
2656
2713
  var HistoryFun$1 = HistoryFun;
2657
2714
 
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
2715
  var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2661
2716
  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
2717
  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
2718
  var timer = useRef(null); //文本框输入时
2666
2719
  //获取聊天室列表
2667
2720
  useEffect(function() {
2668
2721
  roomsListTimer();
2669
- if (roomId != "") {
2670
- setNewRoomId(roomId);
2671
- }
2672
2722
  return function() {
2673
2723
  clearTimeout(timer.current);
2674
2724
  };
2675
2725
  }, []);
2726
+ // //获取聊天室列表
2727
+ // useEffect(() => {
2728
+ // roomsListTimer();
2729
+ // }, [contactsList]);
2676
2730
  useImperativeHandle(ref, function() {
2677
2731
  return {
2678
2732
  roomsListTimer: function() {
@@ -2680,11 +2734,6 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2680
2734
  }
2681
2735
  };
2682
2736
  });
2683
- // useEffect(()=>{
2684
- // //重新调用接口
2685
- // console.log(44444444,contactsList)
2686
- // roomsListTimer();
2687
- // },[type])
2688
2737
  var roomsListTimer = function() {
2689
2738
  if (timer != null) clearTimeout(timer.current);
2690
2739
  timer.current = setTimeout(function() {
@@ -2704,7 +2753,6 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2704
2753
  }).then(function(res) {
2705
2754
  if (res.data) {
2706
2755
  var list = res.data.contacts;
2707
- // let newMessage = false;
2708
2756
  setContactsList(function(contactsList) {
2709
2757
  list = list.map(function(item, index) {
2710
2758
  var c_list = contactsList.filter(function(e) {
@@ -2719,42 +2767,24 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2719
2767
  return list;
2720
2768
  });
2721
2769
  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
2770
  saveContactsList(list);
2753
2771
  }
2754
2772
  });
2755
2773
  };
2756
2774
  //删除聊天室
2757
2775
  var deleteRoom = function(roomId) {
2776
+ var contactsList;
2777
+ setContactsList(function(list) {
2778
+ contactsList = list.filter(function(e) {
2779
+ return e.roomId != roomId;
2780
+ });
2781
+ //切换到AI聊天窗口
2782
+ if (roomId == props.roomId) {
2783
+ switchChatRoom(contactsList[0].roomId, "");
2784
+ }
2785
+ saveContactsList(contactsList);
2786
+ return contactsList;
2787
+ });
2758
2788
  http.delete("".concat(urllocation, "/chat-service/public/v1.0/rooms/").concat(roomId), {
2759
2789
  headers: {
2760
2790
  "x-module-id": userData.modules.find(function(ele) {
@@ -2764,16 +2794,6 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2764
2794
  }
2765
2795
  }).then(function(res) {
2766
2796
  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
2797
  });
2778
2798
  };
2779
2799
  //获取老师的信息等
@@ -2814,16 +2834,15 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2814
2834
  };
2815
2835
  return type == 2 || type == 4 ? //联系人展开
2816
2836
  /*#__PURE__*/ jsxs("div", {
2817
- className: modules_63b47c51.teacher_layout_modal,
2837
+ className: "".concat(modules_63b47c51.teacher_layout_modal, " ").concat(type == 4 ? modules_63b47c51.teacher_layout_modal_newlabo : ""),
2818
2838
  children: [
2819
2839
  /*#__PURE__*/ jsx("div", {
2820
2840
  className: modules_63b47c51.top,
2821
2841
  children: /*#__PURE__*/ jsxs("div", {
2822
2842
  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
2843
  onClick: function() {
2824
- setNewRoomId(contactsList[0].roomId);
2825
2844
  switchChatRoom(contactsList[0].roomId, "");
2826
- roomsListTimer();
2845
+ // roomsListTimer();
2827
2846
  },
2828
2847
  children: [
2829
2848
  /*#__PURE__*/ jsx(CustomAiIcon$1, {}),
@@ -2836,7 +2855,7 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2836
2855
  "AI助手",
2837
2856
  /*#__PURE__*/ jsx("span", {
2838
2857
  className: modules_63b47c51.time,
2839
- children: contactsList.length > 0 && getDataTime(contactsList[0].createdAt)
2858
+ children: contactsList.length > 0 && contactsList[0].createdAt != undefined && getDataTime(contactsList[0].createdAt)
2840
2859
  })
2841
2860
  ]
2842
2861
  }),
@@ -2855,12 +2874,36 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2855
2874
  className: modules_63b47c51.bottom,
2856
2875
  children: contactsList.map(function(item, index) {
2857
2876
  if (index != 0) {
2877
+ var currentTime = getDataTime(-1, 1); //当前时间
2878
+ var updatedAt = getDataTime(item.createdAt, 1);
2879
+ if (currentTime == updatedAt) {
2880
+ getDataTime(item.createdAt, 2);
2881
+ } else {
2882
+ getDataTime(item.createdAt);
2883
+ }
2858
2884
  return /*#__PURE__*/ jsxs("div", {
2859
2885
  className: "".concat(modules_63b47c51.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51.active : ""),
2860
2886
  onClick: function() {
2861
- setNewRoomId(item.roomId);
2862
2887
  switchChatRoom(item.roomId, "");
2863
- roomsListTimer();
2888
+ // roomsListTimer();
2889
+ var newList = [];
2890
+ setContactsList(function(list) {
2891
+ newList = list;
2892
+ newList = newList.map(function(v) {
2893
+ if (v.roomId == item.roomId) {
2894
+ return _object_spread_props(_object_spread({}, v), {
2895
+ unreadCount: 0
2896
+ });
2897
+ } else {
2898
+ return v;
2899
+ }
2900
+ });
2901
+ return newList;
2902
+ });
2903
+ // console.log(newList,9999999999)
2904
+ setTimeout(function() {
2905
+ saveContactsList(newList);
2906
+ }, 100);
2864
2907
  },
2865
2908
  children: [
2866
2909
  /*#__PURE__*/ jsx("img", {
@@ -2872,7 +2915,12 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2872
2915
  /*#__PURE__*/ jsxs("p", {
2873
2916
  className: modules_63b47c51.message,
2874
2917
  children: [
2875
- item.name,
2918
+ item.name != undefined && getByteLen(item.name) >= 20 ? /*#__PURE__*/ jsx(Tooltip, {
2919
+ overlayClassName: "".concat(modules_63b47c51.popover_main_content_name),
2920
+ title: item.name,
2921
+ placement: "top",
2922
+ children: item.name
2923
+ }) : item.name,
2876
2924
  item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
2877
2925
  className: modules_63b47c51.num,
2878
2926
  children: item.unreadCount > 99 ? "99+" : item.unreadCount
@@ -2924,9 +2972,8 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2924
2972
  /*#__PURE__*/ jsxs("div", {
2925
2973
  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
2974
  onClick: function() {
2927
- setNewRoomId(contactsList[0].roomId);
2928
2975
  switchChatRoom(contactsList[0].roomId, "");
2929
- roomsListTimer();
2976
+ // roomsListTimer();
2930
2977
  },
2931
2978
  children: [
2932
2979
  /*#__PURE__*/ jsx(CustomAiIcon$1, {}),
@@ -2946,16 +2993,39 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2946
2993
  return /*#__PURE__*/ jsxs("div", {
2947
2994
  className: "".concat(modules_63b47c51.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51.active : ""),
2948
2995
  onClick: function() {
2949
- setNewRoomId(item.roomId);
2950
2996
  switchChatRoom(item.roomId, "");
2951
- roomsListTimer();
2997
+ // roomsListTimer();
2998
+ //消息更改为已读
2999
+ var newList = [];
3000
+ setContactsList(function(list) {
3001
+ newList = list;
3002
+ newList = newList.map(function(v) {
3003
+ if (v.roomId == item.roomId) {
3004
+ return _object_spread_props(_object_spread({}, v), {
3005
+ unreadCount: 0
3006
+ });
3007
+ } else {
3008
+ return v;
3009
+ }
3010
+ });
3011
+ return newList;
3012
+ });
3013
+ // console.log(newList,9999999999)
3014
+ setTimeout(function() {
3015
+ saveContactsList(newList);
3016
+ }, 100);
2952
3017
  },
2953
3018
  children: [
2954
3019
  /*#__PURE__*/ jsx("img", {
2955
3020
  src: item.headImg
2956
3021
  }),
2957
3022
  /*#__PURE__*/ jsx("p", {
2958
- children: item.name
3023
+ children: item.name != undefined && getByteLen(item.name) >= 10 ? /*#__PURE__*/ jsx(Tooltip, {
3024
+ overlayClassName: modules_63b47c51.popover_main_content_name,
3025
+ title: item.name,
3026
+ placement: "top",
3027
+ children: item.name
3028
+ }) : item.name
2959
3029
  }),
2960
3030
  item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
2961
3031
  className: modules_63b47c51.num,
@@ -3120,38 +3190,38 @@ var useMediaRecorder = function() {
3120
3190
  };
3121
3191
  };
3122
3192
 
3193
+ var styles = modules_63b47c51;
3123
3194
  var TextArea = Input.TextArea;
3124
3195
  var CustomerService = function(props) {
3125
3196
  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
3197
  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保存,用来在实验报告中记录
3198
+ var _useState = _sliced_to_array(useState(3), 2), voiceRecordingStatus = _useState[0], setVoiceRecordingStatus = _useState[1]; //语音录制状态 3,语音识别完成 2,录制中, 1,录制结束
3199
+ var _useState1 = _sliced_to_array(useState([]), 2), copyTextOBJ = _useState1[0], setCopyTextObj = _useState1[1]; //复制的消息id
3200
+ var _useState2 = _sliced_to_array(useState({}), 2), citationContent = _useState2[0], setCitationContent = _useState2[1]; //引用内容
3201
+ var _useState3 = _sliced_to_array(useState(""), 2), roomId = _useState3[0], setRoomId = _useState3[1]; //聊天室id
3202
+ var _useState4 = _sliced_to_array(useState([]), 2), historyMessageList = _useState4[0], setHistoryMessageList = _useState4[1]; //历史消息
3203
+ var _useState5 = _sliced_to_array(useState(""), 2), keyWord = _useState5[0], setKeyWord = _useState5[1]; //搜索内容
3204
+ var _useState6 = _sliced_to_array(useState([]), 2), questionsList = _useState6[0], setQuestionsList = _useState6[1]; //问题列表
3205
+ var _useState7 = _sliced_to_array(useState([]), 2), hotQuestionsList = _useState7[0], setHotQuestionsList = _useState7[1]; //热门问题
3206
+ var _useState8 = _sliced_to_array(useState(false), 2), greetingMessage = _useState8[0], setGreetingMessage = _useState8[1]; //聊天记录列表是否请求完成
3207
+ var _useState9 = _sliced_to_array(useState(1), 2), pageNum = _useState9[0], setPageNum = _useState9[1]; //页码
3208
+ var _useState10 = _sliced_to_array(useState(0), 2), pageNumHistory = _useState10[0], setPageNumHistory = _useState10[1]; //用于搜索历史记录后的页码
3209
+ var _useState11 = _sliced_to_array(useState(0), 2), pageCount = _useState11[0], setPageCount = _useState11[1]; //总页数
3210
+ var _useState12 = _sliced_to_array(useState(false), 2), loading = _useState12[0], setLoading = _useState12[1]; //上拉显示加载图标
3211
+ var _useState13 = _sliced_to_array(useState(false), 2), bottomLoading = _useState13[0], setBottomLoading = _useState13[1]; //下拉显示加载图标
3212
+ var _useState14 = _sliced_to_array(useState(true), 2), finished = _useState14[0], setFinished = _useState14[1]; //是否结束生成
3213
+ var _useState15 = _sliced_to_array(useState(""), 2), lastId = _useState15[0], setLastId = _useState15[1]; //最后一条数据的id,可用于定位当前位置
3214
+ var _useState16 = _sliced_to_array(useState({}), 2), chatWith = _useState16[0], setChatWith = _useState16[1]; //聊天的老师id或ai
3215
+ var _useState17 = _sliced_to_array(useState(false), 2), firstLoad = _useState17[0], setFirstLoad = _useState17[1]; //第一次切换全屏时滚动到页面底部
3216
+ var _useState18 = _sliced_to_array(useState(45), 2), buttomHei = _useState18[0], setButtomHei = _useState18[1]; //底部输入框的高度
3217
+ var _useState19 = _sliced_to_array(useState(false), 2), showHistory = _useState19[0], setShowHistory = _useState19[1]; //是否显示历史记录
3218
+ var _useState20 = _sliced_to_array(useState(false), 2), showContacts = _useState20[0], setShowContacts = _useState20[1]; //是否显示关联老师
3219
+ var _useState21 = _sliced_to_array(useState(-1), 2), showType = _useState21[0], setShowType = _useState21[1]; //显示聊天框类型 1、侧边栏 2 modal 3 相应的div中 newlabo中使用
3220
+ var _useState22 = _sliced_to_array(useState(-1), 2), answerMode = _useState22[0], setAnswerMode = _useState22[1]; //设置回答模式。1,召唤老师回答
3221
+ var _useState23 = _sliced_to_array(useState([]), 2), teacherList = _useState23[0], setTeacherList = _useState23[1]; //老师列表
3222
+ var _useState24 = _sliced_to_array(useState({}), 2), problem = _useState24[0], setProblem = _useState24[1]; //召唤老师回答的问题
3223
+ var _useState25 = _sliced_to_array(useState([]), 2), roomList = _useState25[0], setRoomList = _useState25[1]; //聊天列表
3224
+ var _useState26 = _sliced_to_array(useState([]), 2), chatObj = _useState26[0], setChatObj = _useState26[1]; //聊天记录id保存,用来在实验报告中记录
3155
3225
  var timer = useRef(null); //文本框输入时
3156
3226
  var receiveMessageTimer = useRef(null); //接收ai发回的消息
3157
3227
  var voiceCountdownTimer = useRef(null); //语音录制倒计时
@@ -3159,6 +3229,8 @@ var CustomerService = function(props) {
3159
3229
  var roomMessage = useRef(null); //循环当前页面的新消息
3160
3230
  var ctrl = useRef(); //停止生成ai回答时使用
3161
3231
  var childRef = useRef(null); //获取子组件方法
3232
+ // const [mid, setmid] = useState(props.userData.mid); //当前用户id
3233
+ var mid = props.userData.mid;
3162
3234
  var remarkable = new Remarkable({
3163
3235
  highlight: function highlight(str, lang) {
3164
3236
  if (lang && HighlightJS.getLanguage(lang)) {
@@ -3192,37 +3264,39 @@ var CustomerService = function(props) {
3192
3264
  var container = document.getElementById(showType == 1 || showType == 3 ? "chat_content" : "chat_content_modal");
3193
3265
  var scrollTop = container.scrollTop;
3194
3266
  // 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
- }
3267
+ var clientHeight = container.clientHeight;
3268
+ var scrollHeight = container.scrollHeight;
3269
+ // console.log(scrollTop,clientHeight,scrollHeight,'333dfkvmdfv')
3270
+ if (clientHeight + scrollTop + 0.5 >= scrollHeight) {
3271
+ console.log("到底部了22222");
3272
+ // console.log(11111111,pageNumHistory)
3273
+ if (pageNumHistory > 1) {
3274
+ // console.log(pageNumHistory,'pageNumpageNumpageNum')
3275
+ var number = pageNumHistory - 1;
3276
+ setPageNumHistory(number);
3277
+ clearTimeout(listTimer.current);
3278
+ setBottomLoading(true);
3279
+ listTimer.current = setTimeout(function() {
3280
+ // console.log("加载下一页", number);
3281
+ getHistoryMessage(number, 4);
3282
+ }, 1000);
3283
+ } else {
3284
+ setLastId("");
3214
3285
  }
3215
- };
3286
+ }
3216
3287
  if (scrollTop == 0 && pageCount > pageNum && pageCount > 0) {
3288
+ console.log("到顶了", pageNum);
3289
+ // if(pageNum == 1){
3290
+ // setFirstpage(true);//代表是否存在第一页
3291
+ // }
3217
3292
  setLoading(true);
3218
- var number = pageNum + 1;
3293
+ var number1 = pageNum + 1;
3219
3294
  setPageNum(function(pageNum) {
3220
3295
  return pageNum + 1;
3221
3296
  });
3222
- clearTimeout(listTimer.current);
3223
3297
  listTimer.current = setTimeout(function() {
3224
- console.log("下拉加载下一页", number);
3225
- getHistoryMessage(number, 2);
3298
+ console.log("下拉加载下一页", number1);
3299
+ getHistoryMessage(number1, 2);
3226
3300
  }, 1000);
3227
3301
  }
3228
3302
  }
@@ -3508,19 +3582,23 @@ var CustomerService = function(props) {
3508
3582
  }
3509
3583
  }).then(function(res) {
3510
3584
  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});
3585
+ console.log(pageNum, pageNumHistory, lastId, "dlskskdsd4444");
3586
+ if (pageNum == 1 || pageNumHistory == 1 || pageNumHistory == 0) {
3587
+ setHistoryMessageList(function(historyMessageList) {
3588
+ var newHistoryMessageList = historyMessageList.concat(_object_spread_props(_object_spread({}, obj), {
3589
+ id: res.data.id,
3590
+ upvoted: false,
3591
+ downvoted: false,
3592
+ createdAt: getDataTime(-1)
3593
+ }));
3594
+ return newHistoryMessageList;
3595
+ });
3596
+ if (!lastId) {
3597
+ setTimeout(function() {
3598
+ scrollToBottom();
3599
+ }, 100);
3600
+ }
3601
+ }
3524
3602
  //判断当前窗口是否是
3525
3603
  if (type == 1) {
3526
3604
  var roomList = [
@@ -3536,7 +3614,6 @@ var CustomerService = function(props) {
3536
3614
  return list2.concat(roomList);
3537
3615
  });
3538
3616
  }
3539
- // }
3540
3617
  }
3541
3618
  }).catch(function(err) {
3542
3619
  console.log(err);
@@ -3997,6 +4074,7 @@ var CustomerService = function(props) {
3997
4074
  var getHistoryMessage = function(pageNum, flag) {
3998
4075
  var id = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "1";
3999
4076
  clearTimeout(roomMessage.current);
4077
+ console.log(pageNum, flag, "dkfjvndfjvndfkvdf");
4000
4078
  // flag == 1 时已经设置好了位置标记
4001
4079
  var last_id = "";
4002
4080
  if (flag == 2 && historyMessageList.length > 0) {
@@ -4102,7 +4180,7 @@ var CustomerService = function(props) {
4102
4180
  return item.roomId == rid;
4103
4181
  });
4104
4182
  var isAiChatWindow = chatWindow.length > 0 && chatWindow[0].sender != undefined && chatWindow[0].sender == "AI" ? true : false;
4105
- if (!isAiChatWindow && roomList.length > 0) {
4183
+ if (!isAiChatWindow && roomList.length > 0 && (pageNum == 1 || pageNumHistory == 0)) {
4106
4184
  getRoomidHistoryMessage(totalNumber, rid);
4107
4185
  }
4108
4186
  }).catch(function(res) {
@@ -4121,7 +4199,7 @@ var CustomerService = function(props) {
4121
4199
  params: {
4122
4200
  roomId: rid,
4123
4201
  page: 1,
4124
- maxPageSize: totalNumber < 30 ? 30 : totalNumber + 10,
4202
+ maxPageSize: totalNumber,
4125
4203
  direction: "desc"
4126
4204
  },
4127
4205
  headers: {
@@ -4134,17 +4212,24 @@ var CustomerService = function(props) {
4134
4212
  var newHistoryMessageList = [];
4135
4213
  if (res.data.messages.length > 0) {
4136
4214
  var dataList = res.data.messages.reverse();
4215
+ var originList = 0;
4216
+ var newList = 0;
4137
4217
  setHistoryMessageList(function(historyMessageList) {
4138
- newHistoryMessageList = dataList;
4218
+ originList = historyMessageList.length;
4219
+ newHistoryMessageList = historyMessageList.concat(dataList);
4139
4220
  //去重
4140
4221
  var _$res = new Map();
4141
4222
  newHistoryMessageList = newHistoryMessageList.filter(function(a) {
4142
4223
  return !_$res.has(a.id) && _$res.set(a.id, 1);
4143
4224
  });
4225
+ newList = newHistoryMessageList.length;
4144
4226
  return newHistoryMessageList;
4145
4227
  });
4146
- if (dataList.length > totalNumber) {
4147
- scrollToBottom();
4228
+ console.log(dataList.length, originList, lastId, "dfkvdnfkvdfj44444");
4229
+ if (!lastId && originList != newList) {
4230
+ setTimeout(function() {
4231
+ scrollToBottom();
4232
+ }, 100);
4148
4233
  }
4149
4234
  }
4150
4235
  try {
@@ -4204,7 +4289,7 @@ var CustomerService = function(props) {
4204
4289
  });
4205
4290
  console.log(result, "存储的消息");
4206
4291
  result.map(function(item) {
4207
- testLabQuestion(item.question, item.answer, item.id);
4292
+ testLabQuestion(item.question, item.answer, String(item.id));
4208
4293
  });
4209
4294
  }
4210
4295
  }
@@ -4367,7 +4452,7 @@ var CustomerService = function(props) {
4367
4452
  var list = roomList.filter(function(e) {
4368
4453
  return e.roomId == roomId;
4369
4454
  });
4370
- var title = "智能回答";
4455
+ var title = "智能问答";
4371
4456
  if (list.length > 0 && list[0].name) {
4372
4457
  title = list[0].name;
4373
4458
  }
@@ -4377,16 +4462,16 @@ var CustomerService = function(props) {
4377
4462
  });
4378
4463
  if (showType == 4) {
4379
4464
  return /*#__PURE__*/ jsxs("div", {
4380
- className: modules_63b47c51$2.top,
4465
+ className: styles.top,
4381
4466
  children: [
4382
4467
  /*#__PURE__*/ jsx("div", {
4383
- className: modules_63b47c51$2.user,
4468
+ className: styles.user,
4384
4469
  children: /*#__PURE__*/ jsx("p", {
4385
4470
  children: title
4386
4471
  })
4387
4472
  }),
4388
4473
  /*#__PURE__*/ jsxs("div", {
4389
- className: modules_63b47c51$2.operate,
4474
+ className: styles.operate,
4390
4475
  children: [
4391
4476
  /*#__PURE__*/ jsx("i", {
4392
4477
  onClick: function() {
@@ -4395,7 +4480,7 @@ var CustomerService = function(props) {
4395
4480
  children: /*#__PURE__*/ jsx(CustomRecord$1, {})
4396
4481
  }),
4397
4482
  /*#__PURE__*/ jsx("span", {
4398
- className: modules_63b47c51$2.line
4483
+ className: styles.line
4399
4484
  }),
4400
4485
  /*#__PURE__*/ jsx("i", {
4401
4486
  onClick: function() {
@@ -4418,22 +4503,23 @@ var CustomerService = function(props) {
4418
4503
  ]
4419
4504
  });
4420
4505
  } else {
4506
+ // console.log(roomList,'777668888900')
4421
4507
  return /*#__PURE__*/ jsxs("div", {
4422
- className: modules_63b47c51$2.top,
4508
+ className: styles.top,
4423
4509
  children: [
4424
4510
  /*#__PURE__*/ jsx("div", {
4425
- className: modules_63b47c51$2.user,
4511
+ className: styles.user,
4426
4512
  children: /*#__PURE__*/ jsxs("p", {
4427
4513
  children: [
4428
4514
  showType == 1 && /*#__PURE__*/ jsxs("i", {
4429
4515
  className: "lianxiren21",
4430
4516
  onClick: function() {
4431
- setShowContacts(true);
4517
+ setShowContacts(!showContacts);
4432
4518
  },
4433
4519
  children: [
4434
4520
  /*#__PURE__*/ jsx(CustomContacts$1, {}),
4435
4521
  count > 0 ? /*#__PURE__*/ jsx("span", {
4436
- className: modules_63b47c51$2.count,
4522
+ className: styles.count,
4437
4523
  children: count > 99 ? "99+" : count
4438
4524
  }) : ""
4439
4525
  ]
@@ -4443,17 +4529,18 @@ var CustomerService = function(props) {
4443
4529
  })
4444
4530
  }),
4445
4531
  /*#__PURE__*/ jsxs("div", {
4446
- className: modules_63b47c51$2.operate,
4532
+ className: styles.operate,
4447
4533
  children: [
4448
4534
  /*#__PURE__*/ jsx("i", {
4449
4535
  className: "_lishixiao22",
4450
4536
  onClick: function() {
4451
4537
  setShowHistory(true);
4538
+ onEvent(serverName + serverUrl(), "click_智能问答_历史记录", "提交");
4452
4539
  },
4453
4540
  children: /*#__PURE__*/ jsx(CustomRecord$1, {})
4454
4541
  }),
4455
4542
  /*#__PURE__*/ jsx("span", {
4456
- className: modules_63b47c51$2.line
4543
+ className: styles.line
4457
4544
  }),
4458
4545
  showType == 1 ? /*#__PURE__*/ jsx("i", {
4459
4546
  onClick: function() {
@@ -4523,7 +4610,7 @@ var CustomerService = function(props) {
4523
4610
  // console.log(mid, historyMessageList, "ddkfdscksdcs");
4524
4611
  if (historyMessageList.length > 0) {
4525
4612
  return /*#__PURE__*/ jsx("ul", {
4526
- className: modules_63b47c51$2.message_con,
4613
+ className: styles.message_con,
4527
4614
  children: historyMessageList.map(function(item, i) {
4528
4615
  var timeObj = parseDate(item.createdAt);
4529
4616
  // console.log(item.message);
@@ -4559,22 +4646,22 @@ var CustomerService = function(props) {
4559
4646
  li = /*#__PURE__*/ jsxs(Fragment, {
4560
4647
  children: [
4561
4648
  dataTime ? /*#__PURE__*/ jsx("li", {
4562
- className: modules_63b47c51$2.time,
4649
+ className: styles.time,
4563
4650
  children: dataTime
4564
4651
  }) : "",
4565
4652
  /*#__PURE__*/ jsxs("li", {
4566
- className: modules_63b47c51$2.left,
4653
+ className: styles.left,
4567
4654
  id: lastId == item.id ? "li_flag" : "",
4568
4655
  children: [
4569
4656
  /*#__PURE__*/ jsx("div", {
4570
- className: modules_63b47c51$2.main,
4657
+ className: styles.main,
4571
4658
  children: /*#__PURE__*/ jsxs("div", {
4572
- className: modules_63b47c51$2.main_content,
4659
+ className: styles.main_content,
4573
4660
  children: [
4574
4661
  /*#__PURE__*/ jsx("div", {
4575
- className: modules_63b47c51$2.operate_modal,
4662
+ className: styles.operate_modal,
4576
4663
  children: /*#__PURE__*/ jsxs("p", {
4577
- className: modules_63b47c51$2.operate,
4664
+ className: styles.operate,
4578
4665
  children: [
4579
4666
  /*#__PURE__*/ jsx("i", {
4580
4667
  className: "yinyong_quote1",
@@ -4620,25 +4707,26 @@ var CustomerService = function(props) {
4620
4707
  })
4621
4708
  }),
4622
4709
  /*#__PURE__*/ jsx("div", {
4623
- className: modules_63b47c51$2.content,
4710
+ className: styles.content,
4624
4711
  children: /*#__PURE__*/ jsx("p", {
4625
4712
  dangerouslySetInnerHTML: {
4626
4713
  __html: remarkable.render(message)
4627
4714
  },
4628
- className: modules_63b47c51$2.content_child
4715
+ className: styles.content_child
4629
4716
  })
4630
4717
  }),
4631
4718
  //引用消息
4632
4719
  item.quotedMessage && /*#__PURE__*/ jsx("div", {
4633
- className: modules_63b47c51$2.citation_content,
4720
+ className: styles.citation_content,
4634
4721
  children: getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
4635
- overlayClassName: modules_63b47c51$2.popover_main_content,
4722
+ overlayClassName: styles.popover_main_content,
4636
4723
  title: item.quotedMessage,
4637
4724
  placement: "leftTop",
4638
4725
  children: /*#__PURE__*/ jsxs("p", {
4726
+ className: styles.text_exceed,
4639
4727
  children: [
4640
4728
  item.quotedMessage,
4641
- ">"
4729
+ /*#__PURE__*/ jsx(RightOutlined, {})
4642
4730
  ]
4643
4731
  })
4644
4732
  }) : /*#__PURE__*/ jsx("p", {
@@ -4649,7 +4737,7 @@ var CustomerService = function(props) {
4649
4737
  })
4650
4738
  }),
4651
4739
  showType == 2 || showType == 4 ? /*#__PURE__*/ jsx("div", {
4652
- className: modules_63b47c51$2.head_sculpture,
4740
+ className: styles.head_sculpture,
4653
4741
  style: {
4654
4742
  marginLeft: "12px"
4655
4743
  },
@@ -4680,15 +4768,15 @@ var CustomerService = function(props) {
4680
4768
  li = /*#__PURE__*/ jsxs(Fragment, {
4681
4769
  children: [
4682
4770
  dataTime ? /*#__PURE__*/ jsx("li", {
4683
- className: modules_63b47c51$2.time,
4771
+ className: styles.time,
4684
4772
  children: dataTime
4685
4773
  }) : "",
4686
4774
  /*#__PURE__*/ jsxs("li", {
4687
- className: modules_63b47c51$2.right,
4775
+ className: styles.right,
4688
4776
  id: lastId == item.id ? "li_flag" : "",
4689
4777
  children: [
4690
4778
  (showType == 2 || showType == 4) && /*#__PURE__*/ jsx("div", {
4691
- className: modules_63b47c51$2.head_sculpture,
4779
+ className: styles.head_sculpture,
4692
4780
  style: {
4693
4781
  marginRight: "12px"
4694
4782
  },
@@ -4699,26 +4787,26 @@ var CustomerService = function(props) {
4699
4787
  })
4700
4788
  }),
4701
4789
  /*#__PURE__*/ jsx("div", {
4702
- className: modules_63b47c51$2.main,
4790
+ className: styles.main,
4703
4791
  children: /*#__PURE__*/ jsxs("div", {
4704
- className: modules_63b47c51$2.main_content,
4792
+ className: styles.main_content,
4705
4793
  children: [
4706
4794
  /*#__PURE__*/ jsx("div", {
4707
- className: modules_63b47c51$2.operate_modal,
4795
+ className: styles.operate_modal,
4708
4796
  children: // 不是最后一行,
4709
4797
  historyMessageList.length - 1 != i && renderOperateBtn(item, isAiChatWindow, i)
4710
4798
  }),
4711
4799
  /*#__PURE__*/ jsxs("div", {
4712
- className: modules_63b47c51$2.content,
4800
+ className: styles.content,
4713
4801
  children: [
4714
4802
  /*#__PURE__*/ jsx("p", {
4715
4803
  dangerouslySetInnerHTML: {
4716
4804
  __html: remarkable.render(message)
4717
4805
  },
4718
- className: modules_63b47c51$2.content_child
4806
+ className: styles.content_child
4719
4807
  }),
4720
4808
  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,
4809
+ className: styles.association_problem,
4722
4810
  children: JSON.parse(item.extraInfo).map(function(list, index) {
4723
4811
  return /*#__PURE__*/ jsxs("li", {
4724
4812
  onClick: function() {
@@ -4736,15 +4824,16 @@ var CustomerService = function(props) {
4736
4824
  }),
4737
4825
  //引用消息
4738
4826
  item.quotedMessage && /*#__PURE__*/ jsx("div", {
4739
- className: modules_63b47c51$2.citation_content,
4827
+ className: styles.citation_content,
4740
4828
  children: getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
4741
- overlayClassName: modules_63b47c51$2.popover_main_content,
4829
+ overlayClassName: styles.popover_main_content,
4742
4830
  title: item.quotedMessage,
4743
- placement: "leftTop",
4831
+ placement: "rightTop",
4744
4832
  children: /*#__PURE__*/ jsxs("p", {
4833
+ className: styles.text_exceed,
4745
4834
  children: [
4746
4835
  item.quotedMessage,
4747
- ">"
4836
+ /*#__PURE__*/ jsx(RightOutlined, {})
4748
4837
  ]
4749
4838
  })
4750
4839
  }) : /*#__PURE__*/ jsx("p", {
@@ -4757,9 +4846,9 @@ var CustomerService = function(props) {
4757
4846
  isAiChatWindow && item.findTeacher && userData.modules.some(function(item) {
4758
4847
  return item.short == "TeacherAnswer";
4759
4848
  }) ? /*#__PURE__*/ jsx("div", {
4760
- className: "".concat(modules_63b47c51$2.operate_modal_bottom),
4849
+ className: "".concat(styles.operate_modal_bottom),
4761
4850
  children: /*#__PURE__*/ jsx("p", {
4762
- className: modules_63b47c51$2.stop_findTeacher,
4851
+ className: styles.stop_findTeacher,
4763
4852
  children: /*#__PURE__*/ jsx("span", {
4764
4853
  onClick: function() {
4765
4854
  setAnswerMode(-1);
@@ -4789,7 +4878,7 @@ var CustomerService = function(props) {
4789
4878
  return "";
4790
4879
  }
4791
4880
  };
4792
- //渲染相关操作按钮
4881
+ //渲染相关操作按钮 header == 1 ai ,== 2 知识库
4793
4882
  var renderOperateBtn = function(item, isAiChatWindow, i) {
4794
4883
  //问候语及点赞下面不需要展示相关按钮
4795
4884
  var extraInfo = item.extraInfo;
@@ -4798,13 +4887,13 @@ var CustomerService = function(props) {
4798
4887
  return "";
4799
4888
  }
4800
4889
  return /*#__PURE__*/ jsxs("p", {
4801
- className: modules_63b47c51$2.operate,
4890
+ className: styles.operate,
4802
4891
  children: [
4803
4892
  // 不在智能客服窗口,并已经点击了召唤老师,并有召唤老师权限
4804
4893
  isAiChatWindow && answerMode != 1 && userData.modules.some(function(item) {
4805
4894
  return item.short == "TeacherAnswer";
4806
4895
  }) && /*#__PURE__*/ jsx("span", {
4807
- className: modules_63b47c51$2.ask_question,
4896
+ className: styles.ask_question,
4808
4897
  onClick: function() {
4809
4898
  setAnswerMode(1);
4810
4899
  setProblem({
@@ -4819,7 +4908,13 @@ var CustomerService = function(props) {
4819
4908
  recevier: mid,
4820
4909
  message: "请告诉我您要召唤的老师名字",
4821
4910
  createdAt: getDataTime(-1),
4822
- findTeacher: true
4911
+ findTeacher: true,
4912
+ extraInfo: item.extraInfo == null ? null : JSON.stringify([
4913
+ {
4914
+ key: "questionId",
4915
+ value: "questionId"
4916
+ }
4917
+ ])
4823
4918
  });
4824
4919
  return newHistoryMessageList;
4825
4920
  });
@@ -4874,14 +4969,14 @@ var CustomerService = function(props) {
4874
4969
  children: "|"
4875
4970
  }),
4876
4971
  /*#__PURE__*/ jsx("i", {
4877
- className: "Frame427319094 ".concat(item.upvoted ? modules_63b47c51$2.active : ""),
4972
+ className: "Frame427319094 ".concat(item.upvoted ? styles.active : ""),
4878
4973
  onClick: function() {
4879
4974
  likeMessage(item.id, item.upvoted);
4880
4975
  //老师的聊天窗口中不需要点赞和踩消息
4881
4976
  if (!isAiChatWindow) return;
4882
4977
  //只有最后一条回答,支持发送点赞或踩
4883
4978
  if (!item.upvoted && (historyMessageList.length == i + 1 || historyMessageList.length - 2 == i)) {
4884
- console.log("判断是AI还是智能回答", item);
4979
+ console.log("判断是AI还是智能问答", item);
4885
4980
  if (!item.extraInfo && item.sender == "AI") {
4886
4981
  aiSendQuestions(1, {
4887
4982
  roomId: roomId,
@@ -4899,7 +4994,7 @@ var CustomerService = function(props) {
4899
4994
  children: /*#__PURE__*/ jsx(CustomLike$1, {})
4900
4995
  }),
4901
4996
  /*#__PURE__*/ jsx("i", {
4902
- className: "Frame427319095 ".concat(item.downvoted ? modules_63b47c51$2.active : ""),
4997
+ className: "Frame427319095 ".concat(item.downvoted ? styles.active : ""),
4903
4998
  onClick: function() {
4904
4999
  disagreeMessage(item.id, item.downvoted);
4905
5000
  //老师的聊天窗口中不需要点赞和踩消息
@@ -4948,15 +5043,15 @@ var CustomerService = function(props) {
4948
5043
  findTeacherBtn = true;
4949
5044
  }
4950
5045
  return /*#__PURE__*/ jsxs("div", {
4951
- className: "".concat(modules_63b47c51$2.operate_modal_bottom),
5046
+ className: "".concat(styles.operate_modal_bottom),
4952
5047
  children: [
4953
5048
  /*#__PURE__*/ jsxs("p", {
4954
- className: modules_63b47c51$2.stop_generate,
5049
+ className: styles.stop_generate,
4955
5050
  children: [
4956
5051
  showStopBtn && /*#__PURE__*/ jsxs(Fragment, {
4957
5052
  children: [
4958
5053
  /*#__PURE__*/ jsx("span", {
4959
- className: modules_63b47c51$2.icon,
5054
+ className: styles.icon,
4960
5055
  onClick: function() {
4961
5056
  try {
4962
5057
  if (ctrl && ctrl.current) {
@@ -4998,13 +5093,15 @@ var CustomerService = function(props) {
4998
5093
  findTeacherBtn && userData.modules.some(function(item) {
4999
5094
  return item.short == "TeacherAnswer";
5000
5095
  }) && /*#__PURE__*/ jsx("span", {
5001
- className: modules_63b47c51$2.find_teacher,
5096
+ className: styles.find_teacher,
5002
5097
  onClick: function() {
5003
5098
  setAnswerMode(1);
5004
5099
  setProblem({
5005
5100
  question: historyMessageList[i - 1].message,
5006
5101
  user: problem.user
5007
5102
  });
5103
+ console.log(item, "88888999999");
5104
+ // if(item.extraInfo == null){
5008
5105
  setHistoryMessageList(function(historyMessageList) {
5009
5106
  var newHistoryMessageList = historyMessageList.concat({
5010
5107
  id: -1,
@@ -5013,10 +5110,40 @@ var CustomerService = function(props) {
5013
5110
  recevier: mid,
5014
5111
  message: "请告诉我您要召唤的老师名字",
5015
5112
  createdAt: getDataTime(-1),
5016
- findTeacher: true
5113
+ findTeacher: true,
5114
+ extraInfo: item.extraInfo == null ? null : JSON.stringify([
5115
+ {
5116
+ key: "questionId",
5117
+ value: "questionId"
5118
+ }
5119
+ ])
5017
5120
  });
5018
5121
  return newHistoryMessageList;
5019
5122
  });
5123
+ // }else{
5124
+ // setHistoryMessageList(
5125
+ // (historyMessageList) => {
5126
+ // let newHistoryMessageList =
5127
+ // historyMessageList.concat({
5128
+ // id: -1,
5129
+ // roomId: roomId,
5130
+ // sender: "AI",
5131
+ // recevier: mid,
5132
+ // message:
5133
+ // "请告诉我您要召唤的老师名字",
5134
+ // createdAt: getDataTime(-1),
5135
+ // findTeacher:true,
5136
+ // extraInfo: JSON.stringify([
5137
+ // {
5138
+ // key: "questionId",
5139
+ // value: "questionId",
5140
+ // },
5141
+ // ])
5142
+ // });
5143
+ // return newHistoryMessageList;
5144
+ // }
5145
+ // );
5146
+ // }
5020
5147
  setTimeout(function() {
5021
5148
  scrollToBottom();
5022
5149
  }, 200);
@@ -5026,7 +5153,7 @@ var CustomerService = function(props) {
5026
5153
  ]
5027
5154
  }),
5028
5155
  /*#__PURE__*/ jsxs("p", {
5029
- className: "".concat(modules_63b47c51$2.operate),
5156
+ className: "".concat(styles.operate),
5030
5157
  children: [
5031
5158
  regenerationBtn && /*#__PURE__*/ jsx("i", {
5032
5159
  onClick: function() {
@@ -5086,14 +5213,14 @@ var CustomerService = function(props) {
5086
5213
  children: "|"
5087
5214
  }),
5088
5215
  /*#__PURE__*/ jsx("i", {
5089
- className: "Frame427319094 ".concat(item.upvoted ? modules_63b47c51$2.active : ""),
5216
+ className: "Frame427319094 ".concat(item.upvoted ? styles.active : ""),
5090
5217
  onClick: function() {
5091
5218
  likeMessage(item.id, item.upvoted);
5092
5219
  //老师的聊天窗口中不需要点赞和踩消息
5093
5220
  if (!isAiChatWindow) return;
5094
5221
  //只有最后一条回答,支持发送点赞或踩
5095
5222
  if (!item.upvoted && (historyMessageList.length == i + 1 || historyMessageList.length - 2 == i)) {
5096
- console.log("判断是AI还是智能回答", item);
5223
+ console.log("判断是AI还是智能问答", item);
5097
5224
  if (!item.extraInfo && item.sender == "AI") {
5098
5225
  aiSendQuestions(1, {
5099
5226
  roomId: roomId,
@@ -5111,7 +5238,7 @@ var CustomerService = function(props) {
5111
5238
  children: /*#__PURE__*/ jsx(CustomLike$1, {})
5112
5239
  }),
5113
5240
  /*#__PURE__*/ jsx("i", {
5114
- className: "Frame427319095 ".concat(item.downvoted ? modules_63b47c51$2.active : ""),
5241
+ className: "Frame427319095 ".concat(item.downvoted ? styles.active : ""),
5115
5242
  onClick: function() {
5116
5243
  disagreeMessage(item.id, item.downvoted);
5117
5244
  //老师的聊天窗口中不需要点赞和踩消息
@@ -5146,7 +5273,7 @@ var CustomerService = function(props) {
5146
5273
  var placeholder = "";
5147
5274
  var disabled = false;
5148
5275
  if (voiceRecordingStatus == 2) {
5149
- placeholder = "录制中...";
5276
+ placeholder = "语音录制中,请说话...";
5150
5277
  } else if (voiceRecordingStatus == 1) {
5151
5278
  placeholder = "正在语音识别文字,请稍后...";
5152
5279
  } else if (!finished) {
@@ -5158,15 +5285,15 @@ var CustomerService = function(props) {
5158
5285
  return /*#__PURE__*/ jsxs(Fragment, {
5159
5286
  children: [
5160
5287
  /*#__PURE__*/ jsxs("div", {
5161
- className: modules_63b47c51$2.input_wrap,
5288
+ className: styles.input_wrap,
5162
5289
  onChange: function() {
5163
5290
  resettingBottomHei();
5164
5291
  },
5165
5292
  children: [
5166
5293
  /*#__PURE__*/ jsxs("div", {
5167
- className: "".concat(modules_63b47c51$2.input, " ").concat(userData.modules.some(function(item) {
5294
+ className: "".concat(styles.input, " ").concat(userData.modules.some(function(item) {
5168
5295
  return item.short == "AIservice";
5169
- }) ? "" : modules_63b47c51$2.no_AI),
5296
+ }) ? "" : styles.no_AI),
5170
5297
  children: [
5171
5298
  /*#__PURE__*/ jsx(TextArea, {
5172
5299
  placeholder: placeholder,
@@ -5206,7 +5333,7 @@ var CustomerService = function(props) {
5206
5333
  if (roomList.length > 0 && roomList[0].roomId != roomId) {
5207
5334
  sendToTeacher(2);
5208
5335
  } else {
5209
- sendMessage();
5336
+ sendMessage("", 0);
5210
5337
  }
5211
5338
  setButtomHei(45);
5212
5339
  } else {
@@ -5221,16 +5348,16 @@ var CustomerService = function(props) {
5221
5348
  maxLength: 1000
5222
5349
  }),
5223
5350
  citationContent.content != undefined && citationContent.content != "" ? /*#__PURE__*/ jsxs("div", {
5224
- className: modules_63b47c51$2.content_main,
5351
+ className: styles.content_main,
5225
5352
  children: [
5226
5353
  /*#__PURE__*/ jsx("div", {
5227
- className: modules_63b47c51$2.content_con,
5354
+ className: styles.content_con,
5228
5355
  children: /*#__PURE__*/ jsx("p", {
5229
5356
  children: citationContent.content
5230
5357
  })
5231
5358
  }),
5232
5359
  /*#__PURE__*/ jsx("i", {
5233
- className: modules_63b47c51$2.delete_quote,
5360
+ className: styles.delete_quote,
5234
5361
  onClick: function() {
5235
5362
  setCitationContent({});
5236
5363
  resettingBottomHei();
@@ -5244,10 +5371,10 @@ var CustomerService = function(props) {
5244
5371
  userData.modules.some(function(item) {
5245
5372
  return item.short == "AIservice";
5246
5373
  }) ? /*#__PURE__*/ jsxs("p", {
5247
- className: modules_63b47c51$2.voice,
5374
+ className: styles.voice,
5248
5375
  children: [
5249
5376
  voiceRecordingStatus == 1 || voiceRecordingStatus == 3 ? /*#__PURE__*/ jsx("i", {
5250
- className: "".concat(!disabled ? modules_63b47c51$2.disabled : ""),
5377
+ className: "".concat(!disabled ? styles.disabled : ""),
5251
5378
  onClick: function() {
5252
5379
  //开始录音
5253
5380
  if (!disabled) return;
@@ -5265,7 +5392,7 @@ var CustomerService = function(props) {
5265
5392
  voiceRecordingStatus == 2 ? /*#__PURE__*/ jsx("img", {
5266
5393
  // src={Voice_btn}
5267
5394
  src: "/new_yun/images/aiService/voice_btn.gif",
5268
- className: modules_63b47c51$2.voice_btn,
5395
+ className: styles.voice_btn,
5269
5396
  onClick: function() {
5270
5397
  //结束录音
5271
5398
  // console.log(mediaRecorder,'3333333');
@@ -5280,9 +5407,9 @@ var CustomerService = function(props) {
5280
5407
  ]
5281
5408
  }),
5282
5409
  /*#__PURE__*/ jsx("p", {
5283
- className: "".concat(modules_63b47c51$2.sending),
5410
+ className: "".concat(styles.sending),
5284
5411
  children: /*#__PURE__*/ jsx("i", {
5285
- className: "".concat(!disabled || keyWord.trim() == "" ? modules_63b47c51$2.disabled : ""),
5412
+ className: "".concat(!disabled || keyWord.trim() == "" ? styles.disabled : ""),
5286
5413
  onClick: function() {
5287
5414
  if (!disabled) return;
5288
5415
  setCitationContent({});
@@ -5293,7 +5420,7 @@ var CustomerService = function(props) {
5293
5420
  if (roomList.length > 0 && roomList[0].roomId != roomId) {
5294
5421
  sendToTeacher(2);
5295
5422
  } else {
5296
- sendMessage();
5423
+ sendMessage("", 0);
5297
5424
  }
5298
5425
  onEvent(serverName + serverUrl(), "click_智能问答_ Enter", "提交");
5299
5426
  }
@@ -5308,16 +5435,16 @@ var CustomerService = function(props) {
5308
5435
  var renderAssociationProblem = function() {
5309
5436
  if (answerMode == 1) {
5310
5437
  return /*#__PURE__*/ jsx("div", {
5311
- className: "".concat(modules_63b47c51$2.issues_list, " ").concat(modules_63b47c51$2.issues_list_teacherList),
5438
+ className: "".concat(styles.issues_list, " ").concat(styles.issues_list_teacherList),
5312
5439
  style: {
5313
- bottom: "".concat(buttomHei + 6, "px")
5440
+ bottom: "".concat(buttomHei + 14, "px")
5314
5441
  },
5315
5442
  children: teacherList.map(function(item) {
5316
5443
  var span = item.name.replaceAll(keyWord, function() {
5317
- return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(keyWord, "</span>");
5444
+ return "<span class=".concat(styles.sign, ">").concat(keyWord, "</span>");
5318
5445
  });
5319
5446
  return /*#__PURE__*/ jsx("p", {
5320
- className: modules_63b47c51$2.item,
5447
+ className: styles.item,
5321
5448
  children: /*#__PURE__*/ jsx("span", {
5322
5449
  onClick: function() {
5323
5450
  setTeacherList([]);
@@ -5352,16 +5479,16 @@ var CustomerService = function(props) {
5352
5479
  });
5353
5480
  } else {
5354
5481
  return /*#__PURE__*/ jsx("div", {
5355
- className: modules_63b47c51$2.issues_list,
5482
+ className: styles.issues_list,
5356
5483
  style: {
5357
5484
  bottom: "".concat(buttomHei + 6, "px")
5358
5485
  },
5359
5486
  children: questionsList.map(function(item) {
5360
5487
  var span = item.question.replaceAll(keyWord, function() {
5361
- return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(keyWord, "</span>");
5488
+ return "<span class=".concat(styles.sign, ">").concat(keyWord, "</span>");
5362
5489
  });
5363
5490
  return /*#__PURE__*/ jsx("p", {
5364
- className: modules_63b47c51$2.item,
5491
+ className: styles.item,
5365
5492
  children: /*#__PURE__*/ jsx("span", {
5366
5493
  onClick: function() {
5367
5494
  sendMessage(item, 2);
@@ -5382,12 +5509,6 @@ var CustomerService = function(props) {
5382
5509
  if (page != 1) {
5383
5510
  setPageNumHistory(page);
5384
5511
  }
5385
- createRooms(receiver);
5386
- if (childRef.current) {
5387
- setTimeout(function() {
5388
- childRef.current.roomsListTimer();
5389
- }, 500);
5390
- }
5391
5512
  setPageNum(page);
5392
5513
  setLastId(id); //用于定位
5393
5514
  //如果是当前聊天室
@@ -5395,22 +5516,30 @@ var CustomerService = function(props) {
5395
5516
  getHistoryMessage(page, 1);
5396
5517
  } else {
5397
5518
  setRoomId(renewRoomId);
5519
+ if (childRef.current) {
5520
+ if (receiver != mid) {
5521
+ createRooms(receiver);
5522
+ }
5523
+ setTimeout(function() {
5524
+ childRef.current.roomsListTimer();
5525
+ }, 500);
5526
+ }
5398
5527
  }
5399
5528
  };
5400
5529
  return /*#__PURE__*/ jsxs(Fragment, {
5401
5530
  children: [
5402
5531
  /*#__PURE__*/ jsxs(Drawer, {
5403
- title: "智能回答",
5532
+ title: "智能问答",
5404
5533
  width: 560,
5405
5534
  onClose: function() {
5406
5535
  onCancel();
5407
5536
  onEvent(serverName + serverUrl(), "click_智能问答_收起侧边栏", "提交");
5408
5537
  },
5409
5538
  open: showType == 1 ? true : false,
5410
- className: modules_63b47c51$2.ChatWindow_Drawer,
5539
+ className: styles.ChatWindow_Drawer,
5411
5540
  mask: false,
5412
5541
  // maskClosable={false}
5413
- rootClassName: modules_63b47c51$2.service_ChatWindow_Drawer,
5542
+ rootClassName: styles.service_ChatWindow_Drawer,
5414
5543
  children: [
5415
5544
  showType == 1 && /*#__PURE__*/ jsx("div", {
5416
5545
  style: {
@@ -5432,18 +5561,18 @@ var CustomerService = function(props) {
5432
5561
  })
5433
5562
  }),
5434
5563
  /*#__PURE__*/ jsx("div", {
5435
- className: modules_63b47c51$2.header_wrap,
5564
+ className: styles.header_wrap,
5436
5565
  children: renderHeader()
5437
5566
  }),
5438
5567
  /*#__PURE__*/ jsxs("div", {
5439
- className: "".concat(modules_63b47c51$2.Drawer_main),
5568
+ className: "".concat(styles.Drawer_main),
5440
5569
  id: "chat_content",
5441
5570
  style: {
5442
5571
  maxHeight: "calc(100vh-".concat(buttomHei + 48, "px)")
5443
5572
  },
5444
5573
  children: [
5445
5574
  loading ? /*#__PURE__*/ jsx("div", {
5446
- className: modules_63b47c51$2.loading,
5575
+ className: styles.loading,
5447
5576
  children: /*#__PURE__*/ jsx("img", {
5448
5577
  src: "/new_yun/images/loading_d.gif",
5449
5578
  alt: ""
@@ -5451,7 +5580,7 @@ var CustomerService = function(props) {
5451
5580
  }) : "",
5452
5581
  renderQuestion(),
5453
5582
  bottomLoading ? /*#__PURE__*/ jsx("div", {
5454
- className: modules_63b47c51$2.loading,
5583
+ className: styles.loading,
5455
5584
  children: /*#__PURE__*/ jsx("img", {
5456
5585
  src: "/new_yun/images/loading_d.gif",
5457
5586
  alt: ""
@@ -5460,11 +5589,11 @@ var CustomerService = function(props) {
5460
5589
  ]
5461
5590
  }),
5462
5591
  /*#__PURE__*/ jsxs("div", {
5463
- className: modules_63b47c51$2.Drawer_buttom_Issues_List,
5592
+ className: styles.Drawer_buttom_Issues_List,
5464
5593
  children: [
5465
5594
  renderAssociationProblem(),
5466
5595
  /*#__PURE__*/ jsx("div", {
5467
- className: modules_63b47c51$2.Drawer_buttom,
5596
+ className: styles.Drawer_buttom,
5468
5597
  id: "Drawer_buttom",
5469
5598
  children: renderBottomAnt()
5470
5599
  })
@@ -5479,13 +5608,12 @@ var CustomerService = function(props) {
5479
5608
  onClose: function() {
5480
5609
  setShowHistory(false);
5481
5610
  },
5482
- loadSpecifiedData: loadSpecifiedData,
5483
- roomList: roomList
5611
+ loadSpecifiedData: loadSpecifiedData
5484
5612
  })
5485
5613
  ]
5486
5614
  }),
5487
5615
  /*#__PURE__*/ jsxs(Modal, {
5488
- title: "智能回答",
5616
+ title: "智能问答",
5489
5617
  open: showType == 2 ? true : false,
5490
5618
  onCancel: function() {
5491
5619
  onCancel();
@@ -5493,21 +5621,22 @@ var CustomerService = function(props) {
5493
5621
  },
5494
5622
  centered: true,
5495
5623
  width: window.innerWidth - 252 > 1214 ? window.innerWidth - 252 : 1214,
5624
+ // @ts-ignore
5496
5625
  height: window.innerHeight - 160,
5497
- wrapClassName: modules_63b47c51$2.ChatWindow_Modal,
5626
+ wrapClassName: styles.ChatWindow_Modal,
5498
5627
  footer: false,
5499
5628
  maskClosable: false,
5500
5629
  closeIcon: null,
5501
5630
  children: [
5502
5631
  /*#__PURE__*/ jsx("div", {
5503
- className: modules_63b47c51$2.header_wrap,
5632
+ className: styles.header_wrap,
5504
5633
  children: renderHeader()
5505
5634
  }),
5506
5635
  /*#__PURE__*/ jsxs("div", {
5507
- className: "".concat(modules_63b47c51$2.Drawer_wrap_main),
5636
+ className: "".concat(styles.Drawer_wrap_main),
5508
5637
  children: [
5509
5638
  /*#__PURE__*/ jsxs("div", {
5510
- className: "".concat(modules_63b47c51$2.Drawer_main, " ChatWindow_Modal_history_list"),
5639
+ className: "".concat(styles.Drawer_main, " ChatWindow_Modal_history_list"),
5511
5640
  id: "chat_content_modal",
5512
5641
  style: {
5513
5642
  maxHeight: "".concat(window.innerHeight - 148 - buttomHei, "px")
@@ -5527,10 +5656,10 @@ var CustomerService = function(props) {
5527
5656
  ref: childRef
5528
5657
  }),
5529
5658
  /*#__PURE__*/ jsxs("div", {
5530
- className: modules_63b47c51$2.chat_content,
5659
+ className: styles.chat_content,
5531
5660
  children: [
5532
5661
  loading ? /*#__PURE__*/ jsx("div", {
5533
- className: modules_63b47c51$2.loading,
5662
+ className: styles.loading,
5534
5663
  children: /*#__PURE__*/ jsx("img", {
5535
5664
  src: "/new_yun/images/loading_d.gif",
5536
5665
  alt: ""
@@ -5542,11 +5671,11 @@ var CustomerService = function(props) {
5542
5671
  ]
5543
5672
  }),
5544
5673
  /*#__PURE__*/ jsxs("div", {
5545
- className: modules_63b47c51$2.Drawer_buttom_Issues_List,
5674
+ className: styles.Drawer_buttom_Issues_List,
5546
5675
  children: [
5547
5676
  renderAssociationProblem(),
5548
5677
  /*#__PURE__*/ jsx("div", {
5549
- className: modules_63b47c51$2.Drawer_buttom,
5678
+ className: styles.Drawer_buttom,
5550
5679
  id: "Drawer_buttom_modal",
5551
5680
  children: renderBottomAnt()
5552
5681
  })
@@ -5561,24 +5690,23 @@ var CustomerService = function(props) {
5561
5690
  onClose: function() {
5562
5691
  setShowHistory(false);
5563
5692
  },
5564
- loadSpecifiedData: loadSpecifiedData,
5565
- roomList: roomList
5693
+ loadSpecifiedData: loadSpecifiedData
5566
5694
  })
5567
5695
  ]
5568
5696
  })
5569
5697
  ]
5570
5698
  }),
5571
5699
  showType == 3 ? /*#__PURE__*/ jsxs("div", {
5572
- className: "".concat(modules_63b47c51$2.ChatWindow_Drawer),
5700
+ className: "".concat(styles.ChatWindow_Drawer),
5573
5701
  id: "",
5574
5702
  children: [
5575
5703
  /*#__PURE__*/ jsx("div", {
5576
- className: "".concat(modules_63b47c51$2.header_wrap, " ").concat(modules_63b47c51$2.header_wrap_newlabo),
5704
+ className: "".concat(styles.header_wrap, " ").concat(styles.header_wrap_newlabo),
5577
5705
  children: /*#__PURE__*/ jsxs("div", {
5578
- className: modules_63b47c51$2.top,
5706
+ className: styles.top,
5579
5707
  children: [
5580
5708
  /*#__PURE__*/ jsx("div", {
5581
- className: modules_63b47c51$2.user,
5709
+ className: styles.user,
5582
5710
  children: /*#__PURE__*/ jsx("p", {
5583
5711
  children: roomList.filter(function(e) {
5584
5712
  return e.roomId == roomId;
@@ -5586,20 +5714,21 @@ var CustomerService = function(props) {
5586
5714
  return e.roomId == roomId;
5587
5715
  })[0].name != undefined ? roomList.filter(function(e) {
5588
5716
  return e.roomId == roomId;
5589
- })[0].name : "智能回答"
5717
+ })[0].name : "智能问答"
5590
5718
  })
5591
5719
  }),
5592
5720
  /*#__PURE__*/ jsxs("div", {
5593
- className: modules_63b47c51$2.operate,
5721
+ className: styles.operate,
5594
5722
  children: [
5595
5723
  /*#__PURE__*/ jsx("i", {
5596
5724
  onClick: function() {
5597
5725
  setShowHistory(true);
5726
+ onEvent(serverName + serverUrl(), "click_智能问答_历史记录", "提交");
5598
5727
  },
5599
5728
  children: /*#__PURE__*/ jsx(CustomRecord$1, {})
5600
5729
  }),
5601
5730
  /*#__PURE__*/ jsx("span", {
5602
- className: modules_63b47c51$2.line
5731
+ className: styles.line
5603
5732
  }),
5604
5733
  /*#__PURE__*/ jsx("i", {
5605
5734
  onClick: function() {
@@ -5613,7 +5742,7 @@ var CustomerService = function(props) {
5613
5742
  /*#__PURE__*/ jsx("i", {
5614
5743
  className: "lianxiren21",
5615
5744
  onClick: function() {
5616
- setShowContacts(true);
5745
+ setShowContacts(!showContacts);
5617
5746
  },
5618
5747
  children: /*#__PURE__*/ jsx(CustomContacts$1, {})
5619
5748
  })
@@ -5623,14 +5752,14 @@ var CustomerService = function(props) {
5623
5752
  })
5624
5753
  }),
5625
5754
  /*#__PURE__*/ jsxs("div", {
5626
- className: "".concat(modules_63b47c51$2.Drawer_main, " ").concat(modules_63b47c51$2.Drawer_main_newlabo),
5755
+ className: "".concat(styles.Drawer_main, " ").concat(styles.Drawer_main_newlabo),
5627
5756
  id: "chat_content",
5628
5757
  style: {
5629
5758
  maxHeight: "".concat(window.innerHeight - 110 - buttomHei, "px)")
5630
5759
  },
5631
5760
  children: [
5632
5761
  loading ? /*#__PURE__*/ jsx("div", {
5633
- className: modules_63b47c51$2.loading,
5762
+ className: styles.loading,
5634
5763
  children: /*#__PURE__*/ jsx("img", {
5635
5764
  src: "/new_yun/images/loading_d.gif",
5636
5765
  alt: ""
@@ -5640,11 +5769,11 @@ var CustomerService = function(props) {
5640
5769
  ]
5641
5770
  }),
5642
5771
  /*#__PURE__*/ jsxs("div", {
5643
- className: "".concat(modules_63b47c51$2.Drawer_buttom_Issues_List, " ").concat(modules_63b47c51$2.Drawer_buttom_Issues_List_newlabo),
5772
+ className: "".concat(styles.Drawer_buttom_Issues_List, " ").concat(styles.Drawer_buttom_Issues_List_newlabo),
5644
5773
  children: [
5645
5774
  renderAssociationProblem(),
5646
5775
  /*#__PURE__*/ jsx("div", {
5647
- className: modules_63b47c51$2.Drawer_buttom,
5776
+ className: styles.Drawer_buttom,
5648
5777
  id: "Drawer_buttom",
5649
5778
  children: renderBottomAnt()
5650
5779
  })
@@ -5659,8 +5788,7 @@ var CustomerService = function(props) {
5659
5788
  onClose: function() {
5660
5789
  setShowHistory(false);
5661
5790
  },
5662
- loadSpecifiedData: loadSpecifiedData,
5663
- roomList: roomList
5791
+ loadSpecifiedData: loadSpecifiedData
5664
5792
  }),
5665
5793
  showType == 3 && /*#__PURE__*/ jsx("div", {
5666
5794
  style: {
@@ -5685,7 +5813,7 @@ var CustomerService = function(props) {
5685
5813
  showType == 4 && /*#__PURE__*/ jsxs(Fragment, {
5686
5814
  children: [
5687
5815
  /*#__PURE__*/ jsxs(Modal, {
5688
- title: "智能回答",
5816
+ title: "智能问答",
5689
5817
  open: true,
5690
5818
  onCancel: function() {
5691
5819
  onCancel();
@@ -5693,21 +5821,22 @@ var CustomerService = function(props) {
5693
5821
  },
5694
5822
  centered: true,
5695
5823
  width: window.innerWidth - 252 > 1214 ? window.innerWidth - 252 : 1214,
5824
+ // @ts-ignore
5696
5825
  height: window.innerHeight - 160,
5697
- wrapClassName: "".concat(modules_63b47c51$2.ChatWindow_Modal),
5826
+ wrapClassName: "".concat(styles.ChatWindow_Modal),
5698
5827
  footer: false,
5699
5828
  maskClosable: false,
5700
5829
  closeIcon: null,
5701
5830
  children: [
5702
5831
  /*#__PURE__*/ jsx("div", {
5703
- className: modules_63b47c51$2.header_wrap,
5832
+ className: styles.header_wrap,
5704
5833
  children: renderHeader()
5705
5834
  }),
5706
5835
  /*#__PURE__*/ jsxs("div", {
5707
- className: "".concat(modules_63b47c51$2.Drawer_wrap_main),
5836
+ className: "".concat(styles.Drawer_wrap_main),
5708
5837
  children: [
5709
5838
  /*#__PURE__*/ jsxs("div", {
5710
- className: "".concat(modules_63b47c51$2.Drawer_main, " ").concat(modules_63b47c51$2.Drawer_main_newlabo),
5839
+ className: "".concat(styles.Drawer_main, " ").concat(styles.Drawer_main_newlabo),
5711
5840
  id: "chat_content_modal",
5712
5841
  style: {
5713
5842
  maxHeight: "".concat(window.innerHeight - 148 - buttomHei, "px")
@@ -5727,10 +5856,10 @@ var CustomerService = function(props) {
5727
5856
  ref: childRef
5728
5857
  }),
5729
5858
  /*#__PURE__*/ jsxs("div", {
5730
- className: modules_63b47c51$2.chat_content,
5859
+ className: styles.chat_content,
5731
5860
  children: [
5732
5861
  loading ? /*#__PURE__*/ jsx("div", {
5733
- className: modules_63b47c51$2.loading,
5862
+ className: styles.loading,
5734
5863
  children: /*#__PURE__*/ jsx("img", {
5735
5864
  src: "/new_yun/images/loading_d.gif",
5736
5865
  alt: ""
@@ -5742,11 +5871,11 @@ var CustomerService = function(props) {
5742
5871
  ]
5743
5872
  }),
5744
5873
  /*#__PURE__*/ jsxs("div", {
5745
- className: modules_63b47c51$2.Drawer_buttom_Issues_List,
5874
+ className: styles.Drawer_buttom_Issues_List,
5746
5875
  children: [
5747
5876
  renderAssociationProblem(),
5748
5877
  /*#__PURE__*/ jsx("div", {
5749
- className: modules_63b47c51$2.Drawer_buttom,
5878
+ className: styles.Drawer_buttom,
5750
5879
  id: "Drawer_buttom_modal",
5751
5880
  children: renderBottomAnt()
5752
5881
  })
@@ -5761,24 +5890,23 @@ var CustomerService = function(props) {
5761
5890
  onClose: function() {
5762
5891
  setShowHistory(false);
5763
5892
  },
5764
- loadSpecifiedData: loadSpecifiedData,
5765
- roomList: roomList
5893
+ loadSpecifiedData: loadSpecifiedData
5766
5894
  })
5767
5895
  ]
5768
5896
  })
5769
5897
  ]
5770
5898
  }),
5771
5899
  /*#__PURE__*/ jsxs("div", {
5772
- className: "".concat(modules_63b47c51$2.ChatWindow_Drawer),
5900
+ className: "".concat(styles.ChatWindow_Drawer),
5773
5901
  id: "",
5774
5902
  children: [
5775
5903
  /*#__PURE__*/ jsx("div", {
5776
- className: "".concat(modules_63b47c51$2.header_wrap, " ").concat(modules_63b47c51$2.header_wrap_newlabo),
5904
+ className: "".concat(styles.header_wrap, " ").concat(styles.header_wrap_newlabo),
5777
5905
  children: /*#__PURE__*/ jsxs("div", {
5778
- className: modules_63b47c51$2.top,
5906
+ className: styles.top,
5779
5907
  children: [
5780
5908
  /*#__PURE__*/ jsx("div", {
5781
- className: modules_63b47c51$2.user,
5909
+ className: styles.user,
5782
5910
  children: /*#__PURE__*/ jsx("p", {
5783
5911
  children: roomList.filter(function(e) {
5784
5912
  return e.roomId == roomId;
@@ -5786,11 +5914,11 @@ var CustomerService = function(props) {
5786
5914
  return e.roomId == roomId;
5787
5915
  })[0].name ? roomList.filter(function(e) {
5788
5916
  return e.roomId == roomId;
5789
- })[0].name : "智能回答"
5917
+ })[0].name : "智能问答"
5790
5918
  })
5791
5919
  }),
5792
5920
  /*#__PURE__*/ jsxs("div", {
5793
- className: modules_63b47c51$2.operate,
5921
+ className: styles.operate,
5794
5922
  children: [
5795
5923
  /*#__PURE__*/ jsx("i", {
5796
5924
  onClick: function() {
@@ -5799,7 +5927,7 @@ var CustomerService = function(props) {
5799
5927
  children: /*#__PURE__*/ jsx(CustomRecord$1, {})
5800
5928
  }),
5801
5929
  /*#__PURE__*/ jsx("span", {
5802
- className: modules_63b47c51$2.line
5930
+ className: styles.line
5803
5931
  }),
5804
5932
  /*#__PURE__*/ jsx("i", {
5805
5933
  onClick: function() {
@@ -5822,14 +5950,14 @@ var CustomerService = function(props) {
5822
5950
  })
5823
5951
  }),
5824
5952
  /*#__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),
5953
+ className: "".concat(styles.Drawer_main, " ").concat(styles.Drawer_main_newlabo, " ").concat(styles.Drawer_main_newlabo_no_pic),
5826
5954
  id: "",
5827
5955
  style: {
5828
5956
  maxHeight: "".concat(window.innerHeight - 100 - buttomHei, "px)")
5829
5957
  },
5830
5958
  children: [
5831
5959
  loading ? /*#__PURE__*/ jsx("div", {
5832
- className: modules_63b47c51$2.loading,
5960
+ className: styles.loading,
5833
5961
  children: /*#__PURE__*/ jsx("img", {
5834
5962
  src: "/new_yun/images/loading_d.gif",
5835
5963
  alt: ""
@@ -5839,11 +5967,11 @@ var CustomerService = function(props) {
5839
5967
  ]
5840
5968
  }),
5841
5969
  /*#__PURE__*/ jsxs("div", {
5842
- className: "".concat(modules_63b47c51$2.Drawer_buttom_Issues_List, " ").concat(modules_63b47c51$2.Drawer_buttom_Issues_List_newlabo),
5970
+ className: "".concat(styles.Drawer_buttom_Issues_List, " ").concat(styles.Drawer_buttom_Issues_List_newlabo),
5843
5971
  children: [
5844
5972
  renderAssociationProblem(),
5845
5973
  /*#__PURE__*/ jsx("div", {
5846
- className: modules_63b47c51$2.Drawer_buttom,
5974
+ className: styles.Drawer_buttom,
5847
5975
  id: "Drawer_buttom",
5848
5976
  children: renderBottomAnt()
5849
5977
  })