askbot-dragon 1.5.98-beta → 1.6.11-beta

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.5.98-beta",
3
+ "version": "1.6.11-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -97,7 +97,7 @@ export default {
97
97
  console.log(97, 'window.history && window.history.pushState');
98
98
  window.onpopstate = function (e) {
99
99
  console.log(9999, 'window.onpopstate innner', e);
100
- if (!_that.showAskFullScreen) {
100
+ if (_that.showAskFullScreen) {
101
101
  window.history.go(1);
102
102
  }
103
103
  // window.history.pushState('forward', null, '');
@@ -38,6 +38,9 @@
38
38
  <div v-else class="alc-box-introduction">
39
39
  <img :src="item.expiredUrl" alt="" @click="lookAttach(item.url, item, $event)">
40
40
  </div>
41
+ <div v-if="(item.format == 'pptx' || item.format == 'ppt') && item.previewImage" class="alc-box-introduction-previewImage">
42
+ <img :src="item.previewImage" alt="" @click="lookAttach(item.url, item, $event)">
43
+ </div>
41
44
  <div class="alc-updateTime">
42
45
  <div v-show="docSource[item.source]" class="upload-source">
43
46
  {{docSource[item.source]}}
@@ -443,6 +446,25 @@ export default {
443
446
  cursor: pointer;
444
447
  }
445
448
  }
449
+ .alc-box-introduction-previewImage {
450
+ overflow: hidden;
451
+ text-overflow: ellipsis;
452
+ display: -webkit-box;
453
+ -webkit-line-clamp:3;
454
+ -webkit-box-orient:vertical;
455
+ margin-top: 10px;
456
+ color: #616161;
457
+ // font-size: 12px;
458
+ line-height: 24px;
459
+ text-align: left;
460
+ img {
461
+ max-width: 300px;
462
+ width: 100%;
463
+ max-height: 150px;
464
+ margin: 10px;
465
+ cursor: pointer;
466
+ }
467
+ }
446
468
  .alc-updateTime{
447
469
  display: flex;
448
470
  align-items: center;
@@ -13,14 +13,14 @@
13
13
  </div>
14
14
  </div> -->
15
15
 
16
- <form-template
16
+ <!-- <form-template
17
17
  :formList="formList2"
18
18
  @submitClick="submitClick"
19
- ></form-template>
20
- <form-template
19
+ ></form-template> -->
20
+ <!-- <form-template
21
21
  :formList="formList"
22
22
  @submitClick="submitClick"
23
- ></form-template>
23
+ ></form-template> -->
24
24
  <!-- <form-template
25
25
  :formList="formList3"
26
26
  @submitClick="submitClick"
@@ -29,9 +29,9 @@
29
29
  :formList="formList4"
30
30
  @submitClick="submitClick"
31
31
  ></form-template> -->
32
- <div style="max-width: 450px;overflow-x: auto;">
32
+ <!-- <div style="max-width: 450px;overflow-x: auto;">
33
33
  <action-alert :actionAlertIframe="actionAlertIframeObj" :phoneWidth100="true"></action-alert>
34
- </div>
34
+ </div> -->
35
35
 
36
36
  <text-message :text="text" @submitClick="submitClick"></text-message>
37
37
  <answer-docknowledge :isAskLightning="2" :msg="answerDocknowledge"></answer-docknowledge>
@@ -77,7 +77,7 @@
77
77
  </template>
78
78
  <script>
79
79
  import TextMessage from '@/components/message/TextMessage'
80
- import FormTemplate from "@/components/formTemplate";
80
+ // import FormTemplate from "@/components/formTemplate";
81
81
 
82
82
  /*import FormTemplate from "@/components/formTemplate";
83
83
  import TextMessage from "@/components/message/TextMessage";*/
@@ -100,7 +100,7 @@ import TextMessage from "@/components/message/TextMessage";
100
100
  import FeedBack from "@/components/feedBack";*/
101
101
  import TicketMessage from "@/components/message/TicketMessage";
102
102
  // iframe 弹窗组件测试
103
- import ActionAlert from "@/components/ActionAlertIframe";
103
+ // import ActionAlert from "@/components/ActionAlertIframe";
104
104
  // 智能引导组件
105
105
  import AiGuide from "@/components/AiGuide";
106
106
  import AnswerVoice from "@/components/AnswerVoice";
@@ -112,7 +112,7 @@ import AnswerDocknowledge from "./AnswerDocknowledge.vue";
112
112
  export default {
113
113
  name: 'ConversationContainer',
114
114
  components: {
115
- ActionAlert,
115
+ // ActionAlert,
116
116
  // ActionSendToBot,
117
117
  // AnswerDissatisfaction,
118
118
  // BotActionSatisfactor,
@@ -131,7 +131,7 @@ export default {
131
131
  AiGuide,
132
132
  AnswerVoice,
133
133
  // FormTemplate,
134
- FormTemplate,
134
+ // FormTemplate,
135
135
  // FileType,
136
136
  // ChatContent,
137
137
  AnswerDocknowledge,
@@ -189,50 +189,37 @@ export default {
189
189
  }
190
190
  },
191
191
  answerDocknowledge:
192
- // {"content":{"knowledgeId":"64915d6e098ec248701da267","actionType":"answer_doc_knowledge","text":"跳舞不仅要有实力,还要有好的穿搭,本文针对街舞爱好者提供了穿搭指南,给你带来灵感和帮助!","list":[{"tagIds":[],"format":"html","updateTime":"2023-06-20 16:03:58","source":"WECHAT","url":"https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/137993c6d830416696bbd771fc61d423/1937/2023/06/20/16/03/微信同步/52720/501775e41a724d7da06e66b3b4686407.html","knowledgeId":"64915d6e098ec248701da267","from":"跳舞要有范儿,穿搭占一半!快来get你的街舞穿搭指南~"}],"renderType":0,"type":0,"isKnowledgeSummary":true},"type":"answer_doc_knowledge","sessionId":1687251699065,"keyId":"1a079f48-ace3-4064-89b4-8a292c6a8a93_________","isKnowledgeSummary":true},
193
-
194
- {
195
- "conditionList": null,
196
- "apiKey": null,
197
- "effectiveTime": null,
198
- "intentId": null,
199
- "msgId": null,
200
- "actionCategory": null,
201
- "id": null,
202
- "type": "answer_doc_knowledge",
203
- "nodeId": null,
204
- "content": {
205
- "knowledgeId": null,
206
- "actionType": "answer_doc_knowledge",
207
- "images": null,
208
- "knowledgePartId": null,
209
- "srcContentId": null,
210
- "text": "新能源车是指采用新型能源的轿车、客车、货车等机动车辆,包括纯电动汽车、插电式混合动力汽车和燃料电池汽车。根据数据显示,2020年我国新能源汽车销售量达到139万辆,同比增长10.9%。预计2021年新能源车市场将继续保持高速增长,销售量有望超过200万辆。政府对新能源汽车实行补贴政策,同时逐步放松对新能源车的限购和限行政策。此外,中国汽车企业在新能源车领域的技术研发能力也不断提升,各大品牌纷纷推出新能源车型,采用更优秀的动力电池和电控系统,提高了车辆的续航里程。因此,新能源车市场发展前景广阔。",
211
- "list": [
212
- {
213
- "owner": null,
214
- "tagId": "6525183560177f6223d52a14",
215
- "enterprise": null,
216
- "tagIds": [
217
- "6525183560177f6223d52a14"
218
- ],
219
- "format": "docx",
220
- "srcContentId": "99cada54a02161f979acc28c5b8b913e",
221
- "updateTime": "2023-10-10 17:24:05",
222
- "source": "CORP_LOCAL_FILE",
223
- "srcContent": "新能源车指的是采用新型能源的轿车、客车、货车等机动车辆。目前主要的新能源车包括纯电动汽车、插电式混合动力汽车、燃料电池汽车等。以下是对新能源车的分析报告:市场发展趋势:随着环保和能源安全意识的增强,新能源车市场呈现快速发展态势。数据显示,2020年我国新能源汽车销售量达到139万辆,同比增长10.9%。预计2021年新能源车市场仍将保持高速增长,销售量有望达到200万辆以上。政策扶持力度加大:我国政府对新能源汽车实行补贴政策,以鼓励消费者选择绿色出行方式。此外,对新能源车限购、限行等政策也逐步放松。政策扶持的加大将进一步促进新能",
224
- "url": "http://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/43aadcaac45f4be19b63fd18ca68f2e6/2023/10/10/17/23/a27c5c1dd534d180c5512c907d5c9888/新能源车分析报告 (1).docx?uploadId=0921CB01AB5847E8BEF44730EE5DACF7",
225
- "knowledgeId": "6525182f002ff5198983a90c",
226
- "knowledgePartId": "YfHmGIsBvcIPGxbfkvwK",
227
- "from": "新能源车分析报告 (1)",
228
- "introduction": "新能源车指的是采用新型能源的轿车、客车、货车等机动车辆。目前主要的新能源车包括纯电动汽车、插电式混合动力汽车、燃料电池汽车等。以下是对新能源车的分析报告:市场发展趋势:随着环保和能源安全意识的增强,新能源车市场呈现快速发展态势。数据显示,2020年我国新能源汽车销售量达到139万辆,同比增长10.9%。预计2021年新能源车市场仍将保持高速增长,销售量有望达到200万辆以上。政策扶持力度加大:我国政府对新能源汽车实行补贴政策,以鼓励消费者选择绿色出行方式。此外,对新能源车限购、限行等政策也逐步放松。政策扶持的加大将进一步促进新能"
229
- }
230
- ],
231
- "renderType": 0,
232
- "type": 0,
233
- "srcContent": null
234
- }
235
- },
192
+ {
193
+ "content": {
194
+ "images": [{ url: 'https://static.guoranbot.com/images/knowledge/e0f6898c6b0d47fa98e8f71ceab1bde8/安全标志--禁止标志.png' }],
195
+ "actionType": "answer_doc_knowledge",
196
+ "text": "中国的省份名称有湖北省、广西壮族自治区等。",
197
+ "list": [
198
+ {
199
+ "owner": null,
200
+ "tagId": "658b9c5e7cf604285f7cba46",
201
+ "enterprise": null,
202
+ "tagIds": [
203
+ "658b9c5e7cf604285f7cba46"
204
+ ],
205
+ "format": "pptx",
206
+ "srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
207
+ "updateTime": "2023-12-27 11:39:10",
208
+ "source": "CORP_LOCAL_FILE",
209
+ "srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
210
+ "url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
211
+ "knowledgeId": "658a93de63d378228271913a",
212
+ "knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
213
+ "from": "ppt_preview",
214
+ "introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
215
+ "previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
216
+ }
217
+ ],
218
+ "renderType": 0,
219
+ "type": 0
220
+ },
221
+ "type": "answer_doc_knowledge"
222
+ },
236
223
  ActionAiGuideObj: {
237
224
  // 智能引导
238
225
  type: "answer_intellect_guide",