askbot-dragon 88.0.43 → 88.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/npminstall-debug.log +208 -0
  2. package/package.json +14 -14
  3. package/public/index.html +2 -2
  4. package/src/assets/js/obsBrowser.js +3 -2
  5. package/src/components/ActionAlertIframe.vue +1 -0
  6. package/src/components/AiGuide.vue +1 -1
  7. package/src/components/AnswerDocknowledge.vue +167 -54
  8. package/src/components/ConversationContainer.vue +16 -9
  9. package/src/components/MyEditor.vue +1 -1
  10. package/src/components/QwFeedback.vue +2 -1
  11. package/src/components/actionSatisfaction.vue +2 -2
  12. package/src/components/answerRadio.vue +59 -4
  13. package/src/components/assetDetails.vue +1 -1
  14. package/src/components/assetMessage.vue +14 -13
  15. package/src/components/associationIntention.vue +2 -2
  16. package/src/components/fielListView.vue +1 -1
  17. package/src/components/formTemplate.vue +24 -3
  18. package/src/components/intelligentSummary.vue +15 -12
  19. package/src/components/kkview.vue +0 -10
  20. package/src/components/markDownText.vue +798 -55
  21. package/src/components/myPopup.vue +14 -11
  22. package/src/components/pagination.vue +129 -0
  23. package/src/components/pdfPosition.vue +67 -67
  24. package/src/components/popup.vue +8 -7
  25. package/src/components/preview/docView.vue +114 -0
  26. package/src/components/preview/excelView.vue +199 -0
  27. package/src/components/preview/newPositionPreview.vue +385 -0
  28. package/src/components/preview/pdfView.vue +824 -0
  29. package/src/components/previewDoc.vue +1 -0
  30. package/src/components/previewPdf.vue +346 -65
  31. package/src/components/receiverMessagePlatform.vue +24 -20
  32. package/src/components/senderMessagePlatform.vue +19 -11
  33. package/src/components/tree.vue +2 -2
  34. package/src/components/welcomeKnowledgeFile.vue +5 -2
  35. package/src/components/welcomeSuggest.vue +1 -1
  36. package/src/locales/cn.json +99 -0
  37. package/src/locales/en.json +99 -0
  38. package/src/main.js +19 -0
@@ -15,9 +15,7 @@
15
15
  <section class="text-label">
16
16
  <p class="text-type">
17
17
  <i class="iconfont guoran-biaoqian"></i>
18
- <span>{{
19
- dataDetails.typeName ? dataDetails.typeName : "--"
20
- }}</span>
18
+ <span>{{ dataDetails.typeName ? dataDetails.typeName : "--" }}</span>
21
19
  </p>
22
20
  <p class="text-SN">
23
21
  <i class="iconfont guoran-xinghao"></i>
@@ -29,20 +27,20 @@
29
27
  <div class="details-content-hide">
30
28
  <p>
31
29
  <i class="iconfont guoran-miaoshu"></i>
32
- <span>描述</span>
30
+ <span>{{ $t('dragonCommon.description') }}</span>
33
31
  <b>{{ dataDetails.description }}</b>
34
32
  </p>
35
33
  <p>
36
34
  <i class="arsenal_icon arsenalweizhi"></i>
37
- <span>位置</span>
38
- <b> {{ dataDetails.officeAreaName }} </b>
35
+ <span>{{ $t('dragonCommon.location') }}</span>
36
+ <b>{{ dataDetails.officeAreaName }}</b>
39
37
  </p>
40
38
  <p>
41
39
  <i class="iconfont guoran-geren"></i>
42
- <span>使用者</span>
40
+ <span>{{ $t('dragonCommon.user') }}</span>
43
41
  <b>
44
42
  {{
45
- dataDetails.userName && dataDetails.userName.length != 0
43
+ dataDetails.userName && dataDetails.userName.length !== 0
46
44
  ? dataDetails.userName[0]
47
45
  : "--"
48
46
  }}
@@ -50,10 +48,10 @@
50
48
  </p>
51
49
  <p>
52
50
  <i class="iconfont guoran-bumen"></i>
53
- <span>部门</span>
51
+ <span>{{ $t('dragonCommon.department') }}</span>
54
52
  <b>
55
53
  {{
56
- dataDetails.deptNames && dataDetails.deptNames.length != 0
54
+ dataDetails.deptNames && dataDetails.deptNames.length !== 0
57
55
  ? dataDetails.deptNames[0]
58
56
  : "--"
59
57
  }}
@@ -61,10 +59,10 @@
61
59
  </p>
62
60
  <p>
63
61
  <i class="iconfont guoran-guanlizhe"></i>
64
- <span>管理者</span>
62
+ <span>{{ $t('dragonCommon.manager') }}</span>
65
63
  <b>
66
64
  {{
67
- dataDetails.managerNames && dataDetails.managerNames.length != 0
65
+ dataDetails.managerNames && dataDetails.managerNames.length !== 0
68
66
  ? dataDetails.managerNames[0]
69
67
  : "--"
70
68
  }}
@@ -107,7 +105,10 @@ export default {
107
105
  : "";
108
106
  return dataDetails;
109
107
  },
110
- }
108
+ },
109
+ mounted() {
110
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
111
+ },
111
112
  };
112
113
  </script>
113
114
 
@@ -9,7 +9,7 @@
9
9
  </p>
10
10
  </template>
11
11
  <template v-else>
12
- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
12
+ <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion).replace(/\n/g, '<br>')" class="answer-rich-text"></p>
13
13
  </template>
14
14
  </div>
15
15
  <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
@@ -19,7 +19,7 @@
19
19
  </p>
20
20
  </template>
21
21
  <template v-else>
22
- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
22
+ <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion).replace(/\n/g, '<br>')" class="answer-rich-text"></p>
23
23
  </template>
24
24
  <Recommend :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
25
25
  </div>
@@ -53,7 +53,7 @@
53
53
  <previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="previewShowPopup"></previewDoc>
54
54
  </van-popup>
55
55
  <el-drawer
56
- title="我是标题"
56
+ title=""
57
57
  :append-to-body="true"
58
58
  :visible.sync="drawer"
59
59
  :with-header="false"
@@ -876,7 +876,13 @@ export default {
876
876
  default () {
877
877
  return ""
878
878
  }
879
- }
879
+ },
880
+ isCustomerService: {
881
+ type: Boolean,
882
+ default () {
883
+ return false;
884
+ }
885
+ },
880
886
  },
881
887
  computed: {
882
888
  acceptType: function () {
@@ -1072,6 +1078,7 @@ export default {
1072
1078
  // this.ckeditor.editorConfig.toolbar = []
1073
1079
 
1074
1080
  // }
1081
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
1075
1082
  if (this.mainId == '90df4764122240de939331d372546c28') {
1076
1083
  this.isBaiLi = true;
1077
1084
  }
@@ -2010,6 +2017,10 @@ export default {
2010
2017
  },
2011
2018
  //提交按钮事件
2012
2019
  submitClick () {
2020
+ if(this.isCustomerService) {
2021
+ this.$message.warning('当前为人工客服模式,暂时无法提交')
2022
+ return
2023
+ }
2013
2024
  if (this.uploadImgQueue || this.attachmentList.some(arrach => { return !arrach.url })) {
2014
2025
  this.$message.warning('文件正在上传,请稍后')
2015
2026
  return
@@ -2068,14 +2079,24 @@ export default {
2068
2079
 
2069
2080
  }
2070
2081
  let isRequired = true;
2071
- if (this.mainId == '3e83057a1bd74b79b86859ad619fdbbb' || this.mainId == 'ab0f90737c8b4f2d85ba2157e4473110' || this.mainId == '86dc09da570948d2b4841122d732f373') {
2082
+ if (this.mainId == '3e83057a1bd74b79b86859ad619fdbbb' ||
2083
+ this.mainId == 'ab0f90737c8b4f2d85ba2157e4473110' ||
2084
+ this.mainId == '86dc09da570948d2b4841122d732f373' ||
2085
+ this.mainId == 'e93c327548c94b15a4b2b71bc613ef38' // 银轮主体 id
2086
+ ) {
2072
2087
  isRequired = false
2073
2088
  }
2074
2089
  /*针对蒙牛企业在对话中系统名称字段暂时不做校验*/
2090
+ /* 2025.0228 补充银轮主体相同逻辑 */
2075
2091
  if (this.formShow.form.formFieldRelation[i].display &&
2076
2092
  (this.formShow.form.formFieldRelation[i].required || this.isRequiredFn(this.formShow.form.formFieldRelation[i].formField)) &&
2077
2093
  this.formShow.form.formFieldRelation[i].fieldId !== 'workorder_name' &&
2078
- ((!isRequired && this.formShow.form.formFieldRelation[i].fieldId !== '0feca81fce97465da537248c066e4db8' && this.formShow.form.formFieldRelation[i].fieldId !== '1d8bd21485834773a6d18eae60013000') || isRequired) &&
2094
+ (
2095
+ (!isRequired &&
2096
+ this.formShow.form.formFieldRelation[i].fieldId !== '0feca81fce97465da537248c066e4db8' &&
2097
+ this.formShow.form.formFieldRelation[i].fieldId !== '1d8bd21485834773a6d18eae60013000' &&
2098
+ this.formShow.form.formFieldRelation[i].fieldId !== '0ca7253561bb480cac9e57664e52158b'
2099
+ ) || isRequired) &&
2079
2100
  this.formShow.form.formFieldRelation[i].formField.type !== 'EXPLANATION') {
2080
2101
  let value = "";
2081
2102
  let bool = {}
@@ -3,21 +3,23 @@
3
3
  <div class="summaryHeader">
4
4
  <div class="left">
5
5
  <i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
6
- <span>智能摘要</span>
6
+ <span>{{ $t('dragonCommon.smartSummary') }}</span>
7
7
  </div>
8
8
  <div class="right">
9
9
  <div class="regenerationBtn" @click="regeneration">
10
- <template v-if="!isLoading">重新生成</template>
10
+ <template v-if="!isLoading">
11
+ {{ $t('dragonCommon.regenerate') }}
12
+ </template>
11
13
  <template v-else>
12
14
  <img
13
- height="20px"
14
- width="20px"
15
- src="../assets/image/loading.gif"
16
- alt
17
- srcset
18
- style="margin-right: 6px"
15
+ height="20px"
16
+ width="20px"
17
+ src="../assets/image/loading.gif"
18
+ alt
19
+ srcset
20
+ style="margin-right: 6px"
19
21
  />
20
- <span>生成中</span>
22
+ <span>{{ $t('dragonCommon.generating') }}</span>
21
23
  </template>
22
24
  </div>
23
25
  <i class="iconfont guoran-tongyichicun-shouqi" @click="closeSummary"></i>
@@ -28,9 +30,9 @@
28
30
  </div>
29
31
  <div class="intelligentBottom" v-if="recommendQuestions.length > 0 && !formKnowledgeManagement">
30
32
  <div class="intelligentQues"
31
- v-for="(item,index) in recommendQuestions"
32
- :key="index"
33
- @click="recommendQues(item)"
33
+ v-for="(item, index) in recommendQuestions"
34
+ :key="index"
35
+ @click="recommendQues(item)"
34
36
  >
35
37
  {{ item }}
36
38
  </div>
@@ -133,6 +135,7 @@ export default {
133
135
  },
134
136
  },
135
137
  mounted() {
138
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
136
139
  this.getKnowledgeSummary();
137
140
  }
138
141
  };
@@ -774,16 +774,6 @@ export default {
774
774
  // Math.hypot()计算参数的平方根
775
775
  return Math.hypot(stop.x - start.x, stop.y - start.y);
776
776
  },
777
- setupCanvas (canvas, width, height) {
778
- const dpr = 1;
779
- // const rect = canvas.getBoundingClientRect();
780
- canvas.width = width
781
- canvas.height = height
782
- const ctx = canvas.getContext('2d');
783
- console.log(canvas.width, canvas.height, dpr, this.scale);
784
- ctx?.scale(dpr, dpr);
785
- return ctx;
786
- },
787
777
  changeScale (value) {
788
778
  if (value == 'zoom') {
789
779
  this.handScale = 'auto'