askbot-dragon 1.3.65 → 1.3.66

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.65",
3
+ "version": "1.3.66",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -893,7 +893,11 @@ export default {
893
893
  }
894
894
  });
895
895
  });
896
- }
896
+ },
897
+ getDistance(start, stop) {
898
+ // Math.hypot()计算参数的平方根
899
+ return Math.hypot(stop.x - start.x, stop.y - start.y);
900
+ },
897
901
  },
898
902
  computed:{
899
903
  perviewUrl() {
@@ -907,6 +911,156 @@ export default {
907
911
  // 在 pdf_view 下创建 所有canvs的容器
908
912
  this.contentView = document.createElement('div')
909
913
  this.$http.get('/knowledge-api/knowledge/knowledge-part-location-info/list?ids=' + value.join(',')).then(res =>{
914
+ res.data = {
915
+ "data": [
916
+ {
917
+ "id": "64592044ec66de61a8971049",
918
+ "knowledgeId": "64591f8ca3222a26557e17f0",
919
+ "mainId": "137e3903781f45cb8f6d5c4a1e17ac9c",
920
+ "page": 1,
921
+ "total": 2,
922
+ "pageHeight": 841.9,
923
+ "pageWidth": 595.3,
924
+ "publicPageFileUrl": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/137e3903781f45cb8f6d5c4a1e17ac9c/2023/05/09/12/16/02/64592042ec66de61a8970ff4/1.pdf",
925
+ "extractInfo": {
926
+ "location": [
927
+ 90,
928
+ 389.32,
929
+ 419.05,
930
+ 138.96997
931
+ ],
932
+ "content": "没想到正直的魏绛一口谢绝了赠礼,并劝晋悼公说:“《书》曰:‘居安思危’,思则有备,有备无患。”意思是说,如今晋国虽然很强大昌盛,但是我们绝对不能因此而大意,因为人在安全的时候,一定要想到未来可能会发生的危险,这样才会先做准备,以避免失败和灾祸的发生。[2]",
933
+ "lines": [
934
+ {
935
+ "content": "没想到正直的魏绛一口谢绝了赠礼,并劝晋悼公说:“《书》曰:",
936
+ "location": [
937
+ 111,
938
+ 389.32,
939
+ 398.05,
940
+ 14.169983
941
+ ]
942
+ },
943
+ {
944
+ "content": "‘居安思危’,思则有备,有备无患。”意思是说,如今晋国虽然很强大",
945
+ "location": [
946
+ 90,
947
+ 420.519,
948
+ 415.32794,
949
+ 14.17099
950
+ ]
951
+ },
952
+ {
953
+ "content": "昌盛,但是我们绝对不能因此而大意,因为人在安全的时候,一定要",
954
+ "location": [
955
+ 90,
956
+ 451.84003,
957
+ 415.3284,
958
+ 14.049988
959
+ ]
960
+ },
961
+ {
962
+ "content": "想到未来可能会发生的危险,这样才会先做准备,以避免失败和灾祸",
963
+ "location": [
964
+ 90,
965
+ 483.04,
966
+ 415.32837,
967
+ 14.049988
968
+ ]
969
+ },
970
+ {
971
+ "content": "的发生。[2]",
972
+ "location": [
973
+ 90,
974
+ 514.24,
975
+ 72.16771,
976
+ 14.049988
977
+ ]
978
+ }
979
+ ],
980
+ "tagId": null
981
+ }
982
+ },
983
+ {
984
+ "id": "64592044ec66de61a897104d",
985
+ "knowledgeId": "64591f8ca3222a26557e17f0",
986
+ "mainId": "137e3903781f45cb8f6d5c4a1e17ac9c",
987
+ "page": 2,
988
+ "total": 2,
989
+ "pageHeight": 841.9,
990
+ "pageWidth": 595.3,
991
+ "publicPageFileUrl": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/137e3903781f45cb8f6d5c4a1e17ac9c/2023/05/09/12/16/02/64592042ec66de61a8970ff4/2.pdf",
992
+ "extractInfo": {
993
+ "location": [
994
+ 90,
995
+ 109.84001,
996
+ 415.33,
997
+ 170.05
998
+ ],
999
+ "content": "家来说则更是如此。居安思危是一种超前的危机意识和忧患意识,人的一生当中不可能始终是一帆风顺,总会有曲折与风雨相伴,坎坷与逆境相随。所以,面对任何事情,人们都应当做到未雨绸缪,这样在遇到突发情况时才不至于手忙脚乱。在和平时期,要有居安思危的应变措施,在做好物质准备的同时,思想上还要常守不虞之戒,牢记失戒的教训,只有做到居安思危,才能有备无患,防患于未然。",
1000
+ "lines": [
1001
+ {
1002
+ "content": "家来说则更是如此。居安思危是一种超前的危机意识和忧患意识,人",
1003
+ "location": [
1004
+ 90,
1005
+ 109.84001,
1006
+ 415.33,
1007
+ 14.050003
1008
+ ]
1009
+ },
1010
+ {
1011
+ "content": "的一生当中不可能始终是一帆风顺,总会有曲折与风雨相伴,坎坷与",
1012
+ "location": [
1013
+ 90,
1014
+ 141.03996,
1015
+ 415.3284,
1016
+ 14.050003
1017
+ ]
1018
+ },
1019
+ {
1020
+ "content": "逆境相随。所以,面对任何事情,人们都应当做到未雨绸缪,这样在",
1021
+ "location": [
1022
+ 90,
1023
+ 172.23997,
1024
+ 415.3284,
1025
+ 14.050003
1026
+ ]
1027
+ },
1028
+ {
1029
+ "content": "遇到突发情况时才不至于手忙脚乱。在和平时期,要有居安思危的应",
1030
+ "location": [
1031
+ 90,
1032
+ 203.43999,
1033
+ 415.32837,
1034
+ 14.050003
1035
+ ]
1036
+ },
1037
+ {
1038
+ "content": "变措施,在做好物质准备的同时,思想上还要常守不虞之戒,牢记失",
1039
+ "location": [
1040
+ 90,
1041
+ 234.64,
1042
+ 415.3284,
1043
+ 14.050003
1044
+ ]
1045
+ },
1046
+ {
1047
+ "content": "戒的教训,只有做到居安思危,才能有备无患,防患于未然。",
1048
+ "location": [
1049
+ 90,
1050
+ 265.84003,
1051
+ 378.0035,
1052
+ 14.049988
1053
+ ]
1054
+ }
1055
+ ],
1056
+ "tagId": null
1057
+ }
1058
+ }
1059
+ ],
1060
+ "code": "0",
1061
+ "msg": null,
1062
+ "traceId": null
1063
+ }
910
1064
  if (res.data.code == 0) {
911
1065
  // tagIds 会按照gpt识别的生成有序的数组,前端直接按照下标的顺序取就可以了
912
1066
  // 缓存拿到的所有数据