askbot-dragon 1.6.58-beta → 1.6.61-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.6.58-beta",
3
+ "version": "1.6.61-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -240,6 +240,8 @@ function newInitWaterMark(elId, textValue) {
240
240
 
241
241
  mask_div.style.display = "block";
242
242
 
243
+ mask_div.style.wordBreak = 'break-all'
244
+
243
245
  oTemp.appendChild(mask_div);
244
246
  }
245
247
  }
@@ -103,6 +103,8 @@
103
103
  officePreviewType="pdf"
104
104
  @previewToDialog="previewToDialog"
105
105
  @recommendQues="recommendQues"
106
+ @close="close"
107
+ @open="open"
106
108
  :isHasChat="isHasChat"
107
109
  :knowledgeId="previewKnowledgeId"
108
110
  ></previewPdf>
@@ -353,6 +355,12 @@ export default {
353
355
  })
354
356
  }
355
357
  },
358
+ open() {
359
+ this.$emit('openPreviewDialog')
360
+ },
361
+ close() {
362
+ this.$emit('closePreviewDialog')
363
+ },
356
364
  fileType (url) {
357
365
  const fileType = url.substring(url.lastIndexOf('.'));
358
366
  if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.MOVC' || fileType === '.mov' || fileType === '.movc' || fileType === '.mav' || fileType === '.MAV' || fileType == '.mp3' || fileType == '.MP3' || fileType === '.wav') {
@@ -2,9 +2,6 @@
2
2
  <template>
3
3
  <div id="conversation">
4
4
  <!-- <answer-radio :msg="answerRadiosPri"></answer-radio> -->
5
- <asser-deatils :data="{
6
- assets:assetDetail
7
- }"></asser-deatils>
8
5
  <!-- <msg-loading v-if="inLoading"></msg-loading>
9
6
  <div style="position: relative" class="img_div">
10
7
  <img
@@ -5057,190 +5054,6 @@ export default {
5057
5054
  "keyId": "a2da2307-3de3-41ef-b0f0-fd5f9d40adba_________"
5058
5055
  }
5059
5056
  ],
5060
- assetDetail:{
5061
- "id": "642ab03615ecdd7566b6221c",
5062
- "mainId": null,
5063
- "name": "电脑名称",
5064
- "description": '',
5065
- "productId": "642aafec15ecdd7566b6221b",
5066
- "snNo": "GR0001",
5067
- "attachmentPath": "https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/ab0f90737c8b4f2d85ba2157e4473110/2023/04/03/18/53/4272832c8c55c3450a131728b6e9f335/%E6%9C%BA%E5%99%A8%E4%BA%BA%26%E5%B7%A5%E5%8D%95%E7%B3%BB%E7%BB%9F%E9%85%8D%E7%BD%AE%E5%9C%BA%E6%99%AF.txt",
5068
- "attachmentName": "front-oss/ab0f90737c8b4f2d85ba2157e4473110/2023/04/03/18/53/4272832c8c55c3450a131728b6e9f335/机器人&工单系统配置场景.txt",
5069
- "product": {
5070
- "id": "642aafec15ecdd7566b6221b",
5071
- "name": "电脑产品名称",
5072
- "type": {
5073
- "id": "61f0b2aee698d414a7857d8f",
5074
- "name": "电脑"
5075
- },
5076
- "productImgPathes": [
5077
- "https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/ab0f90737c8b4f2d85ba2157e4473110/2023/04/03/18/52/04272832c8c55c3450a131728b6e9f33/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210617100443.jpg"
5078
- ],
5079
- "supplier": "电脑产品供应商名称"
5080
- },
5081
- "productName": "电脑产品名称",
5082
- "typeName": "电脑",
5083
- "users": [
5084
- {
5085
- "corpId": "dingd63bac705bb13c74bc961a6cb783455b",
5086
- "type": 3,
5087
- "bindType": 0,
5088
- "memberId": 147804,
5089
- "name": "刁瑶杭",
5090
- "userid": null,
5091
- "source": null,
5092
- "internalUserId": null,
5093
- "departments": null,
5094
- "defaultExpandedKeys": [
5095
- "2027",
5096
- "2028",
5097
- "147804"
5098
- ]
5099
- }
5100
- ],
5101
- "userDepts": [],
5102
- "hasUser": true,
5103
- "userNames": [
5104
- "刁瑶杭"
5105
- ],
5106
- "managers": [
5107
- {
5108
- "corpId": "dingd63bac705bb13c74bc961a6cb783455b",
5109
- "type": 3,
5110
- "bindType": 0,
5111
- "memberId": 71303,
5112
- "name": "张强",
5113
- "userid": null,
5114
- "source": null,
5115
- "internalUserId": null,
5116
- "departments": null,
5117
- "defaultExpandedKeys": [
5118
- "2027",
5119
- "2029",
5120
- "71303"
5121
- ]
5122
- }
5123
- ],
5124
- "managerNames": [
5125
- "张强"
5126
- ],
5127
- "depts": [
5128
- {
5129
- "id": 2028,
5130
- "mainId": "ab0f90737c8b4f2d85ba2157e4473110",
5131
- "corpId": "dingd63bac705bb13c74bc961a6cb783455b",
5132
- "name": "研发组",
5133
- "nameEn": null,
5134
- "parentId": 2027,
5135
- "orderNum": 609267418,
5136
- "apiKey": "bdd1148dae574fc0aecc5addd2ea18dc",
5137
- "refInfo": {
5138
- "id": 609267418,
5139
- "name": "研发组",
5140
- "name_en": null,
5141
- "order": 609267418,
5142
- "parentid": 1,
5143
- "storeCode": null,
5144
- "shopNo": null,
5145
- "businessType": null,
5146
- "unitNo": null,
5147
- "zoneNo": null,
5148
- "zoneName": null,
5149
- "open_department_id": null,
5150
- "parent_department_id": null,
5151
- "parentName": null,
5152
- "sortCode": null,
5153
- "fcreateTime": null,
5154
- "status": null,
5155
- "fullName": null,
5156
- "businessUnit": null,
5157
- "feffectDate": null,
5158
- "flastUpdateTime": null
5159
- },
5160
- "creator": -1,
5161
- "source": 2,
5162
- "deleted": false,
5163
- "createTime": "2023-03-03T06:56:33.000+00:00",
5164
- "updateTime": "2023-03-22T07:13:35.000+00:00",
5165
- "refInfoId": 609267418,
5166
- "refInfoParentId": 1,
5167
- "wechatBotDTO": {
5168
- "id": 453,
5169
- "bindCode": "5bdc04b276b74eeea48321563b835231",
5170
- "botId": 1431,
5171
- "apiKey": "fb5a8ab59b344a1180f562a15315fa92",
5172
- "appInfoId": 79,
5173
- "corpName": "深藏blue",
5174
- "corpId": "dingd63bac705bb13c74bc961a6cb783455b",
5175
- "agentId": "1451608359",
5176
- "agentName": "AskBot助手",
5177
- "agentLogoUrl": "https://static-legacy.dingtalk.com/media/lALPDe7s16uKNlfNASzNASw_300_300.png",
5178
- "appKey": null,
5179
- "secret": "",
5180
- "wechatType": 3,
5181
- "enable": true,
5182
- "allowPushMsg": false,
5183
- "authUrl": "https://test.auth.wx.guoranbot.com/?corpId=$CORPID$&type=3",
5184
- "scanUrl": null,
5185
- "bindType": 0,
5186
- "thirdId": "suitedpsq6c9bqzcdwfcj",
5187
- "sceneId": null,
5188
- "mainId": "ab0f90737c8b4f2d85ba2157e4473110"
5189
- },
5190
- "defaultExpandedKeys": [
5191
- "2027",
5192
- "2028"
5193
- ]
5194
- }
5195
- ],
5196
- "deptNames": [
5197
- "研发组"
5198
- ],
5199
- "relationScope": {
5200
- "appType": null,
5201
- "type": "BOT",
5202
- "scope": "45df125ce3924286baec4541a9e65452",
5203
- "weChatBotApiKey": "45df125ce3924286baec4541a9e65452",
5204
- "intentsGuide": "",
5205
- "relationIntents": [
5206
- {
5207
- "intentId": "152722",
5208
- "intentName": "提交工单",
5209
- "bid": null,
5210
- "recommendedText": "提交工单",
5211
- "extInfo": null
5212
- },
5213
- {
5214
- "intentId": "152716",
5215
- "intentName": "咨询者问题机器人不识别",
5216
- "bid": null,
5217
- "recommendedText": "不识别",
5218
- "extInfo": null
5219
- }
5220
- ],
5221
- "extInfo": null
5222
- },
5223
- "officeAreaId": "624ffb2b5cf1b3280f35bb6c",
5224
- "officeArea": {
5225
- "id": "624ffb2b5cf1b3280f35bb6c",
5226
- "name": "果然智汇办公区"
5227
- },
5228
- "officeAreaName": "果然智汇办公区",
5229
- "qrUrl": "https://test.auth.wx.askbot.cn/api/assets-qr/transit/642ab03615ecdd7566b6221c?askbotStr=0b3b0b8d1d8154e41b15bd70851b1b72",
5230
- "createTime": "2023-04-03 18:53:42",
5231
- "updateTime": "2023-04-03 18:53:42",
5232
- "switches": {
5233
- "enabledAssociateRobot": true,
5234
- "enabledAssociateIntent": true
5235
- },
5236
- "deleted": false,
5237
- "extInfo": {},
5238
- "thirdAssetsCode": null,
5239
- "assetsInfoEntity": null,
5240
- "isScrap": null,
5241
- "isReceive": null,
5242
- "receivesDesc": null
5243
- }
5244
5057
  }
5245
5058
  },
5246
5059
  methods: {
@@ -45,7 +45,7 @@
45
45
  :with-header="false"
46
46
  :append-to-body="true"
47
47
  :destroy-on-close="true"
48
- :model="false"
48
+ :modal="false"
49
49
  :direction="previewShowPopup ? 'btt' : 'rtl'"
50
50
  :size="previewShowPopup ? '90%' : '65%'"
51
51
  custom-class="pdf-preview-drawer"
@@ -193,11 +193,14 @@ export default {
193
193
  watch:{
194
194
  drawer(value) {
195
195
  if(value) {
196
+ this.$emit('open')
196
197
  this.$nextTick(() =>{
197
198
  if (this.tagIds && this.tagIds.length != 0){
198
199
  zoomElement(document.getElementById('pdf_container_view'))
199
200
  }
200
201
  })
202
+ } else {
203
+ this.$emit('close')
201
204
  }
202
205
  setTimeout(() => {
203
206
  let previewIframe = document.getElementsByClassName('preview_iframe')
@@ -629,4 +632,23 @@ export default {
629
632
  }
630
633
  }
631
634
 
635
+ @media screen and (min-width: 1200px) {
636
+ /* 这里是针对pc设备的css样式设置 */
637
+ .el-drawer__wrapper {
638
+ width: 55%;
639
+ left: calc(100vw - 55%);
640
+ right: 0;
641
+ /deep/.pdf-preview-drawer {
642
+ width: 100% !important;
643
+ }
644
+ }
645
+ /deep/.el-drawer__body{
646
+ height: 100%;
647
+ }
648
+ #drawer_content_pre {
649
+ overflow: auto;
650
+ height: calc(100% - 50px);
651
+ background: #FFF;
652
+ }
653
+ }
632
654
  </style>
@@ -41,6 +41,8 @@
41
41
  officePreviewType="pdf"
42
42
  @previewToDialog="previewToDialog"
43
43
  @recommendQues="recommendQues"
44
+ @close="close"
45
+ @open="open"
44
46
  :isHasChat="isHasChat"
45
47
  :knowledgeId="previewKnowledgeId"
46
48
  ></previewPdf>
@@ -198,20 +200,26 @@ export default {
198
200
  }
199
201
  })
200
202
  },
201
- previewToDialog(flag){
202
- if (!flag){
203
- this.$refs.previewPdf.previewKnowledgeId = ""
204
- } else {
205
- this.$refs.previewPdf.previewKnowledgeId = this.previewKnowledgeId
206
- }
207
- this.$emit('previewToDialog',flag,this.previewKnowledgeId,this.previewKnowledge)
208
- },
209
- clearKnowledgeId(){
210
- this.previewKnowledgeId = "";
211
- },
212
- recommendQues(item,knowledgeId){
213
- this.$emit('recommendQues',item,knowledgeId)
214
- }
203
+ previewToDialog(flag){
204
+ if (!flag){
205
+ this.$refs.previewPdf.previewKnowledgeId = ""
206
+ } else {
207
+ this.$refs.previewPdf.previewKnowledgeId = this.previewKnowledgeId
208
+ }
209
+ this.$emit('previewToDialog',flag,this.previewKnowledgeId,this.previewKnowledge)
210
+ },
211
+ clearKnowledgeId(){
212
+ this.previewKnowledgeId = "";
213
+ },
214
+ recommendQues(item,knowledgeId){
215
+ this.$emit('recommendQues',item,knowledgeId)
216
+ },
217
+ open() {
218
+ this.$emit('openPreviewDialog')
219
+ },
220
+ close() {
221
+ this.$emit('closePreviewDialog')
222
+ },
215
223
  }
216
224
  };
217
225
  </script>