cnhis-design-vue 2.1.30 → 2.1.31

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 (129) hide show
  1. package/CHANGELOG.md +22 -22
  2. package/es/affix/index.js +8 -8
  3. package/es/age/index.js +10 -10
  4. package/es/alert/index.js +8 -8
  5. package/es/anchor/index.js +8 -8
  6. package/es/auto-complete/index.js +8 -8
  7. package/es/avatar/index.js +8 -8
  8. package/es/back-top/index.js +8 -8
  9. package/es/badge/index.js +8 -8
  10. package/es/base/index.js +8 -8
  11. package/es/big-table/index.js +164 -164
  12. package/es/breadcrumb/index.js +8 -8
  13. package/es/button/index.js +31 -31
  14. package/es/calendar/index.js +8 -8
  15. package/es/captcha/index.js +3 -3
  16. package/es/card/index.js +8 -8
  17. package/es/carousel/index.js +8 -8
  18. package/es/cascader/index.js +8 -8
  19. package/es/checkbox/index.js +9 -9
  20. package/es/col/index.js +8 -8
  21. package/es/collapse/index.js +8 -8
  22. package/es/color-picker/index.js +1 -1
  23. package/es/comment/index.js +8 -8
  24. package/es/config-provider/index.js +8 -8
  25. package/es/date-picker/index.js +8 -8
  26. package/es/descriptions/index.js +8 -8
  27. package/es/divider/index.js +8 -8
  28. package/es/drag-layout/index.js +3 -3
  29. package/es/drawer/index.js +8 -8
  30. package/es/dropdown/index.js +8 -8
  31. package/es/editor/index.js +1 -1
  32. package/es/empty/index.js +8 -8
  33. package/es/fabric-chart/index.js +11 -11
  34. package/es/form/index.js +8 -8
  35. package/es/form-model/index.js +8 -8
  36. package/es/form-table/index.js +94 -92
  37. package/es/form-table/style.css +1 -1
  38. package/es/index/index.js +708 -667
  39. package/es/index/style.css +1 -1
  40. package/es/input/index.js +9 -9
  41. package/es/input-number/index.js +8 -8
  42. package/es/layout/index.js +8 -8
  43. package/es/list/index.js +8 -8
  44. package/es/locale-provider/index.js +8 -8
  45. package/es/map/index.js +9 -9
  46. package/es/mentions/index.js +8 -8
  47. package/es/menu/index.js +8 -8
  48. package/es/message/index.js +8 -8
  49. package/es/multi-chat/index.js +164 -148
  50. package/es/multi-chat/style.css +1 -1
  51. package/es/multi-chat-client/index.js +133 -117
  52. package/es/multi-chat-client/style.css +1 -1
  53. package/es/multi-chat-history/index.js +40 -27
  54. package/es/multi-chat-history/style.css +1 -1
  55. package/es/multi-chat-record/index.js +74 -36
  56. package/es/multi-chat-record/style.css +1 -1
  57. package/es/multi-chat-setting/index.js +79 -46
  58. package/es/multi-chat-setting/style.css +1 -1
  59. package/es/multi-chat-sip/index.js +1 -1
  60. package/es/notification/index.js +8 -8
  61. package/es/page-header/index.js +8 -8
  62. package/es/pagination/index.js +8 -8
  63. package/es/popconfirm/index.js +8 -8
  64. package/es/popover/index.js +8 -8
  65. package/es/progress/index.js +8 -8
  66. package/es/radio/index.js +9 -9
  67. package/es/rate/index.js +8 -8
  68. package/es/result/index.js +8 -8
  69. package/es/row/index.js +8 -8
  70. package/es/scale-view/index.js +33 -33
  71. package/es/select/index.js +11 -11
  72. package/es/select-label/index.js +11 -11
  73. package/es/select-person/index.js +2 -2
  74. package/es/shortcut-setter/index.js +10 -10
  75. package/es/skeleton/index.js +8 -8
  76. package/es/slider/index.js +8 -8
  77. package/es/space/index.js +8 -8
  78. package/es/spin/index.js +8 -8
  79. package/es/statistic/index.js +8 -8
  80. package/es/steps/index.js +8 -8
  81. package/es/switch/index.js +8 -8
  82. package/es/table-filter/index.js +74 -74
  83. package/es/tabs/index.js +8 -8
  84. package/es/tag/index.js +9 -9
  85. package/es/time-picker/index.js +8 -8
  86. package/es/timeline/index.js +8 -8
  87. package/es/tooltip/index.js +8 -8
  88. package/es/transfer/index.js +8 -8
  89. package/es/tree/index.js +8 -8
  90. package/es/tree-select/index.js +8 -8
  91. package/es/upload/index.js +8 -8
  92. package/es/utils/UniRTCv2.js +12 -2
  93. package/es/verification-code/index.js +2 -2
  94. package/lib/cui.common.js +796 -754
  95. package/lib/cui.umd.js +796 -754
  96. package/lib/cui.umd.min.js +39 -39
  97. package/package.json +2 -2
  98. package/packages/big-table/src/BigTable.vue +3044 -3044
  99. package/packages/big-table/src/utils/batchEditing.js +610 -610
  100. package/packages/big-table/src/utils/bigTableProps.js +95 -95
  101. package/packages/button/src/ButtonPrint/components/IdentityVerification.vue +181 -181
  102. package/packages/button/src/ButtonPrint/index.vue +739 -739
  103. package/packages/fabric-chart/src/components/TimeScaleValue.vue +113 -113
  104. package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
  105. package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +135 -135
  106. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +558 -558
  107. package/packages/fabric-chart/src/fabric-chart2/FabricTop.vue +172 -172
  108. package/packages/form-table/src/FormTable.vue +4 -1
  109. package/packages/multi-chat/chat/audio.vue +5 -2
  110. package/packages/multi-chat/chat/chatFooter.vue +1594 -1594
  111. package/packages/multi-chat/chat/chatHistory.vue +6 -0
  112. package/packages/multi-chat/chat/index.vue +2 -1
  113. package/packages/multi-chat/chat/quickReply.vue +439 -439
  114. package/packages/multi-chat/components/avatar.vue +1 -2
  115. package/packages/multi-chat/img/replay.png +0 -0
  116. package/packages/multi-chat/setting/baseInfo/index.vue +1316 -1316
  117. package/packages/multi-chat/setting/sessionList/messageRecord.vue +9 -0
  118. package/packages/multi-chat/store/getters.js +3 -0
  119. package/packages/multi-chat/store/mutation.js +3 -0
  120. package/packages/multi-chat/store/state.js +113 -112
  121. package/packages/scale-view/formitem/r-choice.vue +714 -714
  122. package/packages/scale-view/scaleView.vue +2010 -2010
  123. package/packages/table-filter/src/components/c-tree-select/tree-select.vue +336 -336
  124. package/packages/table-filter/src/components/multi-select/multi-select.vue +219 -219
  125. package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +340 -340
  126. package/packages/table-filter/src/components/search-condition/SearchCondition.vue +1825 -1825
  127. package/packages/table-filter/src/const/dataOptions.js +43 -43
  128. package/src/directive/preventReClick.js +12 -12
  129. package/src/utils/UniRTCv2.js +7 -2
@@ -22,6 +22,7 @@
22
22
  <p class="content" v-else-if="item.content.type === 2">
23
23
  <img style="width:16px;" src="../../img/video_consult.png" />
24
24
  {{ item.content.content }}
25
+ <img v-if="item.content.name" @click="openReplayVideo(item.content.name)" style="width: 20px;margin-left: 12px;cursor:pointer" src="../../img/replay.png" />
25
26
  </p>
26
27
  <p class="content" v-else-if="item.content.type === 6">
27
28
  <span v-for="(item, index) in item.content.content" :key="index" class="bot-message">{{ item }}</span>
@@ -66,6 +67,8 @@ import { chatAuthentication } from '../../utils/index';
66
67
  import fetch from '@/utils/chatFetch';
67
68
  import vexutils from '@/utils/vexutils';
68
69
  import { Icon, Spin } from 'ant-design-vue';
70
+ import VueXss from "vue-xss";
71
+ import Vue from 'vue'
69
72
 
70
73
  export default {
71
74
  name: 'c-chat-msg-record',
@@ -99,6 +102,9 @@ export default {
99
102
  }
100
103
  }
101
104
  },
105
+ beforeCreate() {
106
+ !this.$xss && Vue.use(VueXss);
107
+ },
102
108
  async created() {
103
109
  // 聊天安全整改 增加权限校验
104
110
  if (this.cid) {
@@ -107,6 +113,9 @@ export default {
107
113
  this.getMessageRecord();
108
114
  },
109
115
  methods: {
116
+ openReplayVideo(url) {
117
+ window.open(url)
118
+ },
110
119
  formatDate(date) {
111
120
  return vexutils.formatDate(date, true);
112
121
  },
@@ -352,5 +352,8 @@ export default {
352
352
  },
353
353
  outing(state) {
354
354
  return state.outing;
355
+ },
356
+ callerStatus(state) {
357
+ return state.callerStatus;
355
358
  }
356
359
  };
@@ -277,5 +277,8 @@ export default {
277
277
  },
278
278
  setOuting(state, outing) {
279
279
  state.outing = outing;
280
+ },
281
+ setCallerStatus(state, callerStatus) {
282
+ state.callerStatus = callerStatus;
280
283
  }
281
284
  };
@@ -1,112 +1,113 @@
1
- export default () => {
2
- return {
3
- userInfo: null, // 用户信息
4
- currentSip: null, // 当前用户选择的sip设备
5
- assemblyId: null, // 组件id
6
- sessionId: null, // 会话id
7
- classify: null, // 会话分类
8
- isAppendMsg: false, // 是否追加消息
9
- message: '', // 当前接收或发送的消息
10
- isScrollListChange: false, // 排队/会话列表新增、修改、删除
11
- listChangeItem: null, // 排队/会话列表变化项
12
- currentTab: 'queue',
13
- msgList: [], // 历史消息
14
- serviceId: '', // 服务端id
15
- clientId: '', // 客户端id
16
- scrollTo: '', // 滚动条定位
17
- keywords: '', // 搜索关键字
18
- searchKeywords: '', // 点击搜索触发
19
- onChating: false, // 是否正在聊天
20
- enable: false, // 是否有聊天组件权限
21
- modalVisible: false,
22
- medicalOrPrescription: '',
23
- footerMessage: '',
24
- sessionStatistic: {
25
- peopleCount: '',
26
- unreadCount: ''
27
- },
28
- queueStatistic: {
29
- peopleCount: '',
30
- unreadCount: ''
31
- },
32
- offlineSessionStatistic: {
33
- peopleCount: '',
34
- unreadCount: ''
35
- },
36
- offlineClassifyCount: {},
37
- voiceAlert: true,
38
- appendList: [],
39
- disableOperate: false,
40
- // 视频相关
41
- showVideo: false,
42
- roomId: null,
43
- userSig: null,
44
- caller: null,
45
- videoId: null,
46
- recordId: null,
47
- videoSessionId: null,
48
- callings: [],
49
- delays: [],
50
- assemblySetting: {}, // 组件配置
51
- sessionTotalTime: 0, // 会话总时长
52
- sessionTime: null, // 会话时长
53
- sessionTimer: null,
54
- queueItem: null, // 待接入
55
- sessionHistoryList: [],
56
- sdkInfo: null, // 音视频通话sdk信息
57
- sessionType: 1,
58
- multiVideoShow: false,
59
- videoStatus: 0,
60
- addMemberType: 1, // 1添加会话人员2添加视频人员
61
- videoMembers: [],
62
- videoListChange: {},
63
- videoData: {},
64
- videoMode: 1, // 1语音2视频
65
- isSessionOwner: false,
66
- showAudio: false,
67
- groupMembers: [],
68
- muteAudio: false,
69
-
70
- // 聊天客户端
71
- queueId: '',
72
- chatType: '',
73
- historySessionId: '',
74
- botSessionId: '',
75
- serviceName: '',
76
- statusTitle: '',
77
- sessionEnd: false,
78
- isServer: false,
79
- closedSession: false,
80
-
81
- // 客户端参数
82
- clientParams: {},
83
-
84
- // 机器人智能客服
85
- robotId: '',
86
- questionId: '',
87
- dictionaryKey: '',
88
- chatMode: '',
89
- chatFlag: false,
90
- chatUserId: '',
91
- videoRecord: [],
92
- videoVoiceList: [],
93
- clientChatISRobot: '',
94
- chatName: '',
95
- scrollQueueId: '',
96
- lastClassify: '',
97
- lastCurrentTab: '',
98
- queryParams: {}, // 路由参数
99
- accessParams: {}, // 其他参数
100
- intentionId: '',
101
- dictionaryValue: '',
102
- orgId: '',
103
- curScrollItem: null,
104
- isQuickReply: false,
105
- isRecorderVoice: false,
106
- msgRecordCache: {}, // 消息已读记录缓存
107
- userStatus: '',
108
- uniRTC: null,
109
- incoming: null,
110
- outing: []
111
- };
112
- };
1
+ export default () => {
2
+ return {
3
+ userInfo: null, // 用户信息
4
+ currentSip: null, // 当前用户选择的sip设备
5
+ assemblyId: null, // 组件id
6
+ sessionId: null, // 会话id
7
+ classify: null, // 会话分类
8
+ isAppendMsg: false, // 是否追加消息
9
+ message: '', // 当前接收或发送的消息
10
+ isScrollListChange: false, // 排队/会话列表新增、修改、删除
11
+ listChangeItem: null, // 排队/会话列表变化项
12
+ currentTab: 'queue',
13
+ msgList: [], // 历史消息
14
+ serviceId: '', // 服务端id
15
+ clientId: '', // 客户端id
16
+ scrollTo: '', // 滚动条定位
17
+ keywords: '', // 搜索关键字
18
+ searchKeywords: '', // 点击搜索触发
19
+ onChating: false, // 是否正在聊天
20
+ enable: false, // 是否有聊天组件权限
21
+ modalVisible: false,
22
+ medicalOrPrescription: '',
23
+ footerMessage: '',
24
+ sessionStatistic: {
25
+ peopleCount: '',
26
+ unreadCount: ''
27
+ },
28
+ queueStatistic: {
29
+ peopleCount: '',
30
+ unreadCount: ''
31
+ },
32
+ offlineSessionStatistic: {
33
+ peopleCount: '',
34
+ unreadCount: ''
35
+ },
36
+ offlineClassifyCount: {},
37
+ voiceAlert: true,
38
+ appendList: [],
39
+ disableOperate: false,
40
+ // 视频相关
41
+ showVideo: false,
42
+ roomId: null,
43
+ userSig: null,
44
+ caller: null,
45
+ videoId: null,
46
+ recordId: null,
47
+ videoSessionId: null,
48
+ callings: [],
49
+ delays: [],
50
+ assemblySetting: {}, // 组件配置
51
+ sessionTotalTime: 0, // 会话总时长
52
+ sessionTime: null, // 会话时长
53
+ sessionTimer: null,
54
+ queueItem: null, // 待接入
55
+ sessionHistoryList: [],
56
+ sdkInfo: null, // 音视频通话sdk信息
57
+ sessionType: 1,
58
+ multiVideoShow: false,
59
+ videoStatus: 0,
60
+ addMemberType: 1, // 1添加会话人员2添加视频人员
61
+ videoMembers: [],
62
+ videoListChange: {},
63
+ videoData: {},
64
+ videoMode: 1, // 1语音2视频
65
+ isSessionOwner: false,
66
+ showAudio: false,
67
+ groupMembers: [],
68
+ muteAudio: false,
69
+
70
+ // 聊天客户端
71
+ queueId: '',
72
+ chatType: '',
73
+ historySessionId: '',
74
+ botSessionId: '',
75
+ serviceName: '',
76
+ statusTitle: '',
77
+ sessionEnd: false,
78
+ isServer: false,
79
+ closedSession: false,
80
+
81
+ // 客户端参数
82
+ clientParams: {},
83
+
84
+ // 机器人智能客服
85
+ robotId: '',
86
+ questionId: '',
87
+ dictionaryKey: '',
88
+ chatMode: '',
89
+ chatFlag: false,
90
+ chatUserId: '',
91
+ videoRecord: [],
92
+ videoVoiceList: [],
93
+ clientChatISRobot: '',
94
+ chatName: '',
95
+ scrollQueueId: '',
96
+ lastClassify: '',
97
+ lastCurrentTab: '',
98
+ queryParams: {}, // 路由参数
99
+ accessParams: {}, // 其他参数
100
+ intentionId: '',
101
+ dictionaryValue: '',
102
+ orgId: '',
103
+ curScrollItem: null,
104
+ isQuickReply: false,
105
+ isRecorderVoice: false,
106
+ msgRecordCache: {}, // 消息已读记录缓存
107
+ userStatus: '',
108
+ uniRTC: null,
109
+ incoming: null,
110
+ outing: [],
111
+ callerStatus: '' // 呼叫人在线离线状态(江苏通)
112
+ };
113
+ };