askbot-dragon 1.6.62-beta → 1.6.64-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.62-beta",
3
+ "version": "1.6.64-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -20,7 +20,8 @@
20
20
  "vue": "^2.6.11",
21
21
  "vue-resource": "^1.5.1",
22
22
  "vue-video-player": "^5.0.2",
23
- "weixin-js-sdk": "^1.6.0" },
23
+ "weixin-js-sdk": "^1.6.0"
24
+ },
24
25
  "devDependencies": {
25
26
  "@vue/cli-plugin-babel": "~4.5.0",
26
27
  "@vue/cli-plugin-eslint": "~4.5.0",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="intelligentSummary" id="intelligentSummary">
2
+ <div class="intelligentSummary" :class="tagIds.length != 0 ? 'float_intelligentSummary' : ''" id="intelligentSummary">
3
3
  <div class="summaryHeader">
4
4
  <div class="left">
5
5
  <i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
@@ -28,9 +28,9 @@
28
28
  </div>
29
29
  <div class="intelligentBottom" v-if="recommendQuestions.length > 0">
30
30
  <div class="intelligentQues"
31
- v-for="(item,index) in recommendQuestions"
32
- :key="index"
33
- @click="recommendQues(item)"
31
+ v-for="(item,index) in recommendQuestions"
32
+ :key="index"
33
+ @click="recommendQues(item)"
34
34
  >
35
35
  {{ item }}
36
36
  </div>
@@ -53,6 +53,12 @@ export default {
53
53
  props:{
54
54
  knowledgeId:{
55
55
  type:String
56
+ },
57
+ tagIds:{
58
+ type:Array,
59
+ default() {
60
+ return []
61
+ }
56
62
  }
57
63
  },
58
64
  methods:{
@@ -207,4 +213,16 @@ export default {
207
213
  height: 6px;
208
214
  }
209
215
  }
216
+ .float_intelligentSummary {
217
+ position: absolute;
218
+ z-index: 999;
219
+ top: 60px;
220
+ left: 16px;
221
+ width: calc(100% - 32px);
222
+ box-shadow: 0 0 10px rgba(0,0,0,.12);
223
+ .summaryContent {
224
+ max-height: 30vh;
225
+ overflow-y: auto;
226
+ }
227
+ }
210
228
  </style>
@@ -82,13 +82,14 @@
82
82
  </div>
83
83
  </div>
84
84
  <div id="drawer_content_pre">
85
+ <!-- :style="{marginTop:tagIds && tagIds.length != 0 && isPc ? '50px' : ''}" -->
85
86
  <intelligent-summary
86
87
  v-show="showSummary && isHasChat"
88
+ :tagIds="tagIds"
87
89
  :knowledgeId="knowledgeId"
88
90
  @closeSummary="closeSummary"
89
91
  @recommendQues="recommendQues"
90
92
  @getSummarySuccess="getSummarySuccess"
91
- :style="{marginTop:tagIds && tagIds.length != 0 && isPc ? '50px' : ''}"
92
93
  ></intelligent-summary>
93
94
  <div class="pdf_positon" :style="pdfStyle" v-if="tagIds && tagIds.length != 0 && drawer">
94
95
  <pdfPosition :tagIds="tagIds" :isMessageRecord="isMessageRecord" :textWatermarkStr="textWatermarkStr"></pdfPosition>
@@ -175,7 +176,7 @@ export default {
175
176
  },
176
177
  isHasChat:{
177
178
  type:Boolean,
178
- default:true
179
+ default:false
179
180
  },
180
181
  knowledgeId:{
181
182
  type: String,
@@ -356,9 +357,9 @@ export default {
356
357
  // console.log('height',height,preCon)
357
358
  // }
358
359
  // }
359
- let intelligentSummary = document.getElementById('intelligentSummary');
360
- let height = intelligentSummary.offsetHeight
361
- this.pdfStyle.height = 'calc(100% - ' + height + 'px)'
360
+ // let intelligentSummary = document.getElementById('intelligentSummary');
361
+ // let height = intelligentSummary.offsetHeight
362
+ // this.pdfStyle.height = 'calc(100% - ' + height + 'px)'
362
363
  })
363
364
  },
364
365
  getTextWatermark(){