askbot-dragon 1.3.73 → 1.3.74

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.3.73",
3
+ "version": "1.3.74",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -159,7 +159,6 @@ export default {
159
159
  //预览图片
160
160
  lookAttach(url, item, event) {
161
161
  event.preventDefault();
162
- this.isAskLightning = 2
163
162
  if (this.isAskLightning == 1){
164
163
  window.parent.postMessage({
165
164
  data: "bot_preview",
@@ -881,20 +881,19 @@ export default {
881
881
  x: events2.pageX,
882
882
  y: events2.pageY
883
883
  }
884
- )
885
- // that.getDistance(
886
- // {
887
- // x: that.displacement.pageX,
888
- // y: that.displacement.pageY
889
- // },
890
- // {
891
- // x: that.displacement.pageX2,
892
- // y: that.displacement.pageY2
893
- // }
894
- // );
884
+ ) - that.getDistance(
885
+ {
886
+ x: that.displacement.pageX,
887
+ y: that.displacement.pageY
888
+ },
889
+ {
890
+ x: that.displacement.pageX2,
891
+ y: that.displacement.pageY2
892
+ }
893
+ );
895
894
  // 应用在元素上的缩放比例
896
895
  let newScale = that.displacement.originScale * zoom;
897
- console.log(newScale);
896
+ console.log(zoom, newScale);
898
897
  // 最大缩放比例限制
899
898
  if (newScale > 2) {
900
899
  newScale = 2;
@@ -951,156 +950,6 @@ export default {
951
950
  // 在 pdf_view 下创建 所有canvs的容器
952
951
  this.contentView = document.createElement('div')
953
952
  this.$http.get('/knowledge-api/knowledge/knowledge-part-location-info/list?ids=' + value.join(',')).then(res =>{
954
- res.data = {
955
- "data": [
956
- {
957
- "id": "64592044ec66de61a8971049",
958
- "knowledgeId": "64591f8ca3222a26557e17f0",
959
- "mainId": "137e3903781f45cb8f6d5c4a1e17ac9c",
960
- "page": 1,
961
- "total": 2,
962
- "pageHeight": 841.9,
963
- "pageWidth": 595.3,
964
- "publicPageFileUrl": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/137e3903781f45cb8f6d5c4a1e17ac9c/2023/05/09/12/16/02/64592042ec66de61a8970ff4/1.pdf",
965
- "extractInfo": {
966
- "location": [
967
- 90,
968
- 389.32,
969
- 419.05,
970
- 138.96997
971
- ],
972
- "content": "没想到正直的魏绛一口谢绝了赠礼,并劝晋悼公说:“《书》曰:‘居安思危’,思则有备,有备无患。”意思是说,如今晋国虽然很强大昌盛,但是我们绝对不能因此而大意,因为人在安全的时候,一定要想到未来可能会发生的危险,这样才会先做准备,以避免失败和灾祸的发生。[2]",
973
- "lines": [
974
- {
975
- "content": "没想到正直的魏绛一口谢绝了赠礼,并劝晋悼公说:“《书》曰:",
976
- "location": [
977
- 111,
978
- 389.32,
979
- 398.05,
980
- 14.169983
981
- ]
982
- },
983
- {
984
- "content": "‘居安思危’,思则有备,有备无患。”意思是说,如今晋国虽然很强大",
985
- "location": [
986
- 90,
987
- 420.519,
988
- 415.32794,
989
- 14.17099
990
- ]
991
- },
992
- {
993
- "content": "昌盛,但是我们绝对不能因此而大意,因为人在安全的时候,一定要",
994
- "location": [
995
- 90,
996
- 451.84003,
997
- 415.3284,
998
- 14.049988
999
- ]
1000
- },
1001
- {
1002
- "content": "想到未来可能会发生的危险,这样才会先做准备,以避免失败和灾祸",
1003
- "location": [
1004
- 90,
1005
- 483.04,
1006
- 415.32837,
1007
- 14.049988
1008
- ]
1009
- },
1010
- {
1011
- "content": "的发生。[2]",
1012
- "location": [
1013
- 90,
1014
- 514.24,
1015
- 72.16771,
1016
- 14.049988
1017
- ]
1018
- }
1019
- ],
1020
- "tagId": null
1021
- }
1022
- },
1023
- {
1024
- "id": "64592044ec66de61a897104d",
1025
- "knowledgeId": "64591f8ca3222a26557e17f0",
1026
- "mainId": "137e3903781f45cb8f6d5c4a1e17ac9c",
1027
- "page": 2,
1028
- "total": 2,
1029
- "pageHeight": 841.9,
1030
- "pageWidth": 595.3,
1031
- "publicPageFileUrl": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/137e3903781f45cb8f6d5c4a1e17ac9c/2023/05/09/12/16/02/64592042ec66de61a8970ff4/2.pdf",
1032
- "extractInfo": {
1033
- "location": [
1034
- 90,
1035
- 109.84001,
1036
- 415.33,
1037
- 170.05
1038
- ],
1039
- "content": "家来说则更是如此。居安思危是一种超前的危机意识和忧患意识,人的一生当中不可能始终是一帆风顺,总会有曲折与风雨相伴,坎坷与逆境相随。所以,面对任何事情,人们都应当做到未雨绸缪,这样在遇到突发情况时才不至于手忙脚乱。在和平时期,要有居安思危的应变措施,在做好物质准备的同时,思想上还要常守不虞之戒,牢记失戒的教训,只有做到居安思危,才能有备无患,防患于未然。",
1040
- "lines": [
1041
- {
1042
- "content": "家来说则更是如此。居安思危是一种超前的危机意识和忧患意识,人",
1043
- "location": [
1044
- 90,
1045
- 109.84001,
1046
- 415.33,
1047
- 14.050003
1048
- ]
1049
- },
1050
- {
1051
- "content": "的一生当中不可能始终是一帆风顺,总会有曲折与风雨相伴,坎坷与",
1052
- "location": [
1053
- 90,
1054
- 141.03996,
1055
- 415.3284,
1056
- 14.050003
1057
- ]
1058
- },
1059
- {
1060
- "content": "逆境相随。所以,面对任何事情,人们都应当做到未雨绸缪,这样在",
1061
- "location": [
1062
- 90,
1063
- 172.23997,
1064
- 415.3284,
1065
- 14.050003
1066
- ]
1067
- },
1068
- {
1069
- "content": "遇到突发情况时才不至于手忙脚乱。在和平时期,要有居安思危的应",
1070
- "location": [
1071
- 90,
1072
- 203.43999,
1073
- 415.32837,
1074
- 14.050003
1075
- ]
1076
- },
1077
- {
1078
- "content": "变措施,在做好物质准备的同时,思想上还要常守不虞之戒,牢记失",
1079
- "location": [
1080
- 90,
1081
- 234.64,
1082
- 415.3284,
1083
- 14.050003
1084
- ]
1085
- },
1086
- {
1087
- "content": "戒的教训,只有做到居安思危,才能有备无患,防患于未然。",
1088
- "location": [
1089
- 90,
1090
- 265.84003,
1091
- 378.0035,
1092
- 14.049988
1093
- ]
1094
- }
1095
- ],
1096
- "tagId": null
1097
- }
1098
- }
1099
- ],
1100
- "code": "0",
1101
- "msg": null,
1102
- "traceId": null
1103
- }
1104
953
  if (res.data.code == 0) {
1105
954
  // tagIds 会按照gpt识别的生成有序的数组,前端直接按照下标的顺序取就可以了
1106
955
  // 缓存拿到的所有数据
@@ -1156,14 +1005,12 @@ export default {
1156
1005
  }
1157
1006
  })
1158
1007
  }
1159
- console.log(value);
1160
1008
  },
1161
1009
  deep:true,
1162
1010
  immediate:true
1163
1011
  }
1164
1012
  },
1165
1013
  mounted () {
1166
-
1167
1014
  }
1168
1015
  }
1169
1016
  </script>