askbot-dragon 1.4.53 → 1.4.56

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.4.53",
3
+ "version": "1.4.56",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -13,10 +13,23 @@
13
13
  </div>
14
14
  </div> -->
15
15
 
16
- <!-- <form-template
16
+ <!-- <form-template
17
17
  :formList="formList2"
18
18
  @submitClick="submitClick"
19
19
  ></form-template> -->
20
+ <form-template
21
+ :formList="formList"
22
+ @submitClick="submitClick"
23
+ ></form-template>
24
+ <!-- <form-template
25
+ :formList="formList3"
26
+ @submitClick="submitClick"
27
+ ></form-template>
28
+ <form-template
29
+ :formList="formList4"
30
+ @submitClick="submitClick"
31
+ ></form-template> -->
32
+ <text-message :text="text" @submitClick="submitClick"></text-message>
20
33
  <answer-docknowledge :isAskLightning="2" :msg="answerDocknowledge"></answer-docknowledge>
21
34
  <!-- <voice-component @closeVoice="closeVoice">
22
35
  <div slot="voiceTip">
@@ -55,7 +68,8 @@
55
68
  </div>
56
69
  </template>
57
70
  <script>
58
- // import TextMessage from '@/components/message/TextMessage'
71
+ import TextMessage from '@/components/message/TextMessage'
72
+ import FormTemplate from "@/components/formTemplate";
59
73
 
60
74
  /*import FormTemplate from "@/components/formTemplate";
61
75
  import TextMessage from "@/components/message/TextMessage";*/
@@ -102,13 +116,13 @@ export default {
102
116
  // AsserDeatils,
103
117
  AnswerRadio,
104
118
  // FormTemplate,
105
- // TextMessage,
119
+ TextMessage,
106
120
  // FeedBack,
107
121
  // VoiceCompontent,
108
122
  // AiGuide,
109
123
  AnswerVoice,
110
124
  // FormTemplate,
111
- // FormTemplate,
125
+ FormTemplate,
112
126
  // FileType,
113
127
  // ChatContent,
114
128
  AnswerDocknowledge,
@@ -396,6 +410,48 @@ export default {
396
410
  formActionId: '',
397
411
  form: {
398
412
  formFieldRelation: [
413
+ {
414
+ display: true,
415
+ paramName: 'miaoshu',
416
+ formField: {
417
+ deleted: false,
418
+ createTime: '2020-12-08T08:08:03.000+0000',
419
+ name: '',
420
+ description: '',
421
+ updateTime: '2020-12-08T08:10:41.000+0000',
422
+ id: 11133332,
423
+ lastOperatorId: 21,
424
+ mainId: 'e2f80aecaf7c11eabdcd506b4b2f3ac8',
425
+ type: 'TIME_PICKER',
426
+ extInfo: {
427
+ descriptionText: '我是解释说明文案'
428
+ }
429
+ },
430
+ required: false,
431
+ fieldId: 11133332,
432
+ value: "08:09"
433
+ },
434
+ {
435
+ display: true,
436
+ paramName: 'miaoshu',
437
+ formField: {
438
+ deleted: false,
439
+ createTime: '2020-12-08T08:08:03.000+0000',
440
+ name: '',
441
+ description: '',
442
+ updateTime: '2020-12-08T08:10:41.000+0000',
443
+ id: 11156562,
444
+ lastOperatorId: 21,
445
+ mainId: 'e2f80aecaf7c11eabdcd506b4b2f3ac8',
446
+ type: 'DATE_PICKER',
447
+ extInfo: {
448
+ descriptionText: '我是解释说明文案'
449
+ }
450
+ },
451
+ required: false,
452
+ fieldId: 11156562,
453
+ value: '2020-12-09'
454
+ },
399
455
  {
400
456
  display: true,
401
457
  paramName: 'miaoshu',
@@ -3767,8 +3823,7 @@ export default {
3767
3823
  processAction: [
3768
3824
  {
3769
3825
  content: {
3770
- html:
3771
- "<p>“富文本升级”可以包括以下技术方案:</p><ul><li class='rich-text-li'>1</li><li class='rich-text-li'>2</li><li class='rich-text-li'>3</li></ul><ol><li class='rich-text-li'>1</li><li class='rich-text-li'>2</li><li class='rich-text-li'>3</li></ol><h2>123</h2><h3>456</h3><h4>789</h4><p>1. 使用HTML5和CSS3实现<span class=\"text-huge\">更丰富的文字排版和样式功能;</span></p><p><a style='color: -webkit-link;text-decoration: underline;' href=\"12212121212\">2. 在富文本编辑器中支持在线协作、实时同步等功能</a>;</p><p>3. 将富文<span style=\"background-color:hsl(60,75%,60%);\">本采用JSON格式存储、传输,提高效率和稳定性;</span></p><p>4. 将富文本编辑器嵌入到移动端应用,实现移动<span style=\"color:hsl(0,75%,60%);\">端富文本编辑。</span></p><p>以上方案仅供参考,具体的“富文本升级”方案应根据实际需求和现有技术进行设计和选择。</p><figure class=\"image\"><img onclick='previewImage(this)' referrerpolicy='no-referrer' src=\"https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/2023/07/20/15/45/bc09b3eb2caf92ec72aaccccecb8c1da/c402.png\"></figure>",
3826
+ html: `<h2>啊</h2><h3>啊</h3><h4>啊</h4><p><strong>富文本是一种文件格式,</strong><span style="color:hsl(0,75%,60%);">它可以在文本中包含丰富的样式、</span><span style="background-color:hsl(90,75%,60%);">图像、超链接和其他多媒体元素。</span><i>富文本通常用于创建网页</i>、<a style='color: -webkit-link;text-decoration: underline;' href="https://www.askbot.cn">电子邮件</a>、报告和其他电子文档。它与普通文本不同,因为它可以包含格式化的字体、颜色、大小和其他样式。富文本还可以包含表、图、动画、视频和音频。</p><p>&nbsp;</p><ul><li class='rich-text-li'>1</li><li class='rich-text-li'>2</li><li class='rich-text-li'>3</li></ul><ol><li class='rich-text-li'>1</li><li class='rich-text-li'>2</li><li class='rich-text-li'>3</li></ol><p>&nbsp;</p><p><a style='color: -webkit-link;text-decoration: underline;' href="https://u9zkf6yo6j.feishu.cn/docs/doccnaI2zolU4Tr6J0f6WUHkEBh">全员工手册.txt</a></p><p><a class="ask-component-href" href="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/2023/07/24/15/45/2cc4741c774eb0e1629763f8408d34a0/滴滴出行行程报销单 (3).pdf" th:href="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/2023/07/24/15/45/2cc4741c774eb0e1629763f8408d34a0/滴滴出行行程报销单 (3).pdf" target="_blank">滴滴出行行程报销单 (3).pdf</a></p><figure class="image"><img onclick='previewImage(this)' referrerpolicy='no-referrer' src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/2023/07/21/10/49/5f5ab6b75e4961c0447987e6989e9763/微信图片_20230711185518.jpg"></figure><p>“富文本”是一种文本格式,允许在文本中插入图片、表格、链接、颜色等丰富的元素,使文本内容更加丰富多彩。在很多应用程序中都可以看到富文本的应用,比如邮件、社交媒体、博客等。富文本的优点是可以吸引读者的注意力并让文本内容更加易于理解和记忆。同时,富文本也可以提高文档制作的效率和质量。</p><figure class="image"><img onclick='previewImage(this)' referrerpolicy='no-referrer' src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/2023/07/21/10/49/385f5ab6b75e4961c0447987e6989e97/微信图片_20230711185518.jpg"></figure><p>&nbsp;</p>`,
3772
3827
  recommend: {
3773
3828
  description: '关联意图测试描述',
3774
3829
  list: [
@@ -243,12 +243,15 @@
243
243
  },
244
244
  //预览图片
245
245
  lookAttach(e){
246
+ console.log(246, e);
246
247
  /* eslint-disable */
247
248
  var reg = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/;
248
249
  /* eslint-enable*/
249
250
  if (e.target.localName == 'a'){
251
+ console.log(252);
250
252
  this.previewHref = e.target.href;
251
- if (this.previewHref.includes('https://www') || this.previewHref.includes('http://www') || this.previewHref.indexOf('https://static.guoranbot.com') == -1){
253
+ console.log(254, this.previewHref);
254
+ if (this.previewHref.includes('https://www') || this.previewHref.includes('http://www') || (this.previewHref.indexOf('https://static.guoranbot.com') == -1 && this.previewHref.indexOf('https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com'))){
252
255
  return
253
256
  } else {
254
257
  if (isMobile()){
@@ -1102,6 +1102,17 @@ export default {
1102
1102
  fileListView
1103
1103
  },
1104
1104
  mounted() {
1105
+
1106
+ if (this.formList.form.formFieldRelation && this.formList.form.formFieldRelation.length > 0) {
1107
+ this.formList.form.formFieldRelation.forEach(item => {
1108
+ if (item.formField.type === "TIME_PICKER") {
1109
+ if (item.value.length === 5 && item.value.split(":").length === 2) {
1110
+ console.log(1112, item.value);
1111
+ item.value = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + " " + item.value + ":00"
1112
+ }
1113
+ }
1114
+ })
1115
+ }
1105
1116
  if (this.mainId == '8b9bd566e3e64156ab764b19defc9d48' || this.mainId == '0b73521f96e4486aaf6be42932bd7b07'){
1106
1117
  this.ckeditor.editorConfig.toolbar = []
1107
1118
  }