bhd-components 0.6.1 → 0.6.2

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.
@@ -120110,7 +120110,7 @@ function requireD () {
120110
120110
  + 'pragma private protected public pure ref return scope shared static struct '
120111
120111
  + 'super switch synchronized template this throw try typedef typeid typeof union '
120112
120112
  + 'unittest version void volatile while with __FILE__ __LINE__ __gshared|10 '
120113
- + '__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ "0.6.1"',
120113
+ + '__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ "0.6.2"',
120114
120114
  built_in:
120115
120115
  'bool cdouble cent cfloat char creal dchar delegate double dstring float function '
120116
120116
  + 'idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar '
@@ -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 './ab2a98d6.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 './ab2a98d6.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 './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';
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';
@@ -2380,9 +2380,8 @@ var HistoryFun = function(props) {
2380
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;
2381
2381
  var _useState = _sliced_to_array(useState(""), 2), keyWordProblem = _useState[0], setKeyWordProblem = _useState[1]; //搜索内容
2382
2382
  var _useState1 = _sliced_to_array(useState([]), 2), keyHistoryMessageList = _useState1[0], setKeyHistoryMessageList = _useState1[1]; //搜索的历史记录
2383
- var _useState2 = _sliced_to_array(useState([]), 2); _useState2[0]; _useState2[1]; //根据用户id,存储一些用户名
2384
- var _useState3 = _sliced_to_array(useState(1), 2), showLoadingState = _useState3[0], setShowLoadingState = _useState3[1]; //1,初始状态,2、无数据 ,3、不显示图片
2385
- var _useState4 = _sliced_to_array(useState(false), 2), load = _useState4[0], setLoad = _useState4[1];
2383
+ 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];
2386
2385
  var timer = useRef(null); //文本框输入时
2387
2386
  var objName = useRef([]);
2388
2387
  useEffect(function() {
@@ -2462,7 +2461,7 @@ var HistoryFun = function(props) {
2462
2461
  return pageNumber;
2463
2462
  };
2464
2463
  //根据index,计算历史数据在第几页
2465
- var calculationData = function(roomId, index, id, sender) {
2464
+ var calculationData = function(roomId, index, id, receiver) {
2466
2465
  allData(roomId).then(function(res) {
2467
2466
  // console.log(res.data.messages,'11111111')
2468
2467
  if (res.data) {
@@ -2623,7 +2622,8 @@ var HistoryFun = function(props) {
2623
2622
  return /*#__PURE__*/ jsxs("div", {
2624
2623
  className: modules_63b47c51$1.list,
2625
2624
  onClick: function() {
2626
- calculationData(item.roomId, item.messageIdWithinRoom, item.id, item.receiver);
2625
+ var id = item.receiver == userData.mid ? item.sender : item.receiver;
2626
+ calculationData(item.roomId, item.messageIdWithinRoom, id, item.receiver);
2627
2627
  },
2628
2628
  children: [
2629
2629
  /*#__PURE__*/ jsxs("div", {
@@ -2661,7 +2661,6 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
2661
2661
  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
2662
  var _useState = _sliced_to_array(useState([]), 2), contactsList = _useState[0], setContactsList = _useState[1]; //老师列表
2663
2663
  var _useState1 = _sliced_to_array(useState(""), 2); _useState1[0]; var setNewRoomId = _useState1[1];
2664
- var _useState2 = _sliced_to_array(useState(true), 2); _useState2[0]; _useState2[1];
2665
2664
  // const [type,setType] = useState(0);
2666
2665
  var timer = useRef(null); //文本框输入时
2667
2666
  //获取聊天室列表
@@ -4996,7 +4995,9 @@ var CustomerService = function(props) {
4996
4995
  ]
4997
4996
  }),
4998
4997
  //在ai窗口并ai已经生成完答案
4999
- findTeacherBtn && /*#__PURE__*/ jsx("span", {
4998
+ findTeacherBtn && userData.modules.some(function(item) {
4999
+ return item.short == "TeacherAnswer";
5000
+ }) && /*#__PURE__*/ jsx("span", {
5000
5001
  className: modules_63b47c51$2.find_teacher,
5001
5002
  onClick: function() {
5002
5003
  setAnswerMode(1);
@@ -5383,7 +5384,9 @@ var CustomerService = function(props) {
5383
5384
  }
5384
5385
  createRooms(receiver);
5385
5386
  if (childRef.current) {
5386
- childRef.current.roomsListTimer();
5387
+ setTimeout(function() {
5388
+ childRef.current.roomsListTimer();
5389
+ }, 500);
5387
5390
  }
5388
5391
  setPageNum(page);
5389
5392
  setLastId(id); //用于定位