askbot-dragon 1.5.16 → 1.5.18

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.16",
3
+ "version": "1.5.18",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -1226,8 +1226,7 @@ export default {
1226
1226
  clearTimeout(this.listenTimer);
1227
1227
  this.listenTimer = null;
1228
1228
  this.listenTimer = setTimeout(() => {
1229
- this.$emit('listenField');
1230
- console.debug('listenField');
1229
+ this.$emit('listenField',this.formList.formActionId);
1231
1230
  },500)
1232
1231
  },
1233
1232
  setFileDefault(option){
@@ -362,7 +362,7 @@ export default {
362
362
  setTimeout(() => {
363
363
  this.renderHighlights()
364
364
  this.changetoolbar = false
365
- }, 100)
365
+ }, 500)
366
366
  }
367
367
  // console.log(this.fisrtLoad,'this.fisrtLoad');
368
368
  if (this.fisrtLoad) {
@@ -592,9 +592,9 @@ export default {
592
592
  this.renderHighlights()
593
593
  })
594
594
  if(this.transformSalce !== null) {
595
- this.$refs.pdfView.scrollTop = `${((pdfResloute.page - 1) * (this.pageSize.height + this.PAGE_INTVERVAL) * this.transformSalce) + this.identifyTextPostion.top}`
595
+ this.$refs.pdfView.scrollTop = `${((pdfResloute.page - 1) * (this.pageSize.height + this.PAGE_INTVERVAL) * this.transformSalce) + (this.identifyTextPostion.top * this.scale * this.transformSalce)}`
596
596
  } else {
597
- this.$refs.pdfView.scrollTop = `${((pdfResloute.page - 1) * (this.pageSize.height + this.PAGE_INTVERVAL)) + this.identifyTextPostion.top}`
597
+ this.$refs.pdfView.scrollTop = `${((pdfResloute.page - 1) * (this.pageSize.height + this.PAGE_INTVERVAL)) + (this.identifyTextPostion.top * this.scale * this.transformSalce)}`
598
598
  }
599
599
  },
600
600
  scrollToExcalTop(currentPage) {
@@ -862,6 +862,418 @@ export default {
862
862
  // if(value.length === 1) {
863
863
  // this.$refs.pdfView.style.height = 'calc(100% - 50px)'
864
864
  // }
865
+ // res.data = {
866
+ // "data": [
867
+ // {
868
+ // "id": "6501ae851169c35ace9739f7",
869
+ // "knowledgeId": "6501ae444f324a70bf677cce",
870
+ // "mainId": "b3cec709ed904d56b29cb95362dc181f",
871
+ // "page": 5,
872
+ // "total": 118,
873
+ // "pageHeight": 540.0,
874
+ // "pageWidth": 960.00946,
875
+ // "publicPageFileUrl": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/b3cec709ed904d56b29cb95362dc181f/2023/09/13/08/43/12/6501ae451169c35ace9739b7/5.pdf",
876
+ // "extractInfo": {
877
+ // "location": [
878
+ // 42.208,
879
+ // 297.014,
880
+ // 723.56104,
881
+ // 41.18799
882
+ // ],
883
+ // "content": "体验整体提升,推出全渠道、智能化知识管理平台,面向员工智能服务,业务自动化,知识智能搜索与问答场景。成为飞书ISVAI交互专利发布国家高新技术企业北京市科技型中小企业认证北京市创新型中小企业认证AAA企业信用评价认证优衣库",
884
+ // "lines": [
885
+ // {
886
+ // "content": "体验整体提升,推出全",
887
+ // "location": [
888
+ // 42.208,
889
+ // 297.014,
890
+ // 119.874016,
891
+ // 11.990997
892
+ // ]
893
+ // },
894
+ // {
895
+ // "content": "渠道、智能化知识管理",
896
+ // "location": [
897
+ // 42.208,
898
+ // 314.50302,
899
+ // 119.874016,
900
+ // 11.990997
901
+ // ]
902
+ // },
903
+ // {
904
+ // "content": "平台,面向员工智能服",
905
+ // "location": [
906
+ // 42.208,
907
+ // 332.022,
908
+ // 119.874016,
909
+ // 11.990997
910
+ // ]
911
+ // },
912
+ // {
913
+ // "content": "务,业务自动化,知识",
914
+ // "location": [
915
+ // 42.208,
916
+ // 349.398,
917
+ // 119.874016,
918
+ // 11.990997
919
+ // ]
920
+ // },
921
+ // {
922
+ // "content": "智能搜索与问答场景。",
923
+ // "location": [
924
+ // 42.208,
925
+ // 366.916,
926
+ // 119.874016,
927
+ // 11.990997
928
+ // ]
929
+ // },
930
+ // {
931
+ // "content": "成为飞书",
932
+ // "location": [
933
+ // 362.409,
934
+ // 270.311,
935
+ // 47.951996,
936
+ // 11.990997
937
+ // ]
938
+ // },
939
+ // {
940
+ // "content": "ISV",
941
+ // "location": [
942
+ // 362.409,
943
+ // 284.711,
944
+ // 18.47815,
945
+ // 11.990997
946
+ // ]
947
+ // },
948
+ // {
949
+ // "content": "AI交互专利发",
950
+ // "location": [
951
+ // 362.409,
952
+ // 300.018,
953
+ // 74.64407,
954
+ // 11.990997
955
+ // ]
956
+ // },
957
+ // {
958
+ // "content": "布",
959
+ // "location": [
960
+ // 362.409,
961
+ // 314.418,
962
+ // 11.990997,
963
+ // 11.990997
964
+ // ]
965
+ // },
966
+ // {
967
+ // "content": "国家高新技术企",
968
+ // "location": [
969
+ // 363.713,
970
+ // 330.009,
971
+ // 83.93698,
972
+ // 11.990997
973
+ // ]
974
+ // },
975
+ // {
976
+ // "content": "业",
977
+ // "location": [
978
+ // 363.713,
979
+ // 344.409,
980
+ // 11.990997,
981
+ // 11.990997
982
+ // ]
983
+ // },
984
+ // {
985
+ // "content": "北京市科技型中小企业认",
986
+ // "location": [
987
+ // 363.798,
988
+ // 359.915,
989
+ // 131.90097,
990
+ // 11.990997
991
+ // ]
992
+ // },
993
+ // {
994
+ // "content": "证",
995
+ // "location": [
996
+ // 363.798,
997
+ // 374.315,
998
+ // 11.990997,
999
+ // 11.990997
1000
+ // ]
1001
+ // },
1002
+ // {
1003
+ // "content": "北京市创新型中小企业认",
1004
+ // "location": [
1005
+ // 363.798,
1006
+ // 389.905,
1007
+ // 131.90097,
1008
+ // 11.990997
1009
+ // ]
1010
+ // },
1011
+ // {
1012
+ // "content": "证",
1013
+ // "location": [
1014
+ // 363.798,
1015
+ // 404.22,
1016
+ // 11.990997,
1017
+ // 11.990997
1018
+ // ]
1019
+ // },
1020
+ // {
1021
+ // "content": "AAA企业信用评价认",
1022
+ // "location": [
1023
+ // 362.409,
1024
+ // 419.811,
1025
+ // 112.02899,
1026
+ // 11.990997
1027
+ // ]
1028
+ // },
1029
+ // {
1030
+ // "content": "证",
1031
+ // "location": [
1032
+ // 362.409,
1033
+ // 434.09702,
1034
+ // 11.990997,
1035
+ // 11.990997
1036
+ // ]
1037
+ // },
1038
+ // {
1039
+ // "content": "优衣库",
1040
+ // "location": [
1041
+ // 729.808,
1042
+ // 326.211,
1043
+ // 35.96106,
1044
+ // 11.990997
1045
+ // ]
1046
+ // }
1047
+ // ],
1048
+ // "tagId": null
1049
+ // },
1050
+ // "block": {
1051
+ // "type": "TEXT",
1052
+ // "location": [
1053
+ // 42.208,
1054
+ // 297.014,
1055
+ // 723.56104,
1056
+ // 41.18799
1057
+ // ],
1058
+ // "color": null,
1059
+ // "flowChart": null,
1060
+ // "image": null,
1061
+ // "table": null,
1062
+ // "text": {
1063
+ // "originText": "体验整体提升,推出全渠道、智能化知识管理平台,面向员工智能服务,业务自动化,知识智能搜索与问答场景。成为飞书ISVAI交互专利发布国家高新技术企业北京市科技型中小企业认证北京市创新型中小企业认证AAA企业信用评价认证优衣库",
1064
+ // "indexText": "体验整体提升,推出全渠道、智能化知识管理平台,面向员工智能服务,业务自动化,知识智能搜索与问答场景。成为飞书ISVAI交互专利发布国家高新技术企业北京市科技型中小企业认证北京市创新型中小企业认证AAA企业信用评价认证优衣库",
1065
+ // "lines": [
1066
+ // {
1067
+ // "location": [
1068
+ // 42.208,
1069
+ // 297.014,
1070
+ // 119.874016,
1071
+ // 11.990997
1072
+ // ]
1073
+ // },
1074
+ // {
1075
+ // "location": [
1076
+ // 42.208,
1077
+ // 314.50302,
1078
+ // 119.874016,
1079
+ // 11.990997
1080
+ // ]
1081
+ // },
1082
+ // {
1083
+ // "location": [
1084
+ // 42.208,
1085
+ // 332.022,
1086
+ // 119.874016,
1087
+ // 11.990997
1088
+ // ]
1089
+ // },
1090
+ // {
1091
+ // "location": [
1092
+ // 42.208,
1093
+ // 349.398,
1094
+ // 119.874016,
1095
+ // 11.990997
1096
+ // ]
1097
+ // },
1098
+ // {
1099
+ // "location": [
1100
+ // 42.208,
1101
+ // 366.916,
1102
+ // 119.874016,
1103
+ // 11.990997
1104
+ // ]
1105
+ // },
1106
+ // {
1107
+ // "location": [
1108
+ // 362.409,
1109
+ // 270.311,
1110
+ // 47.951996,
1111
+ // 11.990997
1112
+ // ]
1113
+ // },
1114
+ // {
1115
+ // "location": [
1116
+ // 362.409,
1117
+ // 284.711,
1118
+ // 18.47815,
1119
+ // 11.990997
1120
+ // ]
1121
+ // },
1122
+ // {
1123
+ // "location": [
1124
+ // 362.409,
1125
+ // 300.018,
1126
+ // 74.64407,
1127
+ // 11.990997
1128
+ // ]
1129
+ // },
1130
+ // {
1131
+ // "location": [
1132
+ // 362.409,
1133
+ // 314.418,
1134
+ // 11.990997,
1135
+ // 11.990997
1136
+ // ]
1137
+ // },
1138
+ // {
1139
+ // "location": [
1140
+ // 363.713,
1141
+ // 330.009,
1142
+ // 83.93698,
1143
+ // 11.990997
1144
+ // ]
1145
+ // },
1146
+ // {
1147
+ // "location": [
1148
+ // 363.713,
1149
+ // 344.409,
1150
+ // 11.990997,
1151
+ // 11.990997
1152
+ // ]
1153
+ // },
1154
+ // {
1155
+ // "location": [
1156
+ // 363.798,
1157
+ // 359.915,
1158
+ // 131.90097,
1159
+ // 11.990997
1160
+ // ]
1161
+ // },
1162
+ // {
1163
+ // "location": [
1164
+ // 363.798,
1165
+ // 374.315,
1166
+ // 11.990997,
1167
+ // 11.990997
1168
+ // ]
1169
+ // },
1170
+ // {
1171
+ // "location": [
1172
+ // 363.798,
1173
+ // 389.905,
1174
+ // 131.90097,
1175
+ // 11.990997
1176
+ // ]
1177
+ // },
1178
+ // {
1179
+ // "location": [
1180
+ // 363.798,
1181
+ // 404.22,
1182
+ // 11.990997,
1183
+ // 11.990997
1184
+ // ]
1185
+ // },
1186
+ // {
1187
+ // "location": [
1188
+ // 362.409,
1189
+ // 419.811,
1190
+ // 112.02899,
1191
+ // 11.990997
1192
+ // ]
1193
+ // },
1194
+ // {
1195
+ // "location": [
1196
+ // 362.409,
1197
+ // 434.09702,
1198
+ // 11.990997,
1199
+ // 11.990997
1200
+ // ]
1201
+ // },
1202
+ // {
1203
+ // "location": [
1204
+ // 729.808,
1205
+ // 326.211,
1206
+ // 35.96106,
1207
+ // 11.990997
1208
+ // ]
1209
+ // }
1210
+ // ]
1211
+ // }
1212
+ // }
1213
+ // },
1214
+ // {
1215
+ // "id": "6501ae871169c35ace973a87",
1216
+ // "knowledgeId": "6501ae444f324a70bf677cce",
1217
+ // "mainId": "b3cec709ed904d56b29cb95362dc181f",
1218
+ // "page": 32,
1219
+ // "total": 118,
1220
+ // "pageHeight": 540.0,
1221
+ // "pageWidth": 960.00946,
1222
+ // "publicPageFileUrl": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/b3cec709ed904d56b29cb95362dc181f/2023/09/13/08/43/12/6501ae451169c35ace9739b7/32.pdf",
1223
+ // "extractInfo": {
1224
+ // "location": [
1225
+ // 28.913,
1226
+ // 30.983013,
1227
+ // 307.587,
1228
+ // 28.006
1229
+ // ],
1230
+ // "content": "智能化知识管理价值体现",
1231
+ // "lines": [
1232
+ // {
1233
+ // "content": "智能化知识管理价值体现",
1234
+ // "location": [
1235
+ // 28.913,
1236
+ // 30.983013,
1237
+ // 307.587,
1238
+ // 28.006
1239
+ // ]
1240
+ // }
1241
+ // ],
1242
+ // "tagId": null
1243
+ // },
1244
+ // "block": {
1245
+ // "type": "TEXT",
1246
+ // "location": [
1247
+ // 28.913,
1248
+ // 30.983013,
1249
+ // 307.587,
1250
+ // 28.006
1251
+ // ],
1252
+ // "color": null,
1253
+ // "flowChart": null,
1254
+ // "image": null,
1255
+ // "table": null,
1256
+ // "text": {
1257
+ // "originText": "智能化知识管理价值体现",
1258
+ // "indexText": "智能化知识管理价值体现",
1259
+ // "lines": [
1260
+ // {
1261
+ // "location": [
1262
+ // 28.913,
1263
+ // 30.983013,
1264
+ // 307.587,
1265
+ // 28.006
1266
+ // ]
1267
+ // }
1268
+ // ]
1269
+ // }
1270
+ // }
1271
+ // }
1272
+ // ],
1273
+ // "code": "0",
1274
+ // "msg": null,
1275
+ // "traceId": null
1276
+ // }
865
1277
  if (res.data.code == 0) {
866
1278
  // tagIds 会按照gpt识别的生成有序的数组,前端直接按照下标的顺序取就可以了
867
1279
  // 缓存拿到的所有数据