askbot-dragon 0.9.4 → 0.9.6

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 (70) hide show
  1. package/README.md +27 -27
  2. package/babel.config.js +6 -6
  3. package/dragon.iml +7 -7
  4. package/package.json +55 -53
  5. package/public/index.html +43 -43
  6. package/src/App.vue +31 -31
  7. package/src/api/index.js +1 -1
  8. package/src/api/mock.http +2 -2
  9. package/src/api/requestUrl.js +185 -185
  10. package/src/assets/js/AliyunlssUtil.js +92 -92
  11. package/src/assets/js/Base64Util.js +22 -22
  12. package/src/assets/js/script.js +36 -36
  13. package/src/assets/less/common.css +6773 -6773
  14. package/src/assets/less/converSationContainer/common.less +191 -191
  15. package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
  16. package/src/assets/less/iconfont.css +37 -37
  17. package/src/assets/less/ticketMessage.less +211 -211
  18. package/src/components/ActionAlertIframe.vue +112 -112
  19. package/src/components/AiGuide.vue +467 -467
  20. package/src/components/AskIFrame.vue +15 -15
  21. package/src/components/ConversationContainer.vue +1555 -1555
  22. package/src/components/FileType.vue +86 -86
  23. package/src/components/Message.vue +27 -27
  24. package/src/components/actionSatisfaction.vue +107 -107
  25. package/src/components/actionSendToBot.vue +62 -62
  26. package/src/components/answerDissatisfaction.vue +62 -62
  27. package/src/components/answerRadio.vue +76 -76
  28. package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
  29. package/src/components/ask-components/Msgloading.vue +37 -37
  30. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  31. package/src/components/askVideo.vue +138 -138
  32. package/src/components/assetDetails.vue +370 -370
  33. package/src/components/assetMessage.vue +228 -228
  34. package/src/components/associationIntention.vue +229 -229
  35. package/src/components/botActionSatisfactor.vue +68 -68
  36. package/src/components/chatContent.vue +513 -513
  37. package/src/components/feedBack.vue +136 -136
  38. package/src/components/file/AliyunOssComponents.vue +108 -108
  39. package/src/components/formTemplate.vue +2861 -2861
  40. package/src/components/loadingProcess.vue +164 -164
  41. package/src/components/message/ActionAlertIframe.vue +112 -112
  42. package/src/components/message/ShopMessage.vue +164 -164
  43. package/src/components/message/TextMessage.vue +924 -924
  44. package/src/components/message/TicketMessage.vue +177 -177
  45. package/src/components/message/swiper/index.js +4 -4
  46. package/src/components/message/swiper/ticketSwiper.vue +502 -502
  47. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  48. package/src/components/msgLoading.vue +231 -231
  49. package/src/components/myPopup.vue +70 -70
  50. package/src/components/popup.vue +227 -227
  51. package/src/components/recommend.vue +89 -89
  52. package/src/components/selector/hOption.vue +20 -20
  53. package/src/components/selector/hSelector.vue +199 -199
  54. package/src/components/selector/hWrapper.vue +216 -216
  55. package/src/components/source/BotMessage.vue +24 -24
  56. package/src/components/source/CustomMessage.vue +24 -24
  57. package/src/components/test.vue +260 -260
  58. package/src/components/tree.vue +185 -185
  59. package/src/components/utils/AliyunIssUtil.js +72 -72
  60. package/src/components/utils/ckeditor.js +123 -123
  61. package/src/components/utils/command.js +87 -87
  62. package/src/components/utils/editing.js +11 -11
  63. package/src/components/utils/format_date.js +25 -25
  64. package/src/components/utils/index.js +6 -6
  65. package/src/components/utils/math_utils.js +15 -15
  66. package/src/components/utils/plugin-image.js +11 -11
  67. package/src/components/utils/toolbar-ui.js +41 -41
  68. package/src/components/voiceComponent.vue +119 -119
  69. package/src/main.js +45 -45
  70. package/vue.config.js +47 -47
@@ -1,1555 +1,1555 @@
1
- <!-- 消息记录容器 -->
2
- <template>
3
- <div id="conversation">
4
- <!-- <asser-deatils></asser-deatils> -->
5
- <!-- <msg-loading v-if="inLoading"></msg-loading>
6
- <div style="position: relative" class="img_div">
7
- <img
8
- src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/08/24/07/35/45c878fd-6a8e-40e2-b599-bdba8e17cf8a/微信图片_20210423113520.jpg?x-oss-process=image/auto-orient,1/quality,q_90/watermark,text_MjE=,color_cccccc,size_48,rotate_315,fill_1,x_10,y_10,t_0"
9
- style="width: 100px"
10
- />
11
- <div class="mask">
12
- <loading-process :dataNote="dataNote" :finished="finished"></loading-process>
13
- </div>
14
- </div> -->
15
-
16
- <form-template
17
- :formList="formList2"
18
- @submitClick="submitClick"
19
- ></form-template>
20
- <!-- <voice-component @closeVoice="closeVoice">
21
- <div slot="voiceTip">
22
- 松开发送
23
- </div>
24
- </voice-component>-->
25
- <!-- 点选 -->
26
- <!-- <div v-html="htmlContainer"></div> -->
27
- <!-- <answer-radio :msg="answerRadios"></answer-radio>
28
- <action-send-to-bot :msg="answerRadios"></action-send-to-bot>
29
- <ticket-message :content="contents"></ticket-message>
30
- <text-message :text="text" @submitClick="submitClick"></text-message>
31
- <div v-for="(item,index) in processAction" :key="index">
32
- <association-intention :msg="item" :msgType="item.type" :isOpen="isOpen"></association-intention>
33
- </div>
34
- <el-button @click="isOpen=!isOpen">切换</el-button> -->
35
- <!-- 满意组件 -->
36
- <!-- <action-satisfaction :msg="actionSatisfactions[0]"></action-satisfaction> -->
37
- <!-- 满意或不满意-->
38
- <!-- <bot-action-satisfactor :msg="botActionSatis"></bot-action-satisfactor>
39
- <answer-dissatisfaction :msg="answerDiss"></answer-dissatisfaction>
40
- <feed-back :feedBack="feedBack"></feed-back>
41
- <voice-compontent></voice-compontent> -->
42
- <ai-guide :aiGuide="ActionAiGuideObj"></ai-guide>
43
-
44
- <!-- <FileType :urls="urls" :color="black"></FileType>-->
45
- <!-- <FileType :urls="urls" :color="black"></FileType>
46
- <chat-content :messageList="messageList"></chat-content>-->
47
- </div>
48
- </template>
49
- <script>
50
- // import TextMessage from '@/components/message/TextMessage'
51
-
52
- /*import FormTemplate from "@/components/formTemplate";
53
- import TextMessage from "@/components/message/TextMessage";*/
54
-
55
- import FormTemplate from '@/components/formTemplate'
56
- // import AnswerRadio from './answerRadio'
57
- // import TicketMessage from './message/TicketMessage'
58
- /*import VoiceComponent from "./voiceComponent";*/
59
- // import AssociationIntention from './associationIntention'
60
- // import ActionSatisfaction from './actionSatisfaction'
61
- // import MsgLoading from './msgLoading'
62
- // import LoadingProcess from './loadingProcess'
63
- // import BotActionSatisfactor from './botActionSatisfactor'
64
- // import AnswerDissatisfaction from './answerDissatisfaction'
65
- // import ActionSendToBot from './actionSendToBot'
66
- // import VoiceCompontent from './voiceComponent'
67
- // import AsserDeatils from './assetDetails.vue'
68
- /* import TicketMessage from "@/components/message/TicketMessage";
69
- import TicketMessage from "@/components/message/TicketMessage";
70
- import TextMessage from "@/components/message/TextMessage";
71
- import FeedBack from "@/components/feedBack";*/
72
- // iframe 弹窗组件测试
73
- /*import ActionAlert from "@/components/message/ActionAlertIframe";*/
74
- // 智能引导组件
75
- import AiGuide from "@/components/AiGuide";
76
- /*import FileType from "@/components/FileType";
77
- import ChatContent from "./chatContent";*/
78
- // import FeedBack from '@/components/feedBack'
79
- export default {
80
- name: 'ConversationContainer',
81
- components: {
82
- // ActionSendToBot,
83
- // AnswerDissatisfaction,
84
- // BotActionSatisfactor,
85
- // LoadingProcess,
86
- // MsgLoading,
87
- // ActionSatisfaction,
88
- // AssociationIntention,
89
- /* VoiceComponent,*/
90
- // TicketMessage,
91
- // AsserDeatils,
92
- // AnswerRadio,
93
- FormTemplate,
94
- // TextMessage,
95
- // FeedBack,
96
- // VoiceCompontent,
97
- AiGuide
98
- // FormTemplate,
99
- },
100
- props: {
101
- messages: Array
102
- },
103
- data() {
104
- return {
105
- black:'',
106
- ActionAiGuideObj: {
107
- // 智能引导
108
- type: "answer_intellect_guide",
109
- conditionList: [],
110
- content: {
111
- typesetting: "horizontal", // 排版方式 vertical 竖向 horizontal 横向
112
- description: "", // 描述
113
- descriptionVisible: true, // 是否展示描述
114
- typesVisible: true, // 是否展示分类信息
115
- groupVisible: true, // 是否分组展示
116
- groupNumber: 5, // 每组展示数量
117
- options: [
118
- {
119
- name: '常见问题常见问题常见问题常见问题常见问题常见问题常见问题常见问题',
120
- recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
121
- recommendIntentList: [{ questionName: "打印机1", intentId: 11 },], // recommendType = 0
122
- highFrequency: { // recommendType = 1
123
- rang: [], // 推荐范围
124
- number: 20, // 最多推荐问题数
125
- question: [],
126
- },
127
- intelligenceRecommend: { // recommendType = 2
128
- recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
129
- rang: [], // 推荐范围
130
- number: 20, // 最多推荐问题数
131
- question: [],
132
- },
133
- types: [
134
- {
135
- name: "常见问题常见问题常见问题常见问题常见问题常见问题常见问题常见问题",
136
- recommendType: 1, // 0 关联意图 1 高频推荐意图 2 智能推荐
137
- recommendIntentList: [
138
- { questionName: "常见问题常见问题常见问题常见问题常见问题常见问题常见问题常见问题", intentId: 11 },
139
- { questionName: "打印机2", intentId: 11 },
140
- { questionName: "打印机3", intentId: 11 },
141
- { questionName: "打印机4", intentId: 11 },
142
- { questionName: "打印机5", intentId: 11 },
143
- { questionName: "打印机6", intentId: 11 },
144
- { questionName: "打印机7", intentId: 11 },
145
- { questionName: "打印机8", intentId: 11 },
146
- ], // recommendType = 0
147
- highFrequency: { // recommendType = 1
148
- rang: [], // 推荐范围
149
- number: 20, // 最多推荐问题数
150
- question: [
151
- { exampleQuestion: "常见问题常见问题常见问题常见问题常见问题常见问题常见问题常见问题", intentId: 11 },
152
- { exampleQuestion: "打印机2", intentId: 11 },
153
- { exampleQuestion: "打印机3", intentId: 11 },
154
- { exampleQuestion: "打印机4", intentId: 11 },
155
- { exampleQuestion: "打印机5", intentId: 11 },
156
- { exampleQuestion: "打印机6", intentId: 11 },
157
- { exampleQuestion: "打印机7", intentId: 11 },
158
- ],
159
- },
160
- intelligenceRecommend: { // recommendType = 2
161
- recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
162
- rang: [], // 推荐范围
163
- number: 20, // 最多推荐问题数
164
- question: [],
165
- },
166
- },
167
- {
168
- name: "打印机问题2",
169
- recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
170
- recommendIntentList: [{ questionName: "打印机", intentId: 11 }], // recommendType = 0
171
- highFrequency: { // recommendType = 1
172
- rang: [], // 推荐范围
173
- number: 20, // 最多推荐问题数
174
- question: [],
175
- },
176
- intelligenceRecommend: { // recommendType = 2
177
- recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
178
- rang: [], // 推荐范围
179
- number: 20, // 最多推荐问题数
180
- question: [],
181
- },
182
- }
183
- ]
184
- },
185
- {
186
- name: '常见问题2',
187
- recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
188
- recommendIntentList: [{ questionName: "打印机", intentId: 11 }], // recommendType = 0
189
- highFrequency: { // recommendType = 1
190
- rang: [], // 推荐范围
191
- number: 20, // 最多推荐问题数
192
- question: [],
193
- },
194
- intelligenceRecommend: { // recommendType = 2
195
- recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
196
- rang: [], // 推荐范围
197
- number: 20, // 最多推荐问题数
198
- question: [],
199
- },
200
- types: [
201
- // {
202
- // name: "打印机问题2",
203
- // recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
204
- // recommendIntentList: [{ questionName: "打印机", intentId: 11 }], // recommendType = 0
205
- // highFrequency: { // recommendType = 1
206
- // rang: [], // 推荐范围
207
- // number: 20, // 最多推荐问题数
208
- // question: [],
209
- // },
210
- // intelligenceRecommend: { // recommendType = 2
211
- // recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
212
- // rang: [], // 推荐范围
213
- // number: 20, // 最多推荐问题数
214
- // question: [],
215
- // },
216
- // },
217
- // {
218
- // name: "打印机问题3",
219
- // recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
220
- // recommendIntentList: [{ questionName: "打印机", intentId: 11 }], // recommendType = 0
221
- // highFrequency: { // recommendType = 1
222
- // rang: [], // 推荐范围
223
- // number: 20, // 最多推荐问题数
224
- // question: [],
225
- // },
226
- // intelligenceRecommend: { // recommendType = 2
227
- // recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
228
- // rang: [], // 推荐范围
229
- // number: 20, // 最多推荐问题数
230
- // question: [],
231
- // },
232
- // }
233
- ]
234
- }
235
- ], // 分类和意图数组 二维数组
236
- },
237
- },
238
- // 弹窗组件模拟数据
239
- actionAlertIframeObj: {
240
- iframeId: 'iframeId999999998',
241
- template: 'https://www.baidu.com/?name=5555555',
242
- description: '描述',
243
- height: 550,
244
- width: 300,
245
- scrolling: 'yes',
246
- sandbox: [
247
- '预留',
248
- '启用一系列对 <iframe> 中内容的额外限制',
249
- '参考 https://www.w3school.com.cn/tags/att_iframe_sandbox.asp'
250
- ],
251
- frameborder: '0/1(是否显示框架周围的边框)',
252
- displayStyle: 'iframe 样式(点击弹出/嵌入iframe 字符串类型后端未做限制)'
253
- },
254
- contents: {
255
- multiple: true,
256
- cards: [
257
- {
258
- content: {
259
- htmlList: [
260
- {
261
- type: 'IMAGE',
262
- src:
263
- 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/02/03/03/11/90a549ad-5118-4bbd-b02f-88fa39a7d9e7/src=http___wx1.sinaimg.cn_mw690_0075bygJly1gg7223fbsnj31ba1yx4kl.jpg&refer=http___wx1.sinaimg.jfif'
264
-
265
- /*list: [
266
- {
267
- type:'IMAGE',
268
- src:'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/02/03/02/58/0d04a01a-5b57-439f-82f8-2c5dfba06fc5/5c468a64f152b1.jpg'
269
- },
270
- ],*/
271
- },
272
- { type: 'SINGLE', list: ['<p>aaaaaaaaaa</p>'] },
273
- { type: 'SINGLE', list: ['<p>北京首都国际机场</p>'] },
274
- { type: 'SINGLE', list: ['<p>北京首都国际机场啦啦啦啦</p>'] },
275
- { type: 'SINGLE', list: ['<p>7:00</p>'] }
276
- ],
277
- buttonList: [
278
- { name: '我是标签1', scope: '', test: '' },
279
- { name: '我是标签2' }
280
- ]
281
- }
282
- },
283
- {
284
- content: {
285
- htmlList: [
286
- { type: 'SINGLE', list: ['<p>aaaaa</p>'] },
287
- {
288
- type: 'DOUBLE',
289
- list: [
290
- '<p>测试测试测试测试测试测试测试</p>',
291
- '<div>bbbbb</div>'
292
- ]
293
- },
294
- {
295
- type: 'TRIPLE',
296
- list: ['<p>7:00</p>', '<div></div>', '<p>ccccc</p>']
297
- },
298
- {
299
- type: 'TRIPLE',
300
- list: ['<p>7:00</p>', '<div>bbbbb</div>', '<p>12:00</p>']
301
- }
302
- ],
303
- buttonList: [{ name: '我是标签1', scope: '', test: '' }]
304
- }
305
- },
306
- {
307
- content: {
308
- htmlList: [
309
- { type: 'SINGLE', list: ['<p>邓伦李沁的背景图片</p>'] },
310
- { type: 'SINGLE', list: ['<p>男生藏快递向求婚被他人错拆</p>'] },
311
- { type: 'SINGLE', list: ['<p>aaaaa</p>'] },
312
- { type: 'SINGLE', list: ['<p>aaaaa</p>'] }
313
- ],
314
- buttonList: [{ name: '我是标签1' }]
315
- }
316
- }
317
- ],
318
- apiKey: '123456789'
319
- },
320
- formList: {
321
- formActionId: '',
322
- form: {
323
- formFieldRelation: [
324
- {
325
- display: true,
326
- paramName: 'miaoshu',
327
- formField: {
328
- deleted: false,
329
- createTime: '2020-12-08T08:08:03.000+0000',
330
- name: '',
331
- description: '',
332
- updateTime: '2020-12-08T08:10:41.000+0000',
333
- id: 1112,
334
- lastOperatorId: 21,
335
- mainId: 'e2f80aecaf7c11eabdcd506b4b2f3ac8',
336
- type: 'EXPLANATION',
337
- extInfo: {
338
- descriptionText: '我是解释说明文案'
339
- }
340
- },
341
- required: false,
342
- fieldId: 1112
343
- },
344
- {
345
- display: true,
346
- paramName: 'danxuan',
347
- value: '',
348
- formField: {
349
- deleted: false,
350
- createTime: '2020-12-08T08:08:03.000+0000',
351
- name: '单选1',
352
- description: '',
353
- updateTime: '2020-12-08T08:10:41.000+0000',
354
- id: 111,
355
- lastOperatorId: 21,
356
- mainId: 'e2f80aecaf7c11eabdcd506b4b2f3acc',
357
- type: 'RADIO',
358
- extInfo: {
359
- WebHookParameter: [],
360
- value: [],
361
- option: [
362
- { _default: 'true', label: '1', value: '1' },
363
- { _default: 'false', label: '2', value: '选项二' },
364
- { _default: 'false', label: '3', value: '3' }
365
- ]
366
- }
367
- },
368
- required: false,
369
- fieldId: 111
370
- },
371
- {
372
- display: true,
373
- paramName: 'fujian',
374
- formField: {
375
- deleted: false,
376
- createTime: '2020-12-08T08:08:03.000+0000',
377
- name: '123',
378
- description: '',
379
- updateTime: '2020-12-08T08:10:41.000+0000',
380
- id: 1117,
381
- lastOperatorId: 78,
382
- mainId: 'e2f80aecaf7c11eabdcd506b4b2f3accJ',
383
- type: 'FILE',
384
- extInfo: {
385
- fileLimit: 'more',
386
- limitNum: '3'
387
- }
388
- },
389
- required: true,
390
- fieldId: 1117,
391
- value: [
392
- {
393
- url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
394
- }
395
- ]
396
- },
397
- {
398
- display: true,
399
- paramName: 'fuxuan',
400
- value: [],
401
- formField: {
402
- deleted: false,
403
- createTime: '2020-12-08T08:08:15.000+0000',
404
- name: '复选1',
405
- description: '',
406
- updateTime: '2020-12-08T08:10:49.000+0000',
407
- id: 112,
408
- lastOperatorId: 21,
409
- mainId: 'e2f80aecaf7c11eabdcd506b4b2f3accd',
410
- type: 'CHECKBOX',
411
- extInfo: {
412
- WebHookParameter: [],
413
- value: [],
414
- option: [
415
- { _default: 'false', label: '1', value: '' },
416
- {
417
- _default: 'false',
418
- label: '2',
419
- value: '选项二'
420
- },
421
- { _default: 'false', label: '3', value: '' }
422
- ]
423
- }
424
- },
425
- required: true,
426
- fieldId: 112
427
- },
428
- {
429
- display: true,
430
- paramName: 'xiala',
431
- value: 'MIDDLE',
432
- formField: {
433
- deleted: false,
434
- createTime: '2020-12-08T08:08:27.000+0000',
435
- name: '下拉1',
436
- description: '',
437
- updateTime: '2020-12-08T08:10:56.000+0000',
438
- id: 113,
439
- lastOperatorId: 21,
440
- mainId: 'e2f80aecaf7c11eabdcd506b4b2f3accdd',
441
- type: 'SELECT',
442
- extInfo: {
443
- WebHookParameter: [],
444
- value: [],
445
- option: [
446
- { _default: 'false', label: '紧急', value: 'URGENT' },
447
- {
448
- _default: 'false',
449
- label: '高',
450
- value: 'HIGH'
451
- },
452
- { _default: 'false', label: '中', value: 'MIDDLE' },
453
- { _default: 'false', label: '12', value: '12' }
454
- ]
455
- }
456
- },
457
- required: false,
458
- fieldId: 113
459
- },
460
- {
461
- display: true,
462
- paramName: 'hhh',
463
- value: [
464
- {
465
- url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
466
- },
467
- {
468
- url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
469
- }
470
- ],
471
- formField: {
472
- deleted: false,
473
- createTime: '2020-12-08T08:08:03.000+0000',
474
- name: '345',
475
- description: '',
476
- updateTime: '2020-12-08T08:10:41.000+0000',
477
- id: 222222,
478
- lastOperatorId: 78,
479
- mainId: 'e2f80aecaf7c11eabdcd506b4b2f3accJ',
480
- type: 'FILE',
481
- extInfo: {
482
- fileLimit: 'more'
483
- }
484
- },
485
- required: false,
486
- fieldId: 222222
487
- }
488
- ]
489
- }
490
- },
491
- formList2: {
492
- formActionId: '11',
493
- "form":{
494
- "formFieldRelation": [
495
- {
496
- "display": true,
497
- "paramName": "description",
498
- "value": "",
499
- "formField": {
500
- "workOrderFieldId": "cf6dcae9907f410a9fb20838372d94a3",
501
- "name": "问题描述",
502
- "type": "TEXTAREA",
503
- "extInfo": {
504
- "visibleWithoutPermission": true,
505
- "isDelete": false,
506
- "autoInput": {
507
- "enable": false,
508
- "rule": {
509
- "handler": "",
510
- "exp": "",
511
- "type": "reg"
512
- },
513
- "source": [
514
-
515
- ]
516
- },
517
- "range": {
518
- "start": "",
519
- "end": ""
520
- },
521
- "disabled": true,
522
- "placeholder": "故障描述"
523
- }
524
- },
525
- "required": true,
526
- "fieldId": "workorder_description"
527
- },
528
- {
529
- "display": false,
530
- "paramName": "priority",
531
- "value": "MIDDLE",
532
- "formField": {
533
- "workOrderFieldId": "c2b3aa60dc62454585f35c9298f8f742",
534
- "name": "优先级",
535
- "type": "SELECT",
536
- "extInfo": {
537
- "option": [
538
- {
539
- "label": "紧急",
540
- "value": "URGENT"
541
- },
542
- {
543
- "label": "高",
544
- "value": "HIGH"
545
- },
546
- {
547
- "label": "中",
548
- "value": "MIDDLE"
549
- },
550
- {
551
- "label": "低",
552
- "value": "LOW"
553
- }
554
- ]
555
- }
556
- },
557
- "required": true,
558
- "fieldId": "workorder_priority"
559
- },
560
- {
561
- "display": false,
562
- "paramName": "clientId",
563
- "value": "",
564
- "formField": {
565
- "workOrderFieldId": "",
566
- "name": "客户",
567
- "type": "SELECT",
568
- "extInfo": {
569
- "option": [
570
- {
571
- "label": "woWeMoBwAAuVBh99lkM5EeUzFn47YI-Q",
572
- "value": "63082e3df82611324e0a2d6d"
573
- },
574
- {
575
- "label": "woWeMoBwAA-zPwE_r9SW1g3Z_rNOPpbw",
576
- "value": "6344e433614f1e553d2df727"
577
- }
578
- ]
579
- }
580
- },
581
- "required": false,
582
- "fieldId": "workorder_clientId"
583
- },
584
- {
585
- "display": false,
586
- "paramName": "statusId",
587
- "value": "63072fa308dabd41ab806ee5",
588
- "formField": {
589
- "workOrderFieldId": "164c56671b714a90b556ef324cad81ab",
590
- "name": "状态",
591
- "type": "SELECT",
592
- "extInfo": {
593
- "option": [
594
- {
595
- "label": "新建",
596
- "value": "63072fa308dabd41ab806ee5"
597
- },
598
- {
599
- "label": "解决中",
600
- "value": "63072fa308dabd41ab806ee6"
601
- },
602
- {
603
- "label": "已解决",
604
- "value": "63072fa308dabd41ab806ee7"
605
- },
606
- {
607
- "label": "已关闭",
608
- "value": "63072fa308dabd41ab806ee8"
609
- }
610
- ]
611
- }
612
- },
613
- "required": true,
614
- "fieldId": "workorder_statusId"
615
- },
616
- {
617
- "display": true,
618
- "paramName": "fieldValue.ba1ad3b6a9224f82aca2669e25a7f53b",
619
- "value": "",
620
- "formField": {
621
- "workOrderFieldId": "ba1ad3b6a9224f82aca2669e25a7f53b",
622
- "name": "归属地",
623
- "type": "RADIO",
624
- "extInfo": {
625
- "isDelete": true,
626
- "autoInput": {
627
- "enable": false,
628
- "rule": {
629
- "handler": "",
630
- "type": "dict",
631
- "exp": ""
632
- },
633
- "source": [
634
-
635
- ]
636
- },
637
- "options": [
638
- {
639
- "_default": "false",
640
- "relationTags": [
641
- {
642
- "name": "楼层",
643
- "id": "10557da84231430aa1bb866adfbc7a9d"
644
- },
645
- {
646
- "name": "楼层方位",
647
- "id": "df603a2028c64403864fe86992b58fc6"
648
- },
649
- {
650
- "name": "维修类别",
651
- "id": "73ea91093fbd4421ae4af006ebe01cc2"
652
- }
653
- ],
654
- "label": "丽水总部大楼",
655
- "relationItems": [
656
- "10557da84231430aa1bb866adfbc7a9d",
657
- "df603a2028c64403864fe86992b58fc6",
658
- "73ea91093fbd4421ae4af006ebe01cc2"
659
- ],
660
- "value": "丽水总部大楼",
661
- "requiredItems": [
662
- "10557da84231430aa1bb866adfbc7a9d",
663
- "df603a2028c64403864fe86992b58fc6",
664
- "73ea91093fbd4421ae4af006ebe01cc2"
665
- ]
666
- },
667
- {
668
- "_default": "false",
669
- "relationTags": [
670
- {
671
- "name": "维修类别",
672
- "id": "22f44fe2fe9f418db773e0ec5e24074c"
673
- }
674
- ],
675
- "label": "安徽六安",
676
- "relationItems": [
677
- "22f44fe2fe9f418db773e0ec5e24074c"
678
- ],
679
- "value": "安徽六安",
680
- "requiredItems": [
681
- "22f44fe2fe9f418db773e0ec5e24074c"
682
- ]
683
- }
684
- ],
685
- "range": {
686
- "start": "",
687
- "end": ""
688
- },
689
- "placeholder": "请选择",
690
- "associatedAction": [
691
- "relationItems",
692
- "requiredItems"
693
- ],
694
- "dependent": {
695
-
696
- }
697
- }
698
- },
699
- "required": false,
700
- "fieldId": "ba1ad3b6a9224f82aca2669e25a7f53b"
701
- },
702
- {
703
- "display": true,
704
- "paramName": "fieldValue.10557da84231430aa1bb866adfbc7a9d",
705
- "value": "",
706
- "formField": {
707
- "workOrderFieldId": "10557da84231430aa1bb866adfbc7a9d",
708
- "name": "楼层",
709
- "type": "INPUT",
710
- "extInfo": {
711
- "unit": "",
712
- "isDelete": true,
713
- "autoInput": {
714
- "enable": false,
715
- "rule": {
716
- "handler": "",
717
- "type": "reg",
718
- "exp": ""
719
- },
720
- "source": [
721
-
722
- ]
723
- },
724
- "requiredDependentFieldId": {
725
- "ba1ad3b6a9224f82aca2669e25a7f53b": [
726
- "丽水总部大楼"
727
- ]
728
- },
729
- "range": {
730
- "start": "",
731
- "end": ""
732
- },
733
- "inputType": "TEXT",
734
- "dependentFieldId": {
735
- "ba1ad3b6a9224f82aca2669e25a7f53b": [
736
- "丽水总部大楼"
737
- ]
738
- },
739
- "placeholder": "请输入",
740
- "maxNum": 100
741
- }
742
- },
743
- "required": false,
744
- "fieldId": "10557da84231430aa1bb866adfbc7a9d"
745
- },
746
- {
747
- "display": true,
748
- "paramName": "fieldValue.df603a2028c64403864fe86992b58fc6",
749
- "value": "",
750
- "formField": {
751
- "workOrderFieldId": "df603a2028c64403864fe86992b58fc6",
752
- "name": "楼层方位",
753
- "type": "RADIO",
754
- "extInfo": {
755
- "isDelete": true,
756
- "autoInput": {
757
- "enable": false,
758
- "rule": {
759
- "handler": "",
760
- "type": "dict",
761
- "exp": ""
762
- },
763
- "source": [
764
-
765
- ]
766
- },
767
- "options": [
768
- {
769
- "_default": false,
770
- "label": "东面",
771
- "relationItems": [
772
-
773
- ],
774
- "value": "东面",
775
- "requiredItems": [
776
-
777
- ]
778
- },
779
- {
780
- "_default": false,
781
- "label": "南面",
782
- "relationItems": [
783
-
784
- ],
785
- "value": "南面",
786
- "requiredItems": [
787
-
788
- ]
789
- },
790
- {
791
- "_default": false,
792
- "label": "西面",
793
- "relationItems": [
794
-
795
- ],
796
- "value": "西面",
797
- "requiredItems": [
798
-
799
- ]
800
- },
801
- {
802
- "_default": "false",
803
- "label": "北面",
804
- "value": "北面"
805
- }
806
- ],
807
- "requiredDependentFieldId": {
808
- "ba1ad3b6a9224f82aca2669e25a7f53b": [
809
- "丽水总部大楼"
810
- ]
811
- },
812
- "range": {
813
- "start": "",
814
- "end": ""
815
- },
816
- "dependentFieldId": {
817
- "ba1ad3b6a9224f82aca2669e25a7f53b": [
818
- "丽水总部大楼"
819
- ]
820
- },
821
- "placeholder": "请选择",
822
- "dependent": {
823
-
824
- }
825
- }
826
- },
827
- "required": false,
828
- "fieldId": "df603a2028c64403864fe86992b58fc6"
829
- },
830
- {
831
- "display": true,
832
- "paramName": "fieldValue.73ea91093fbd4421ae4af006ebe01cc2",
833
- "value": [
834
-
835
- ],
836
- "formField": {
837
- "workOrderFieldId": "73ea91093fbd4421ae4af006ebe01cc2",
838
- "name": "维修类别",
839
- "type": "CASCADER",
840
- "extInfo": {
841
- "isDelete": true,
842
- "autoInput": {
843
- "enable": false,
844
- "rule": {
845
- "handler": "",
846
- "type": "dict",
847
- "exp": ""
848
- },
849
- "source": [
850
-
851
- ]
852
- },
853
- "requiredDependentFieldId": {
854
- "ba1ad3b6a9224f82aca2669e25a7f53b": [
855
- "丽水总部大楼"
856
- ]
857
- },
858
- "range": {
859
- "start": "",
860
- "end": ""
861
- },
862
- "selectType": "单选",
863
- "dependentFieldId": {
864
- "ba1ad3b6a9224f82aca2669e25a7f53b": [
865
- "丽水总部大楼"
866
- ]
867
- },
868
- "placeholder": "请选择",
869
- "dependent": {
870
-
871
- },
872
- "fieldValue": [
873
-
874
- ],
875
- "cascadeDown": {
876
- "options": [
877
- {
878
- "_default": false,
879
- "children": [
880
- {
881
- "_default": false,
882
- "children": [
883
- {
884
- "_default": false,
885
- "label": "开机显示屏不亮",
886
- "relationItems": [
887
-
888
- ],
889
- "value": "开机显示屏不亮"
890
- },
891
- {
892
- "_default": false,
893
- "label": "其他",
894
- "relationItems": [
895
-
896
- ],
897
- "value": "其他"
898
- }
899
- ],
900
- "label": "硬件类",
901
- "relationItems": [
902
-
903
- ],
904
- "value": "硬件类"
905
- },
906
- {
907
- "_default": false,
908
- "children": [
909
- {
910
- "_default": false,
911
- "label": "公司业务系统打不开",
912
- "relationItems": [
913
-
914
- ],
915
- "value": "公司业务系统打不开"
916
- },
917
- {
918
- "_default": false,
919
- "label": "其他",
920
- "relationItems": [
921
-
922
- ],
923
- "value": "其他"
924
- }
925
- ],
926
- "label": "软件类",
927
- "relationItems": [
928
-
929
- ],
930
- "value": "软件类"
931
- }
932
- ],
933
- "label": "计算机电子相关类(服饰板块)",
934
- "relationItems": [
935
-
936
- ],
937
- "value": "计算机电子相关类(服饰板块)",
938
- "requiredItems": [
939
-
940
- ]
941
- },
942
- {
943
- "_default": false,
944
- "children": [
945
- {
946
- "_default": false,
947
- "children": [
948
- {
949
- "_default": false,
950
- "label": "水管问题",
951
- "relationItems": [
952
-
953
- ],
954
- "value": "水管问题"
955
- },
956
- {
957
- "_default": false,
958
- "label": "电灯不亮",
959
- "relationItems": [
960
-
961
- ],
962
- "value": "电灯不亮"
963
- }
964
- ],
965
- "label": "生活类",
966
- "relationItems": [
967
-
968
- ],
969
- "value": "生活类"
970
- },
971
- {
972
- "_default": false,
973
- "children": [
974
- {
975
- "_default": false,
976
- "label": "门窗坏",
977
- "relationItems": [
978
-
979
- ],
980
- "value": "门窗坏"
981
- },
982
- {
983
- "_default": false,
984
- "label": "桌子坏",
985
- "relationItems": [
986
-
987
- ],
988
- "value": "桌子坏"
989
- }
990
- ],
991
- "label": "桌椅类",
992
- "relationItems": [
993
-
994
- ],
995
- "value": "桌椅类"
996
- }
997
- ],
998
- "label": "水电生活办公类",
999
- "relationItems": [
1000
-
1001
- ],
1002
- "value": "水电生活办公类"
1003
- }
1004
- ]
1005
- }
1006
- }
1007
- },
1008
- "required": false,
1009
- "fieldId": "73ea91093fbd4421ae4af006ebe01cc2"
1010
- },
1011
- {
1012
- "display": true,
1013
- "paramName": "fieldValue.22f44fe2fe9f418db773e0ec5e24074c",
1014
- "value": [
1015
- ""
1016
- ],
1017
- "formField": {
1018
- "workOrderFieldId": "22f44fe2fe9f418db773e0ec5e24074c",
1019
- "name": "维修类别",
1020
- "type": "CASCADER",
1021
- "extInfo": {
1022
- "isDelete": true,
1023
- "autoInput": {
1024
- "enable": false,
1025
- "rule": {
1026
- "handler": "",
1027
- "type": "dict",
1028
- "exp": ""
1029
- },
1030
- "source": [
1031
-
1032
- ]
1033
- },
1034
- "requiredDependentFieldId": {
1035
- "ba1ad3b6a9224f82aca2669e25a7f53b": [
1036
- "安徽六安"
1037
- ]
1038
- },
1039
- "range": {
1040
- "start": "",
1041
- "end": ""
1042
- },
1043
- "selectType": "单选",
1044
- "dependentFieldId": {
1045
- "ba1ad3b6a9224f82aca2669e25a7f53b": [
1046
- "安徽六安"
1047
- ]
1048
- },
1049
- "placeholder": "请选择",
1050
- "dependent": {
1051
-
1052
- },
1053
- "cascadeDown": {
1054
- "options": [
1055
- {
1056
- "_default": false,
1057
- "children": [
1058
- {
1059
- "_default": false,
1060
- "children": [
1061
- {
1062
- "_default": false,
1063
- "label": "软件问题",
1064
- "relationItems": [
1065
-
1066
- ],
1067
- "value": "软件问题"
1068
- },
1069
- {
1070
- "_default": false,
1071
- "label": "电脑无法开机",
1072
- "relationItems": [
1073
-
1074
- ],
1075
- "value": "电脑无法开机"
1076
- }
1077
- ],
1078
- "label": "电脑故障",
1079
- "relationItems": [
1080
-
1081
- ],
1082
- "value": "电脑故障"
1083
- }
1084
- ],
1085
- "label": "IT类",
1086
- "relationItems": [
1087
-
1088
- ],
1089
- "value": "IT类",
1090
- "requiredItems": [
1091
-
1092
- ]
1093
- },
1094
- {
1095
- "_default": false,
1096
- "children": [
1097
- {
1098
- "_default": false,
1099
- "children": [
1100
- {
1101
- "_default": false,
1102
- "label": "空调问题",
1103
- "relationItems": [
1104
-
1105
- ],
1106
- "value": "空调问题"
1107
- },
1108
- {
1109
- "_default": false,
1110
- "label": "电灯问题",
1111
- "relationItems": [
1112
-
1113
- ],
1114
- "value": "电灯问题"
1115
- }
1116
- ],
1117
- "label": "生产类",
1118
- "relationItems": [
1119
-
1120
- ],
1121
- "value": "生产类"
1122
- },
1123
- {
1124
- "_default": false,
1125
- "children": [
1126
- {
1127
- "_default": false,
1128
- "label": "食堂设备问题",
1129
- "relationItems": [
1130
-
1131
- ],
1132
- "value": "食堂设备问题"
1133
- },
1134
- {
1135
- "_default": false,
1136
- "label": "商铺设备问题",
1137
- "relationItems": [
1138
-
1139
- ],
1140
- "value": "商铺设备问题"
1141
- }
1142
- ],
1143
- "label": "生活类",
1144
- "relationItems": [
1145
-
1146
- ],
1147
- "value": "生活类"
1148
- }
1149
- ],
1150
- "label": "公用设备类",
1151
- "relationItems": [
1152
-
1153
- ],
1154
- "value": "公用设备类"
1155
- }
1156
- ]
1157
- }
1158
- }
1159
- },
1160
- "required": false,
1161
- "fieldId": "22f44fe2fe9f418db773e0ec5e24074c"
1162
- },
1163
- {
1164
- "display": true,
1165
- "paramName": "fieldValue.e90295e2c760460c95480ee61fe160ad",
1166
- "value": "",
1167
- "formField": {
1168
- "workOrderFieldId": "e90295e2c760460c95480ee61fe160ad",
1169
- "name": "聊天记录",
1170
- "type": "CHAT_RECORD",
1171
- "extInfo": {
1172
- "visibleWithoutPermission": true,
1173
- "isDelete": true,
1174
- "autoInput": {
1175
- "enable": false,
1176
- "rule": {
1177
- "handler": "",
1178
- "exp": "",
1179
- "type": "reg"
1180
- },
1181
- "source": [
1182
-
1183
- ]
1184
- },
1185
- "range": {
1186
- "start": "",
1187
- "end": ""
1188
- },
1189
- "disabled": false
1190
- }
1191
- },
1192
- "required": false,
1193
- "fieldId": "e90295e2c760460c95480ee61fe160ad"
1194
- }
1195
- ]
1196
- }
1197
- },
1198
- text: {
1199
- template:
1200
- '<p>开始时间&nbsp;<span class="ask-component-placeholder-container"><span class="ask-component-placeholder-span" data="${开始时间戳_秒}" type="INPUT">1607427268</span><i class="ask-component-placeholder-icon arsenal_icon arsenalbianji2" icon="arsenal_icon arsenalkebianji" editable="true" onclick="_askEditValue(this,this.previousElementSibling)"></i><br/></span>结束时间&nbsp;<span class="ask-component-placeholder-container"><span class="ask-component-placeholder-span" data="${结束时间戳_秒}" type="TIME_PICKER">1607772868</span><i class="ask-component-placeholder-icon arsenal_icon arsenalkebianji" icon="arsenal_icon arsenalkebianji" editable="true" onclick="_askEditValue(this,this.previousElementSibling)"></i></span></p>',
1201
- goToAction: { value: '123' },
1202
- apiKey: ''
1203
- },
1204
- rem: 'rem',
1205
- feedBack: {
1206
- positiveFeedback: { text: '有用有用有用有用' },
1207
- negativeFeedback: { text: '无用无用无用无用' },
1208
- feedbackActions: [],
1209
- feedbackUid: ''
1210
- },
1211
- urls: [
1212
- {
1213
- status: 'success',
1214
- name: 'portal.test.askbot.cn_20201214_153724.zip',
1215
- size: 2077,
1216
- percentage: 100,
1217
- uid: 1609154083480,
1218
- raw: { uid: 1609154083480 },
1219
- response:
1220
- 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1221
- },
1222
- {
1223
- status: 'success',
1224
- name: 'portal._153724.doc',
1225
- size: 2077,
1226
- percentage: 100,
1227
- uid: 1609154083480,
1228
- raw: { uid: 1609154083480 },
1229
- response:
1230
- 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1231
- },
1232
- {
1233
- status: 'success',
1234
- name: 'portal.test.askbot.cn_20201214_153724.xls',
1235
- size: 2077,
1236
- percentage: 100,
1237
- uid: 1609154083480,
1238
- raw: { uid: 1609154083480 },
1239
- response:
1240
- 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1241
- },
1242
- {
1243
- status: 'success',
1244
- name: 'portal.test.askbot.cn_20201214_153724.ppt',
1245
- size: 2077,
1246
- percentage: 100,
1247
- uid: 1609154083480,
1248
- raw: { uid: 1609154083480 },
1249
- response:
1250
- 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1251
- },
1252
- {
1253
- status: 'success',
1254
- name: 'portal.test.askbot.cn_20201214_153724.pdf',
1255
- size: 2077,
1256
- percentage: 100,
1257
- uid: 1609154083480,
1258
- raw: { uid: 1609154083480 },
1259
- response:
1260
- 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1261
- },
1262
- {
1263
- status: 'success',
1264
- name: 'portal.test.askbot.cn_20201214_153724.zip',
1265
- size: 2077,
1266
- percentage: 100,
1267
- uid: 1609154083480,
1268
- raw: { uid: 1609154083480 },
1269
- response:
1270
- 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1271
- }
1272
- ],
1273
- messageList: [
1274
- {
1275
- content:
1276
- '您好,我是郑俊成的智能助理,请问您是为企业咨询还是个人兴趣?',
1277
- speaker: 'bot',
1278
- type: 'answer_text'
1279
- },
1280
- { content: '单位', speaker: 'user', type: 'answer_text' }
1281
- ],
1282
- answerMsg: {
1283
- content: {
1284
- description: '你好,我是点选',
1285
- options: [
1286
- {
1287
- name: '跳转意图',
1288
- scope: 'INTENT',
1289
- value: '3535'
1290
- }
1291
- ]
1292
- }
1293
- },
1294
- showLoad: false,
1295
- videoUrl:
1296
- 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/08/27/10/22/56fb13eb-b94a-45e8-b131-04531330cb2c/微信_20210719215122.mp4',
1297
- processAction: [
1298
- {
1299
- content: {
1300
- html:
1301
- '<p style="line-height: 16px;"><img onclick=\'previewImage(this)\' src="https://test.open.guoranbot.com/UEditor/dialogs/attachment/fileTypeImages/icon_txt.gif"/><a style="font-size:12px; color:#0066cc;" href="https://static.guoranbot.com/ueditor/2022/03/11/c788d2d7fea04be680cc920e1f99db8e/分析报告 (1).xlsx" title="分析报告 (1).xlsx">分析报告 (1).xlsx</a></p><p><br/></p>',
1302
- recommend: {
1303
- description: '关联意图测试描述',
1304
- list: [
1305
- {
1306
- id: '3539',
1307
- text: '文本',
1308
- type: 1
1309
- },
1310
- {
1311
- id: '3540',
1312
- text: '图片',
1313
- type: 1
1314
- }
1315
- ],
1316
- status: true
1317
- }
1318
- },
1319
- type: 'answer_rich_text',
1320
- id: '60df03aeeea6014311dc4285',
1321
- intentId: 6064,
1322
- recommend: {
1323
- description: '关联意图测试描述',
1324
- list: [
1325
- {
1326
- id: '3539',
1327
- text: '文本',
1328
- type: 1
1329
- },
1330
- {
1331
- id: '3540',
1332
- text: '图片',
1333
- type: 1
1334
- }
1335
- ],
1336
- status: true
1337
- }
1338
- },
1339
-
1340
- {
1341
- content: {
1342
- url:
1343
- 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/08/24/07/35/45c878fd-6a8e-40e2-b599-bdba8e17cf8a/微信图片_20210423113520.jpg?x-oss-process=image/auto-orient,1/quality,q_90/watermark,text_MjE=,color_cccccc,size_48,rotate_315,fill_1,x_10,y_10,t_0',
1344
- html: '测试文本-关联推荐没有描述',
1345
- recommend: {
1346
- description: '',
1347
- list: [
1348
- {
1349
- id: '3539',
1350
- text: '文本',
1351
- type: 1
1352
- },
1353
- {
1354
- id: '3540',
1355
- text: '图片',
1356
- type: 1
1357
- }
1358
- ],
1359
- status: true
1360
- }
1361
- },
1362
- type: 'answer_image',
1363
- id: '6124d9b1c12fa234e0b3ddc8',
1364
- intentId: 6064,
1365
- recommend: {
1366
- description: '',
1367
- list: [
1368
- {
1369
- id: '3539',
1370
- text: '文本',
1371
- type: 1
1372
- },
1373
- {
1374
- id: '3540',
1375
- text: '图片',
1376
- type: 1
1377
- }
1378
- ],
1379
- status: true
1380
- }
1381
- },
1382
- {
1383
- content: {
1384
- url:
1385
- 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/08/24/07/35/41221223-c180-4f3f-bdc8-94875b693965/WeChat_20210719215122.mp4',
1386
- videoFlag: false,
1387
- videoUploadPercent: 0,
1388
- isShowUploadVideo: true,
1389
- recommend: {
1390
- description: '关联意图测试描述',
1391
- list: [
1392
- {
1393
- id: '3539',
1394
- text: '文本',
1395
- type: 1
1396
- }
1397
- ],
1398
- status: true
1399
- }
1400
- },
1401
- type: 'answer_video',
1402
- id: '60df03aeeea6014311dc4285',
1403
- intentId: 6064,
1404
- recommend: {
1405
- description: '关联意图测试描述',
1406
- list: [
1407
- {
1408
- id: '3539',
1409
- text: '文本',
1410
- type: 1
1411
- }
1412
- ],
1413
- status: true
1414
- }
1415
- }
1416
- ],
1417
- actionSatisfactions: [
1418
- {
1419
- content: {
1420
- satisfactionDes: '满意度',
1421
- satisfactoryAnswer: '',
1422
- unsatisfiedAnswer: '',
1423
- answerRadio: [
1424
- {
1425
- answer: '哦哦哦',
1426
- name: '哈哈哈'
1427
- }
1428
- ]
1429
- }
1430
- }
1431
- ],
1432
- inLoading: true,
1433
- dataNote: 0,
1434
- timer: null,
1435
- finished: false,
1436
- botActionSatis: {
1437
- content: {
1438
- reply_text: '哈哈哈哈哈',
1439
- reply_options: [
1440
- {
1441
- name: '暗示丢',
1442
- answer: '暗示丢1504559775615045597756kjl',
1443
- apiKey: ''
1444
- },
1445
- {
1446
- name: '暗示丢2',
1447
- answer: '暗示丢11504559775615045597756kjl',
1448
- apiKey: ''
1449
- }
1450
- ]
1451
- }
1452
- },
1453
- answerDiss: {
1454
- content: {
1455
- replyText: '哈哈哈哈哈',
1456
- replyOptions: [
1457
- {
1458
- name: '暗示丢',
1459
- answer: '暗示丢1504559775615045597756kjl',
1460
- apiKey: ''
1461
- },
1462
- {
1463
- name: '暗示丢2',
1464
- answer: '暗示丢11504559775615045597756kjl',
1465
- apiKey: ''
1466
- }
1467
- ]
1468
- }
1469
- },
1470
- answerRadios: {
1471
- content: {
1472
- description: '请点击下方选项继续测试',
1473
- options: [
1474
- {
1475
- name: '跳转节点1',
1476
- scope: 'NODE',
1477
- value: '60177b9470814d4ce924f1ed'
1478
- },
1479
- {
1480
- name: '跳转意图',
1481
- scope: 'INTENT',
1482
- value: '3558'
1483
- },
1484
- {
1485
- name: '跳转节点2',
1486
- scope: 'NODE',
1487
- value: '60af4505d0acd7017620c4f2'
1488
- }
1489
- ],
1490
- recommend: {
1491
- description: '',
1492
- status: false,
1493
- list: []
1494
- }
1495
- },
1496
- type: 'answer_radio'
1497
- },
1498
- htmlContainer: '<input placeholder="请输入"></input>',
1499
- isOpen: true
1500
- }
1501
- },
1502
- methods: {
1503
- submitClick(value) {
1504
- console.log(value)
1505
- },
1506
- submitClicks(value) {
1507
- console.log(value)
1508
- },
1509
- positiveFeedback(value1) {
1510
- console.log(value1)
1511
- },
1512
- touchEnd(index) {
1513
- console.log(index)
1514
- },
1515
- closeVoice() {
1516
- console.debug('我是close事件')
1517
- },
1518
- },
1519
- mounted() {
1520
- this.timer = setInterval(() => {
1521
- this.dataNote += 1
1522
- console.debug('this.dataNote', this.dataNote)
1523
- }, 1000)
1524
-
1525
- setTimeout(() => {
1526
- this.inLoading = true
1527
- }, 2000)
1528
- setTimeout(() => {
1529
- this.finished = true
1530
- this.dataNote = 10
1531
- clearInterval(this.timer)
1532
- }, 5000)
1533
- },
1534
- updated() {}
1535
- }
1536
- </script>
1537
-
1538
- <!-- Add "scoped" attribute to limit CSS to this component only -->
1539
- <style scoped lang="less">
1540
- @import '../assets/less/converSationContainer/converSatonContainer';
1541
- #conversation {
1542
- background-color: #f5f7fb;
1543
- }
1544
- .img_div {
1545
- position: relative;
1546
- .mask {
1547
- position: absolute;
1548
- top: 0;
1549
- right: 0;
1550
- width: 100%;
1551
- height: 100%;
1552
- border-radius: 10px;
1553
- }
1554
- }
1555
- </style>
1
+ <!-- 消息记录容器 -->
2
+ <template>
3
+ <div id="conversation">
4
+ <!-- <asser-deatils></asser-deatils> -->
5
+ <!-- <msg-loading v-if="inLoading"></msg-loading>
6
+ <div style="position: relative" class="img_div">
7
+ <img
8
+ src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/08/24/07/35/45c878fd-6a8e-40e2-b599-bdba8e17cf8a/微信图片_20210423113520.jpg?x-oss-process=image/auto-orient,1/quality,q_90/watermark,text_MjE=,color_cccccc,size_48,rotate_315,fill_1,x_10,y_10,t_0"
9
+ style="width: 100px"
10
+ />
11
+ <div class="mask">
12
+ <loading-process :dataNote="dataNote" :finished="finished"></loading-process>
13
+ </div>
14
+ </div> -->
15
+
16
+ <form-template
17
+ :formList="formList2"
18
+ @submitClick="submitClick"
19
+ ></form-template>
20
+ <!-- <voice-component @closeVoice="closeVoice">
21
+ <div slot="voiceTip">
22
+ 松开发送
23
+ </div>
24
+ </voice-component>-->
25
+ <!-- 点选 -->
26
+ <!-- <div v-html="htmlContainer"></div> -->
27
+ <!-- <answer-radio :msg="answerRadios"></answer-radio>
28
+ <action-send-to-bot :msg="answerRadios"></action-send-to-bot>
29
+ <ticket-message :content="contents"></ticket-message>
30
+ <text-message :text="text" @submitClick="submitClick"></text-message>
31
+ <div v-for="(item,index) in processAction" :key="index">
32
+ <association-intention :msg="item" :msgType="item.type" :isOpen="isOpen"></association-intention>
33
+ </div>
34
+ <el-button @click="isOpen=!isOpen">切换</el-button> -->
35
+ <!-- 满意组件 -->
36
+ <!-- <action-satisfaction :msg="actionSatisfactions[0]"></action-satisfaction> -->
37
+ <!-- 满意或不满意-->
38
+ <!-- <bot-action-satisfactor :msg="botActionSatis"></bot-action-satisfactor>
39
+ <answer-dissatisfaction :msg="answerDiss"></answer-dissatisfaction>
40
+ <feed-back :feedBack="feedBack"></feed-back>
41
+ <voice-compontent></voice-compontent> -->
42
+ <ai-guide :aiGuide="ActionAiGuideObj"></ai-guide>
43
+
44
+ <!-- <FileType :urls="urls" :color="black"></FileType>-->
45
+ <!-- <FileType :urls="urls" :color="black"></FileType>
46
+ <chat-content :messageList="messageList"></chat-content>-->
47
+ </div>
48
+ </template>
49
+ <script>
50
+ // import TextMessage from '@/components/message/TextMessage'
51
+
52
+ /*import FormTemplate from "@/components/formTemplate";
53
+ import TextMessage from "@/components/message/TextMessage";*/
54
+
55
+ import FormTemplate from '@/components/formTemplate'
56
+ // import AnswerRadio from './answerRadio'
57
+ // import TicketMessage from './message/TicketMessage'
58
+ /*import VoiceComponent from "./voiceComponent";*/
59
+ // import AssociationIntention from './associationIntention'
60
+ // import ActionSatisfaction from './actionSatisfaction'
61
+ // import MsgLoading from './msgLoading'
62
+ // import LoadingProcess from './loadingProcess'
63
+ // import BotActionSatisfactor from './botActionSatisfactor'
64
+ // import AnswerDissatisfaction from './answerDissatisfaction'
65
+ // import ActionSendToBot from './actionSendToBot'
66
+ // import VoiceCompontent from './voiceComponent'
67
+ // import AsserDeatils from './assetDetails.vue'
68
+ /* import TicketMessage from "@/components/message/TicketMessage";
69
+ import TicketMessage from "@/components/message/TicketMessage";
70
+ import TextMessage from "@/components/message/TextMessage";
71
+ import FeedBack from "@/components/feedBack";*/
72
+ // iframe 弹窗组件测试
73
+ /*import ActionAlert from "@/components/message/ActionAlertIframe";*/
74
+ // 智能引导组件
75
+ import AiGuide from "@/components/AiGuide";
76
+ /*import FileType from "@/components/FileType";
77
+ import ChatContent from "./chatContent";*/
78
+ // import FeedBack from '@/components/feedBack'
79
+ export default {
80
+ name: 'ConversationContainer',
81
+ components: {
82
+ // ActionSendToBot,
83
+ // AnswerDissatisfaction,
84
+ // BotActionSatisfactor,
85
+ // LoadingProcess,
86
+ // MsgLoading,
87
+ // ActionSatisfaction,
88
+ // AssociationIntention,
89
+ /* VoiceComponent,*/
90
+ // TicketMessage,
91
+ // AsserDeatils,
92
+ // AnswerRadio,
93
+ FormTemplate,
94
+ // TextMessage,
95
+ // FeedBack,
96
+ // VoiceCompontent,
97
+ AiGuide
98
+ // FormTemplate,
99
+ },
100
+ props: {
101
+ messages: Array
102
+ },
103
+ data() {
104
+ return {
105
+ black:'',
106
+ ActionAiGuideObj: {
107
+ // 智能引导
108
+ type: "answer_intellect_guide",
109
+ conditionList: [],
110
+ content: {
111
+ typesetting: "horizontal", // 排版方式 vertical 竖向 horizontal 横向
112
+ description: "", // 描述
113
+ descriptionVisible: true, // 是否展示描述
114
+ typesVisible: true, // 是否展示分类信息
115
+ groupVisible: true, // 是否分组展示
116
+ groupNumber: 5, // 每组展示数量
117
+ options: [
118
+ {
119
+ name: '常见问题常见问题常见问题常见问题常见问题常见问题常见问题常见问题',
120
+ recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
121
+ recommendIntentList: [{ questionName: "打印机1", intentId: 11 },], // recommendType = 0
122
+ highFrequency: { // recommendType = 1
123
+ rang: [], // 推荐范围
124
+ number: 20, // 最多推荐问题数
125
+ question: [],
126
+ },
127
+ intelligenceRecommend: { // recommendType = 2
128
+ recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
129
+ rang: [], // 推荐范围
130
+ number: 20, // 最多推荐问题数
131
+ question: [],
132
+ },
133
+ types: [
134
+ {
135
+ name: "常见问题常见问题常见问题常见问题常见问题常见问题常见问题常见问题",
136
+ recommendType: 1, // 0 关联意图 1 高频推荐意图 2 智能推荐
137
+ recommendIntentList: [
138
+ { questionName: "常见问题常见问题常见问题常见问题常见问题常见问题常见问题常见问题", intentId: 11 },
139
+ { questionName: "打印机2", intentId: 11 },
140
+ { questionName: "打印机3", intentId: 11 },
141
+ { questionName: "打印机4", intentId: 11 },
142
+ { questionName: "打印机5", intentId: 11 },
143
+ { questionName: "打印机6", intentId: 11 },
144
+ { questionName: "打印机7", intentId: 11 },
145
+ { questionName: "打印机8", intentId: 11 },
146
+ ], // recommendType = 0
147
+ highFrequency: { // recommendType = 1
148
+ rang: [], // 推荐范围
149
+ number: 20, // 最多推荐问题数
150
+ question: [
151
+ { exampleQuestion: "常见问题常见问题常见问题常见问题常见问题常见问题常见问题常见问题", intentId: 11 },
152
+ { exampleQuestion: "打印机2", intentId: 11 },
153
+ { exampleQuestion: "打印机3", intentId: 11 },
154
+ { exampleQuestion: "打印机4", intentId: 11 },
155
+ { exampleQuestion: "打印机5", intentId: 11 },
156
+ { exampleQuestion: "打印机6", intentId: 11 },
157
+ { exampleQuestion: "打印机7", intentId: 11 },
158
+ ],
159
+ },
160
+ intelligenceRecommend: { // recommendType = 2
161
+ recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
162
+ rang: [], // 推荐范围
163
+ number: 20, // 最多推荐问题数
164
+ question: [],
165
+ },
166
+ },
167
+ {
168
+ name: "打印机问题2",
169
+ recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
170
+ recommendIntentList: [{ questionName: "打印机", intentId: 11 }], // recommendType = 0
171
+ highFrequency: { // recommendType = 1
172
+ rang: [], // 推荐范围
173
+ number: 20, // 最多推荐问题数
174
+ question: [],
175
+ },
176
+ intelligenceRecommend: { // recommendType = 2
177
+ recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
178
+ rang: [], // 推荐范围
179
+ number: 20, // 最多推荐问题数
180
+ question: [],
181
+ },
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ name: '常见问题2',
187
+ recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
188
+ recommendIntentList: [{ questionName: "打印机", intentId: 11 }], // recommendType = 0
189
+ highFrequency: { // recommendType = 1
190
+ rang: [], // 推荐范围
191
+ number: 20, // 最多推荐问题数
192
+ question: [],
193
+ },
194
+ intelligenceRecommend: { // recommendType = 2
195
+ recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
196
+ rang: [], // 推荐范围
197
+ number: 20, // 最多推荐问题数
198
+ question: [],
199
+ },
200
+ types: [
201
+ // {
202
+ // name: "打印机问题2",
203
+ // recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
204
+ // recommendIntentList: [{ questionName: "打印机", intentId: 11 }], // recommendType = 0
205
+ // highFrequency: { // recommendType = 1
206
+ // rang: [], // 推荐范围
207
+ // number: 20, // 最多推荐问题数
208
+ // question: [],
209
+ // },
210
+ // intelligenceRecommend: { // recommendType = 2
211
+ // recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
212
+ // rang: [], // 推荐范围
213
+ // number: 20, // 最多推荐问题数
214
+ // question: [],
215
+ // },
216
+ // },
217
+ // {
218
+ // name: "打印机问题3",
219
+ // recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
220
+ // recommendIntentList: [{ questionName: "打印机", intentId: 11 }], // recommendType = 0
221
+ // highFrequency: { // recommendType = 1
222
+ // rang: [], // 推荐范围
223
+ // number: 20, // 最多推荐问题数
224
+ // question: [],
225
+ // },
226
+ // intelligenceRecommend: { // recommendType = 2
227
+ // recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
228
+ // rang: [], // 推荐范围
229
+ // number: 20, // 最多推荐问题数
230
+ // question: [],
231
+ // },
232
+ // }
233
+ ]
234
+ }
235
+ ], // 分类和意图数组 二维数组
236
+ },
237
+ },
238
+ // 弹窗组件模拟数据
239
+ actionAlertIframeObj: {
240
+ iframeId: 'iframeId999999998',
241
+ template: 'https://www.baidu.com/?name=5555555',
242
+ description: '描述',
243
+ height: 550,
244
+ width: 300,
245
+ scrolling: 'yes',
246
+ sandbox: [
247
+ '预留',
248
+ '启用一系列对 <iframe> 中内容的额外限制',
249
+ '参考 https://www.w3school.com.cn/tags/att_iframe_sandbox.asp'
250
+ ],
251
+ frameborder: '0/1(是否显示框架周围的边框)',
252
+ displayStyle: 'iframe 样式(点击弹出/嵌入iframe 字符串类型后端未做限制)'
253
+ },
254
+ contents: {
255
+ multiple: true,
256
+ cards: [
257
+ {
258
+ content: {
259
+ htmlList: [
260
+ {
261
+ type: 'IMAGE',
262
+ src:
263
+ 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/02/03/03/11/90a549ad-5118-4bbd-b02f-88fa39a7d9e7/src=http___wx1.sinaimg.cn_mw690_0075bygJly1gg7223fbsnj31ba1yx4kl.jpg&refer=http___wx1.sinaimg.jfif'
264
+
265
+ /*list: [
266
+ {
267
+ type:'IMAGE',
268
+ src:'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/02/03/02/58/0d04a01a-5b57-439f-82f8-2c5dfba06fc5/5c468a64f152b1.jpg'
269
+ },
270
+ ],*/
271
+ },
272
+ { type: 'SINGLE', list: ['<p>aaaaaaaaaa</p>'] },
273
+ { type: 'SINGLE', list: ['<p>北京首都国际机场</p>'] },
274
+ { type: 'SINGLE', list: ['<p>北京首都国际机场啦啦啦啦</p>'] },
275
+ { type: 'SINGLE', list: ['<p>7:00</p>'] }
276
+ ],
277
+ buttonList: [
278
+ { name: '我是标签1', scope: '', test: '' },
279
+ { name: '我是标签2' }
280
+ ]
281
+ }
282
+ },
283
+ {
284
+ content: {
285
+ htmlList: [
286
+ { type: 'SINGLE', list: ['<p>aaaaa</p>'] },
287
+ {
288
+ type: 'DOUBLE',
289
+ list: [
290
+ '<p>测试测试测试测试测试测试测试</p>',
291
+ '<div>bbbbb</div>'
292
+ ]
293
+ },
294
+ {
295
+ type: 'TRIPLE',
296
+ list: ['<p>7:00</p>', '<div></div>', '<p>ccccc</p>']
297
+ },
298
+ {
299
+ type: 'TRIPLE',
300
+ list: ['<p>7:00</p>', '<div>bbbbb</div>', '<p>12:00</p>']
301
+ }
302
+ ],
303
+ buttonList: [{ name: '我是标签1', scope: '', test: '' }]
304
+ }
305
+ },
306
+ {
307
+ content: {
308
+ htmlList: [
309
+ { type: 'SINGLE', list: ['<p>邓伦李沁的背景图片</p>'] },
310
+ { type: 'SINGLE', list: ['<p>男生藏快递向求婚被他人错拆</p>'] },
311
+ { type: 'SINGLE', list: ['<p>aaaaa</p>'] },
312
+ { type: 'SINGLE', list: ['<p>aaaaa</p>'] }
313
+ ],
314
+ buttonList: [{ name: '我是标签1' }]
315
+ }
316
+ }
317
+ ],
318
+ apiKey: '123456789'
319
+ },
320
+ formList: {
321
+ formActionId: '',
322
+ form: {
323
+ formFieldRelation: [
324
+ {
325
+ display: true,
326
+ paramName: 'miaoshu',
327
+ formField: {
328
+ deleted: false,
329
+ createTime: '2020-12-08T08:08:03.000+0000',
330
+ name: '',
331
+ description: '',
332
+ updateTime: '2020-12-08T08:10:41.000+0000',
333
+ id: 1112,
334
+ lastOperatorId: 21,
335
+ mainId: 'e2f80aecaf7c11eabdcd506b4b2f3ac8',
336
+ type: 'EXPLANATION',
337
+ extInfo: {
338
+ descriptionText: '我是解释说明文案'
339
+ }
340
+ },
341
+ required: false,
342
+ fieldId: 1112
343
+ },
344
+ {
345
+ display: true,
346
+ paramName: 'danxuan',
347
+ value: '',
348
+ formField: {
349
+ deleted: false,
350
+ createTime: '2020-12-08T08:08:03.000+0000',
351
+ name: '单选1',
352
+ description: '',
353
+ updateTime: '2020-12-08T08:10:41.000+0000',
354
+ id: 111,
355
+ lastOperatorId: 21,
356
+ mainId: 'e2f80aecaf7c11eabdcd506b4b2f3acc',
357
+ type: 'RADIO',
358
+ extInfo: {
359
+ WebHookParameter: [],
360
+ value: [],
361
+ option: [
362
+ { _default: 'true', label: '1', value: '1' },
363
+ { _default: 'false', label: '2', value: '选项二' },
364
+ { _default: 'false', label: '3', value: '3' }
365
+ ]
366
+ }
367
+ },
368
+ required: false,
369
+ fieldId: 111
370
+ },
371
+ {
372
+ display: true,
373
+ paramName: 'fujian',
374
+ formField: {
375
+ deleted: false,
376
+ createTime: '2020-12-08T08:08:03.000+0000',
377
+ name: '123',
378
+ description: '',
379
+ updateTime: '2020-12-08T08:10:41.000+0000',
380
+ id: 1117,
381
+ lastOperatorId: 78,
382
+ mainId: 'e2f80aecaf7c11eabdcd506b4b2f3accJ',
383
+ type: 'FILE',
384
+ extInfo: {
385
+ fileLimit: 'more',
386
+ limitNum: '3'
387
+ }
388
+ },
389
+ required: true,
390
+ fieldId: 1117,
391
+ value: [
392
+ {
393
+ url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
394
+ }
395
+ ]
396
+ },
397
+ {
398
+ display: true,
399
+ paramName: 'fuxuan',
400
+ value: [],
401
+ formField: {
402
+ deleted: false,
403
+ createTime: '2020-12-08T08:08:15.000+0000',
404
+ name: '复选1',
405
+ description: '',
406
+ updateTime: '2020-12-08T08:10:49.000+0000',
407
+ id: 112,
408
+ lastOperatorId: 21,
409
+ mainId: 'e2f80aecaf7c11eabdcd506b4b2f3accd',
410
+ type: 'CHECKBOX',
411
+ extInfo: {
412
+ WebHookParameter: [],
413
+ value: [],
414
+ option: [
415
+ { _default: 'false', label: '1', value: '' },
416
+ {
417
+ _default: 'false',
418
+ label: '2',
419
+ value: '选项二'
420
+ },
421
+ { _default: 'false', label: '3', value: '' }
422
+ ]
423
+ }
424
+ },
425
+ required: true,
426
+ fieldId: 112
427
+ },
428
+ {
429
+ display: true,
430
+ paramName: 'xiala',
431
+ value: 'MIDDLE',
432
+ formField: {
433
+ deleted: false,
434
+ createTime: '2020-12-08T08:08:27.000+0000',
435
+ name: '下拉1',
436
+ description: '',
437
+ updateTime: '2020-12-08T08:10:56.000+0000',
438
+ id: 113,
439
+ lastOperatorId: 21,
440
+ mainId: 'e2f80aecaf7c11eabdcd506b4b2f3accdd',
441
+ type: 'SELECT',
442
+ extInfo: {
443
+ WebHookParameter: [],
444
+ value: [],
445
+ option: [
446
+ { _default: 'false', label: '紧急', value: 'URGENT' },
447
+ {
448
+ _default: 'false',
449
+ label: '高',
450
+ value: 'HIGH'
451
+ },
452
+ { _default: 'false', label: '中', value: 'MIDDLE' },
453
+ { _default: 'false', label: '12', value: '12' }
454
+ ]
455
+ }
456
+ },
457
+ required: false,
458
+ fieldId: 113
459
+ },
460
+ {
461
+ display: true,
462
+ paramName: 'hhh',
463
+ value: [
464
+ {
465
+ url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
466
+ },
467
+ {
468
+ url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
469
+ }
470
+ ],
471
+ formField: {
472
+ deleted: false,
473
+ createTime: '2020-12-08T08:08:03.000+0000',
474
+ name: '345',
475
+ description: '',
476
+ updateTime: '2020-12-08T08:10:41.000+0000',
477
+ id: 222222,
478
+ lastOperatorId: 78,
479
+ mainId: 'e2f80aecaf7c11eabdcd506b4b2f3accJ',
480
+ type: 'FILE',
481
+ extInfo: {
482
+ fileLimit: 'more'
483
+ }
484
+ },
485
+ required: false,
486
+ fieldId: 222222
487
+ }
488
+ ]
489
+ }
490
+ },
491
+ formList2: {
492
+ formActionId: '11',
493
+ "form":{
494
+ "formFieldRelation": [
495
+ {
496
+ "display": true,
497
+ "paramName": "description",
498
+ "value": "",
499
+ "formField": {
500
+ "workOrderFieldId": "cf6dcae9907f410a9fb20838372d94a3",
501
+ "name": "问题描述",
502
+ "type": "TEXTAREA",
503
+ "extInfo": {
504
+ "visibleWithoutPermission": true,
505
+ "isDelete": false,
506
+ "autoInput": {
507
+ "enable": false,
508
+ "rule": {
509
+ "handler": "",
510
+ "exp": "",
511
+ "type": "reg"
512
+ },
513
+ "source": [
514
+
515
+ ]
516
+ },
517
+ "range": {
518
+ "start": "",
519
+ "end": ""
520
+ },
521
+ "disabled": true,
522
+ "placeholder": "故障描述"
523
+ }
524
+ },
525
+ "required": true,
526
+ "fieldId": "workorder_description"
527
+ },
528
+ {
529
+ "display": false,
530
+ "paramName": "priority",
531
+ "value": "MIDDLE",
532
+ "formField": {
533
+ "workOrderFieldId": "c2b3aa60dc62454585f35c9298f8f742",
534
+ "name": "优先级",
535
+ "type": "SELECT",
536
+ "extInfo": {
537
+ "option": [
538
+ {
539
+ "label": "紧急",
540
+ "value": "URGENT"
541
+ },
542
+ {
543
+ "label": "高",
544
+ "value": "HIGH"
545
+ },
546
+ {
547
+ "label": "中",
548
+ "value": "MIDDLE"
549
+ },
550
+ {
551
+ "label": "低",
552
+ "value": "LOW"
553
+ }
554
+ ]
555
+ }
556
+ },
557
+ "required": true,
558
+ "fieldId": "workorder_priority"
559
+ },
560
+ {
561
+ "display": false,
562
+ "paramName": "clientId",
563
+ "value": "",
564
+ "formField": {
565
+ "workOrderFieldId": "",
566
+ "name": "客户",
567
+ "type": "SELECT",
568
+ "extInfo": {
569
+ "option": [
570
+ {
571
+ "label": "woWeMoBwAAuVBh99lkM5EeUzFn47YI-Q",
572
+ "value": "63082e3df82611324e0a2d6d"
573
+ },
574
+ {
575
+ "label": "woWeMoBwAA-zPwE_r9SW1g3Z_rNOPpbw",
576
+ "value": "6344e433614f1e553d2df727"
577
+ }
578
+ ]
579
+ }
580
+ },
581
+ "required": false,
582
+ "fieldId": "workorder_clientId"
583
+ },
584
+ {
585
+ "display": false,
586
+ "paramName": "statusId",
587
+ "value": "63072fa308dabd41ab806ee5",
588
+ "formField": {
589
+ "workOrderFieldId": "164c56671b714a90b556ef324cad81ab",
590
+ "name": "状态",
591
+ "type": "SELECT",
592
+ "extInfo": {
593
+ "option": [
594
+ {
595
+ "label": "新建",
596
+ "value": "63072fa308dabd41ab806ee5"
597
+ },
598
+ {
599
+ "label": "解决中",
600
+ "value": "63072fa308dabd41ab806ee6"
601
+ },
602
+ {
603
+ "label": "已解决",
604
+ "value": "63072fa308dabd41ab806ee7"
605
+ },
606
+ {
607
+ "label": "已关闭",
608
+ "value": "63072fa308dabd41ab806ee8"
609
+ }
610
+ ]
611
+ }
612
+ },
613
+ "required": true,
614
+ "fieldId": "workorder_statusId"
615
+ },
616
+ {
617
+ "display": true,
618
+ "paramName": "fieldValue.ba1ad3b6a9224f82aca2669e25a7f53b",
619
+ "value": "",
620
+ "formField": {
621
+ "workOrderFieldId": "ba1ad3b6a9224f82aca2669e25a7f53b",
622
+ "name": "归属地",
623
+ "type": "RADIO",
624
+ "extInfo": {
625
+ "isDelete": true,
626
+ "autoInput": {
627
+ "enable": false,
628
+ "rule": {
629
+ "handler": "",
630
+ "type": "dict",
631
+ "exp": ""
632
+ },
633
+ "source": [
634
+
635
+ ]
636
+ },
637
+ "options": [
638
+ {
639
+ "_default": "false",
640
+ "relationTags": [
641
+ {
642
+ "name": "楼层",
643
+ "id": "10557da84231430aa1bb866adfbc7a9d"
644
+ },
645
+ {
646
+ "name": "楼层方位",
647
+ "id": "df603a2028c64403864fe86992b58fc6"
648
+ },
649
+ {
650
+ "name": "维修类别",
651
+ "id": "73ea91093fbd4421ae4af006ebe01cc2"
652
+ }
653
+ ],
654
+ "label": "丽水总部大楼",
655
+ "relationItems": [
656
+ "10557da84231430aa1bb866adfbc7a9d",
657
+ "df603a2028c64403864fe86992b58fc6",
658
+ "73ea91093fbd4421ae4af006ebe01cc2"
659
+ ],
660
+ "value": "丽水总部大楼",
661
+ "requiredItems": [
662
+ "10557da84231430aa1bb866adfbc7a9d",
663
+ "df603a2028c64403864fe86992b58fc6",
664
+ "73ea91093fbd4421ae4af006ebe01cc2"
665
+ ]
666
+ },
667
+ {
668
+ "_default": "false",
669
+ "relationTags": [
670
+ {
671
+ "name": "维修类别",
672
+ "id": "22f44fe2fe9f418db773e0ec5e24074c"
673
+ }
674
+ ],
675
+ "label": "安徽六安",
676
+ "relationItems": [
677
+ "22f44fe2fe9f418db773e0ec5e24074c"
678
+ ],
679
+ "value": "安徽六安",
680
+ "requiredItems": [
681
+ "22f44fe2fe9f418db773e0ec5e24074c"
682
+ ]
683
+ }
684
+ ],
685
+ "range": {
686
+ "start": "",
687
+ "end": ""
688
+ },
689
+ "placeholder": "请选择",
690
+ "associatedAction": [
691
+ "relationItems",
692
+ "requiredItems"
693
+ ],
694
+ "dependent": {
695
+
696
+ }
697
+ }
698
+ },
699
+ "required": false,
700
+ "fieldId": "ba1ad3b6a9224f82aca2669e25a7f53b"
701
+ },
702
+ {
703
+ "display": true,
704
+ "paramName": "fieldValue.10557da84231430aa1bb866adfbc7a9d",
705
+ "value": "",
706
+ "formField": {
707
+ "workOrderFieldId": "10557da84231430aa1bb866adfbc7a9d",
708
+ "name": "楼层",
709
+ "type": "INPUT",
710
+ "extInfo": {
711
+ "unit": "",
712
+ "isDelete": true,
713
+ "autoInput": {
714
+ "enable": false,
715
+ "rule": {
716
+ "handler": "",
717
+ "type": "reg",
718
+ "exp": ""
719
+ },
720
+ "source": [
721
+
722
+ ]
723
+ },
724
+ "requiredDependentFieldId": {
725
+ "ba1ad3b6a9224f82aca2669e25a7f53b": [
726
+ "丽水总部大楼"
727
+ ]
728
+ },
729
+ "range": {
730
+ "start": "",
731
+ "end": ""
732
+ },
733
+ "inputType": "TEXT",
734
+ "dependentFieldId": {
735
+ "ba1ad3b6a9224f82aca2669e25a7f53b": [
736
+ "丽水总部大楼"
737
+ ]
738
+ },
739
+ "placeholder": "请输入",
740
+ "maxNum": 100
741
+ }
742
+ },
743
+ "required": false,
744
+ "fieldId": "10557da84231430aa1bb866adfbc7a9d"
745
+ },
746
+ {
747
+ "display": true,
748
+ "paramName": "fieldValue.df603a2028c64403864fe86992b58fc6",
749
+ "value": "",
750
+ "formField": {
751
+ "workOrderFieldId": "df603a2028c64403864fe86992b58fc6",
752
+ "name": "楼层方位",
753
+ "type": "RADIO",
754
+ "extInfo": {
755
+ "isDelete": true,
756
+ "autoInput": {
757
+ "enable": false,
758
+ "rule": {
759
+ "handler": "",
760
+ "type": "dict",
761
+ "exp": ""
762
+ },
763
+ "source": [
764
+
765
+ ]
766
+ },
767
+ "options": [
768
+ {
769
+ "_default": false,
770
+ "label": "东面",
771
+ "relationItems": [
772
+
773
+ ],
774
+ "value": "东面",
775
+ "requiredItems": [
776
+
777
+ ]
778
+ },
779
+ {
780
+ "_default": false,
781
+ "label": "南面",
782
+ "relationItems": [
783
+
784
+ ],
785
+ "value": "南面",
786
+ "requiredItems": [
787
+
788
+ ]
789
+ },
790
+ {
791
+ "_default": false,
792
+ "label": "西面",
793
+ "relationItems": [
794
+
795
+ ],
796
+ "value": "西面",
797
+ "requiredItems": [
798
+
799
+ ]
800
+ },
801
+ {
802
+ "_default": "false",
803
+ "label": "北面",
804
+ "value": "北面"
805
+ }
806
+ ],
807
+ "requiredDependentFieldId": {
808
+ "ba1ad3b6a9224f82aca2669e25a7f53b": [
809
+ "丽水总部大楼"
810
+ ]
811
+ },
812
+ "range": {
813
+ "start": "",
814
+ "end": ""
815
+ },
816
+ "dependentFieldId": {
817
+ "ba1ad3b6a9224f82aca2669e25a7f53b": [
818
+ "丽水总部大楼"
819
+ ]
820
+ },
821
+ "placeholder": "请选择",
822
+ "dependent": {
823
+
824
+ }
825
+ }
826
+ },
827
+ "required": false,
828
+ "fieldId": "df603a2028c64403864fe86992b58fc6"
829
+ },
830
+ {
831
+ "display": true,
832
+ "paramName": "fieldValue.73ea91093fbd4421ae4af006ebe01cc2",
833
+ "value": [
834
+
835
+ ],
836
+ "formField": {
837
+ "workOrderFieldId": "73ea91093fbd4421ae4af006ebe01cc2",
838
+ "name": "维修类别",
839
+ "type": "CASCADER",
840
+ "extInfo": {
841
+ "isDelete": true,
842
+ "autoInput": {
843
+ "enable": false,
844
+ "rule": {
845
+ "handler": "",
846
+ "type": "dict",
847
+ "exp": ""
848
+ },
849
+ "source": [
850
+
851
+ ]
852
+ },
853
+ "requiredDependentFieldId": {
854
+ "ba1ad3b6a9224f82aca2669e25a7f53b": [
855
+ "丽水总部大楼"
856
+ ]
857
+ },
858
+ "range": {
859
+ "start": "",
860
+ "end": ""
861
+ },
862
+ "selectType": "单选",
863
+ "dependentFieldId": {
864
+ "ba1ad3b6a9224f82aca2669e25a7f53b": [
865
+ "丽水总部大楼"
866
+ ]
867
+ },
868
+ "placeholder": "请选择",
869
+ "dependent": {
870
+
871
+ },
872
+ "fieldValue": [
873
+
874
+ ],
875
+ "cascadeDown": {
876
+ "options": [
877
+ {
878
+ "_default": false,
879
+ "children": [
880
+ {
881
+ "_default": false,
882
+ "children": [
883
+ {
884
+ "_default": false,
885
+ "label": "开机显示屏不亮",
886
+ "relationItems": [
887
+
888
+ ],
889
+ "value": "开机显示屏不亮"
890
+ },
891
+ {
892
+ "_default": false,
893
+ "label": "其他",
894
+ "relationItems": [
895
+
896
+ ],
897
+ "value": "其他"
898
+ }
899
+ ],
900
+ "label": "硬件类",
901
+ "relationItems": [
902
+
903
+ ],
904
+ "value": "硬件类"
905
+ },
906
+ {
907
+ "_default": false,
908
+ "children": [
909
+ {
910
+ "_default": false,
911
+ "label": "公司业务系统打不开",
912
+ "relationItems": [
913
+
914
+ ],
915
+ "value": "公司业务系统打不开"
916
+ },
917
+ {
918
+ "_default": false,
919
+ "label": "其他",
920
+ "relationItems": [
921
+
922
+ ],
923
+ "value": "其他"
924
+ }
925
+ ],
926
+ "label": "软件类",
927
+ "relationItems": [
928
+
929
+ ],
930
+ "value": "软件类"
931
+ }
932
+ ],
933
+ "label": "计算机电子相关类(服饰板块)",
934
+ "relationItems": [
935
+
936
+ ],
937
+ "value": "计算机电子相关类(服饰板块)",
938
+ "requiredItems": [
939
+
940
+ ]
941
+ },
942
+ {
943
+ "_default": false,
944
+ "children": [
945
+ {
946
+ "_default": false,
947
+ "children": [
948
+ {
949
+ "_default": false,
950
+ "label": "水管问题",
951
+ "relationItems": [
952
+
953
+ ],
954
+ "value": "水管问题"
955
+ },
956
+ {
957
+ "_default": false,
958
+ "label": "电灯不亮",
959
+ "relationItems": [
960
+
961
+ ],
962
+ "value": "电灯不亮"
963
+ }
964
+ ],
965
+ "label": "生活类",
966
+ "relationItems": [
967
+
968
+ ],
969
+ "value": "生活类"
970
+ },
971
+ {
972
+ "_default": false,
973
+ "children": [
974
+ {
975
+ "_default": false,
976
+ "label": "门窗坏",
977
+ "relationItems": [
978
+
979
+ ],
980
+ "value": "门窗坏"
981
+ },
982
+ {
983
+ "_default": false,
984
+ "label": "桌子坏",
985
+ "relationItems": [
986
+
987
+ ],
988
+ "value": "桌子坏"
989
+ }
990
+ ],
991
+ "label": "桌椅类",
992
+ "relationItems": [
993
+
994
+ ],
995
+ "value": "桌椅类"
996
+ }
997
+ ],
998
+ "label": "水电生活办公类",
999
+ "relationItems": [
1000
+
1001
+ ],
1002
+ "value": "水电生活办公类"
1003
+ }
1004
+ ]
1005
+ }
1006
+ }
1007
+ },
1008
+ "required": false,
1009
+ "fieldId": "73ea91093fbd4421ae4af006ebe01cc2"
1010
+ },
1011
+ {
1012
+ "display": true,
1013
+ "paramName": "fieldValue.22f44fe2fe9f418db773e0ec5e24074c",
1014
+ "value": [
1015
+ ""
1016
+ ],
1017
+ "formField": {
1018
+ "workOrderFieldId": "22f44fe2fe9f418db773e0ec5e24074c",
1019
+ "name": "维修类别",
1020
+ "type": "CASCADER",
1021
+ "extInfo": {
1022
+ "isDelete": true,
1023
+ "autoInput": {
1024
+ "enable": false,
1025
+ "rule": {
1026
+ "handler": "",
1027
+ "type": "dict",
1028
+ "exp": ""
1029
+ },
1030
+ "source": [
1031
+
1032
+ ]
1033
+ },
1034
+ "requiredDependentFieldId": {
1035
+ "ba1ad3b6a9224f82aca2669e25a7f53b": [
1036
+ "安徽六安"
1037
+ ]
1038
+ },
1039
+ "range": {
1040
+ "start": "",
1041
+ "end": ""
1042
+ },
1043
+ "selectType": "单选",
1044
+ "dependentFieldId": {
1045
+ "ba1ad3b6a9224f82aca2669e25a7f53b": [
1046
+ "安徽六安"
1047
+ ]
1048
+ },
1049
+ "placeholder": "请选择",
1050
+ "dependent": {
1051
+
1052
+ },
1053
+ "cascadeDown": {
1054
+ "options": [
1055
+ {
1056
+ "_default": false,
1057
+ "children": [
1058
+ {
1059
+ "_default": false,
1060
+ "children": [
1061
+ {
1062
+ "_default": false,
1063
+ "label": "软件问题",
1064
+ "relationItems": [
1065
+
1066
+ ],
1067
+ "value": "软件问题"
1068
+ },
1069
+ {
1070
+ "_default": false,
1071
+ "label": "电脑无法开机",
1072
+ "relationItems": [
1073
+
1074
+ ],
1075
+ "value": "电脑无法开机"
1076
+ }
1077
+ ],
1078
+ "label": "电脑故障",
1079
+ "relationItems": [
1080
+
1081
+ ],
1082
+ "value": "电脑故障"
1083
+ }
1084
+ ],
1085
+ "label": "IT类",
1086
+ "relationItems": [
1087
+
1088
+ ],
1089
+ "value": "IT类",
1090
+ "requiredItems": [
1091
+
1092
+ ]
1093
+ },
1094
+ {
1095
+ "_default": false,
1096
+ "children": [
1097
+ {
1098
+ "_default": false,
1099
+ "children": [
1100
+ {
1101
+ "_default": false,
1102
+ "label": "空调问题",
1103
+ "relationItems": [
1104
+
1105
+ ],
1106
+ "value": "空调问题"
1107
+ },
1108
+ {
1109
+ "_default": false,
1110
+ "label": "电灯问题",
1111
+ "relationItems": [
1112
+
1113
+ ],
1114
+ "value": "电灯问题"
1115
+ }
1116
+ ],
1117
+ "label": "生产类",
1118
+ "relationItems": [
1119
+
1120
+ ],
1121
+ "value": "生产类"
1122
+ },
1123
+ {
1124
+ "_default": false,
1125
+ "children": [
1126
+ {
1127
+ "_default": false,
1128
+ "label": "食堂设备问题",
1129
+ "relationItems": [
1130
+
1131
+ ],
1132
+ "value": "食堂设备问题"
1133
+ },
1134
+ {
1135
+ "_default": false,
1136
+ "label": "商铺设备问题",
1137
+ "relationItems": [
1138
+
1139
+ ],
1140
+ "value": "商铺设备问题"
1141
+ }
1142
+ ],
1143
+ "label": "生活类",
1144
+ "relationItems": [
1145
+
1146
+ ],
1147
+ "value": "生活类"
1148
+ }
1149
+ ],
1150
+ "label": "公用设备类",
1151
+ "relationItems": [
1152
+
1153
+ ],
1154
+ "value": "公用设备类"
1155
+ }
1156
+ ]
1157
+ }
1158
+ }
1159
+ },
1160
+ "required": false,
1161
+ "fieldId": "22f44fe2fe9f418db773e0ec5e24074c"
1162
+ },
1163
+ {
1164
+ "display": true,
1165
+ "paramName": "fieldValue.e90295e2c760460c95480ee61fe160ad",
1166
+ "value": "",
1167
+ "formField": {
1168
+ "workOrderFieldId": "e90295e2c760460c95480ee61fe160ad",
1169
+ "name": "聊天记录",
1170
+ "type": "CHAT_RECORD",
1171
+ "extInfo": {
1172
+ "visibleWithoutPermission": true,
1173
+ "isDelete": true,
1174
+ "autoInput": {
1175
+ "enable": false,
1176
+ "rule": {
1177
+ "handler": "",
1178
+ "exp": "",
1179
+ "type": "reg"
1180
+ },
1181
+ "source": [
1182
+
1183
+ ]
1184
+ },
1185
+ "range": {
1186
+ "start": "",
1187
+ "end": ""
1188
+ },
1189
+ "disabled": false
1190
+ }
1191
+ },
1192
+ "required": false,
1193
+ "fieldId": "e90295e2c760460c95480ee61fe160ad"
1194
+ }
1195
+ ]
1196
+ }
1197
+ },
1198
+ text: {
1199
+ template:
1200
+ '<p>开始时间&nbsp;<span class="ask-component-placeholder-container"><span class="ask-component-placeholder-span" data="${开始时间戳_秒}" type="INPUT">1607427268</span><i class="ask-component-placeholder-icon arsenal_icon arsenalbianji2" icon="arsenal_icon arsenalkebianji" editable="true" onclick="_askEditValue(this,this.previousElementSibling)"></i><br/></span>结束时间&nbsp;<span class="ask-component-placeholder-container"><span class="ask-component-placeholder-span" data="${结束时间戳_秒}" type="TIME_PICKER">1607772868</span><i class="ask-component-placeholder-icon arsenal_icon arsenalkebianji" icon="arsenal_icon arsenalkebianji" editable="true" onclick="_askEditValue(this,this.previousElementSibling)"></i></span></p>',
1201
+ goToAction: { value: '123' },
1202
+ apiKey: ''
1203
+ },
1204
+ rem: 'rem',
1205
+ feedBack: {
1206
+ positiveFeedback: { text: '有用有用有用有用' },
1207
+ negativeFeedback: { text: '无用无用无用无用' },
1208
+ feedbackActions: [],
1209
+ feedbackUid: ''
1210
+ },
1211
+ urls: [
1212
+ {
1213
+ status: 'success',
1214
+ name: 'portal.test.askbot.cn_20201214_153724.zip',
1215
+ size: 2077,
1216
+ percentage: 100,
1217
+ uid: 1609154083480,
1218
+ raw: { uid: 1609154083480 },
1219
+ response:
1220
+ 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1221
+ },
1222
+ {
1223
+ status: 'success',
1224
+ name: 'portal._153724.doc',
1225
+ size: 2077,
1226
+ percentage: 100,
1227
+ uid: 1609154083480,
1228
+ raw: { uid: 1609154083480 },
1229
+ response:
1230
+ 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1231
+ },
1232
+ {
1233
+ status: 'success',
1234
+ name: 'portal.test.askbot.cn_20201214_153724.xls',
1235
+ size: 2077,
1236
+ percentage: 100,
1237
+ uid: 1609154083480,
1238
+ raw: { uid: 1609154083480 },
1239
+ response:
1240
+ 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1241
+ },
1242
+ {
1243
+ status: 'success',
1244
+ name: 'portal.test.askbot.cn_20201214_153724.ppt',
1245
+ size: 2077,
1246
+ percentage: 100,
1247
+ uid: 1609154083480,
1248
+ raw: { uid: 1609154083480 },
1249
+ response:
1250
+ 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1251
+ },
1252
+ {
1253
+ status: 'success',
1254
+ name: 'portal.test.askbot.cn_20201214_153724.pdf',
1255
+ size: 2077,
1256
+ percentage: 100,
1257
+ uid: 1609154083480,
1258
+ raw: { uid: 1609154083480 },
1259
+ response:
1260
+ 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1261
+ },
1262
+ {
1263
+ status: 'success',
1264
+ name: 'portal.test.askbot.cn_20201214_153724.zip',
1265
+ size: 2077,
1266
+ percentage: 100,
1267
+ uid: 1609154083480,
1268
+ raw: { uid: 1609154083480 },
1269
+ response:
1270
+ 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2020/12/28/07/15/d4c7a970-037e-454a-9921-821c0e81a3c5.zip'
1271
+ }
1272
+ ],
1273
+ messageList: [
1274
+ {
1275
+ content:
1276
+ '您好,我是郑俊成的智能助理,请问您是为企业咨询还是个人兴趣?',
1277
+ speaker: 'bot',
1278
+ type: 'answer_text'
1279
+ },
1280
+ { content: '单位', speaker: 'user', type: 'answer_text' }
1281
+ ],
1282
+ answerMsg: {
1283
+ content: {
1284
+ description: '你好,我是点选',
1285
+ options: [
1286
+ {
1287
+ name: '跳转意图',
1288
+ scope: 'INTENT',
1289
+ value: '3535'
1290
+ }
1291
+ ]
1292
+ }
1293
+ },
1294
+ showLoad: false,
1295
+ videoUrl:
1296
+ 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/08/27/10/22/56fb13eb-b94a-45e8-b131-04531330cb2c/微信_20210719215122.mp4',
1297
+ processAction: [
1298
+ {
1299
+ content: {
1300
+ html:
1301
+ '<p style="line-height: 16px;"><img onclick=\'previewImage(this)\' src="https://test.open.guoranbot.com/UEditor/dialogs/attachment/fileTypeImages/icon_txt.gif"/><a style="font-size:12px; color:#0066cc;" href="https://static.guoranbot.com/ueditor/2022/03/11/c788d2d7fea04be680cc920e1f99db8e/分析报告 (1).xlsx" title="分析报告 (1).xlsx">分析报告 (1).xlsx</a></p><p><br/></p>',
1302
+ recommend: {
1303
+ description: '关联意图测试描述',
1304
+ list: [
1305
+ {
1306
+ id: '3539',
1307
+ text: '文本',
1308
+ type: 1
1309
+ },
1310
+ {
1311
+ id: '3540',
1312
+ text: '图片',
1313
+ type: 1
1314
+ }
1315
+ ],
1316
+ status: true
1317
+ }
1318
+ },
1319
+ type: 'answer_rich_text',
1320
+ id: '60df03aeeea6014311dc4285',
1321
+ intentId: 6064,
1322
+ recommend: {
1323
+ description: '关联意图测试描述',
1324
+ list: [
1325
+ {
1326
+ id: '3539',
1327
+ text: '文本',
1328
+ type: 1
1329
+ },
1330
+ {
1331
+ id: '3540',
1332
+ text: '图片',
1333
+ type: 1
1334
+ }
1335
+ ],
1336
+ status: true
1337
+ }
1338
+ },
1339
+
1340
+ {
1341
+ content: {
1342
+ url:
1343
+ 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/08/24/07/35/45c878fd-6a8e-40e2-b599-bdba8e17cf8a/微信图片_20210423113520.jpg?x-oss-process=image/auto-orient,1/quality,q_90/watermark,text_MjE=,color_cccccc,size_48,rotate_315,fill_1,x_10,y_10,t_0',
1344
+ html: '测试文本-关联推荐没有描述',
1345
+ recommend: {
1346
+ description: '',
1347
+ list: [
1348
+ {
1349
+ id: '3539',
1350
+ text: '文本',
1351
+ type: 1
1352
+ },
1353
+ {
1354
+ id: '3540',
1355
+ text: '图片',
1356
+ type: 1
1357
+ }
1358
+ ],
1359
+ status: true
1360
+ }
1361
+ },
1362
+ type: 'answer_image',
1363
+ id: '6124d9b1c12fa234e0b3ddc8',
1364
+ intentId: 6064,
1365
+ recommend: {
1366
+ description: '',
1367
+ list: [
1368
+ {
1369
+ id: '3539',
1370
+ text: '文本',
1371
+ type: 1
1372
+ },
1373
+ {
1374
+ id: '3540',
1375
+ text: '图片',
1376
+ type: 1
1377
+ }
1378
+ ],
1379
+ status: true
1380
+ }
1381
+ },
1382
+ {
1383
+ content: {
1384
+ url:
1385
+ 'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/08/24/07/35/41221223-c180-4f3f-bdc8-94875b693965/WeChat_20210719215122.mp4',
1386
+ videoFlag: false,
1387
+ videoUploadPercent: 0,
1388
+ isShowUploadVideo: true,
1389
+ recommend: {
1390
+ description: '关联意图测试描述',
1391
+ list: [
1392
+ {
1393
+ id: '3539',
1394
+ text: '文本',
1395
+ type: 1
1396
+ }
1397
+ ],
1398
+ status: true
1399
+ }
1400
+ },
1401
+ type: 'answer_video',
1402
+ id: '60df03aeeea6014311dc4285',
1403
+ intentId: 6064,
1404
+ recommend: {
1405
+ description: '关联意图测试描述',
1406
+ list: [
1407
+ {
1408
+ id: '3539',
1409
+ text: '文本',
1410
+ type: 1
1411
+ }
1412
+ ],
1413
+ status: true
1414
+ }
1415
+ }
1416
+ ],
1417
+ actionSatisfactions: [
1418
+ {
1419
+ content: {
1420
+ satisfactionDes: '满意度',
1421
+ satisfactoryAnswer: '',
1422
+ unsatisfiedAnswer: '',
1423
+ answerRadio: [
1424
+ {
1425
+ answer: '哦哦哦',
1426
+ name: '哈哈哈'
1427
+ }
1428
+ ]
1429
+ }
1430
+ }
1431
+ ],
1432
+ inLoading: true,
1433
+ dataNote: 0,
1434
+ timer: null,
1435
+ finished: false,
1436
+ botActionSatis: {
1437
+ content: {
1438
+ reply_text: '哈哈哈哈哈',
1439
+ reply_options: [
1440
+ {
1441
+ name: '暗示丢',
1442
+ answer: '暗示丢1504559775615045597756kjl',
1443
+ apiKey: ''
1444
+ },
1445
+ {
1446
+ name: '暗示丢2',
1447
+ answer: '暗示丢11504559775615045597756kjl',
1448
+ apiKey: ''
1449
+ }
1450
+ ]
1451
+ }
1452
+ },
1453
+ answerDiss: {
1454
+ content: {
1455
+ replyText: '哈哈哈哈哈',
1456
+ replyOptions: [
1457
+ {
1458
+ name: '暗示丢',
1459
+ answer: '暗示丢1504559775615045597756kjl',
1460
+ apiKey: ''
1461
+ },
1462
+ {
1463
+ name: '暗示丢2',
1464
+ answer: '暗示丢11504559775615045597756kjl',
1465
+ apiKey: ''
1466
+ }
1467
+ ]
1468
+ }
1469
+ },
1470
+ answerRadios: {
1471
+ content: {
1472
+ description: '请点击下方选项继续测试',
1473
+ options: [
1474
+ {
1475
+ name: '跳转节点1',
1476
+ scope: 'NODE',
1477
+ value: '60177b9470814d4ce924f1ed'
1478
+ },
1479
+ {
1480
+ name: '跳转意图',
1481
+ scope: 'INTENT',
1482
+ value: '3558'
1483
+ },
1484
+ {
1485
+ name: '跳转节点2',
1486
+ scope: 'NODE',
1487
+ value: '60af4505d0acd7017620c4f2'
1488
+ }
1489
+ ],
1490
+ recommend: {
1491
+ description: '',
1492
+ status: false,
1493
+ list: []
1494
+ }
1495
+ },
1496
+ type: 'answer_radio'
1497
+ },
1498
+ htmlContainer: '<input placeholder="请输入"></input>',
1499
+ isOpen: true
1500
+ }
1501
+ },
1502
+ methods: {
1503
+ submitClick(value) {
1504
+ console.log(value)
1505
+ },
1506
+ submitClicks(value) {
1507
+ console.log(value)
1508
+ },
1509
+ positiveFeedback(value1) {
1510
+ console.log(value1)
1511
+ },
1512
+ touchEnd(index) {
1513
+ console.log(index)
1514
+ },
1515
+ closeVoice() {
1516
+ console.debug('我是close事件')
1517
+ },
1518
+ },
1519
+ mounted() {
1520
+ this.timer = setInterval(() => {
1521
+ this.dataNote += 1
1522
+ console.debug('this.dataNote', this.dataNote)
1523
+ }, 1000)
1524
+
1525
+ setTimeout(() => {
1526
+ this.inLoading = true
1527
+ }, 2000)
1528
+ setTimeout(() => {
1529
+ this.finished = true
1530
+ this.dataNote = 10
1531
+ clearInterval(this.timer)
1532
+ }, 5000)
1533
+ },
1534
+ updated() {}
1535
+ }
1536
+ </script>
1537
+
1538
+ <!-- Add "scoped" attribute to limit CSS to this component only -->
1539
+ <style scoped lang="less">
1540
+ @import '../assets/less/converSationContainer/converSatonContainer';
1541
+ #conversation {
1542
+ background-color: #f5f7fb;
1543
+ }
1544
+ .img_div {
1545
+ position: relative;
1546
+ .mask {
1547
+ position: absolute;
1548
+ top: 0;
1549
+ right: 0;
1550
+ width: 100%;
1551
+ height: 100%;
1552
+ border-radius: 10px;
1553
+ }
1554
+ }
1555
+ </style>