askbot-dragon 1.4.39 → 1.4.40

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.4.39",
3
+ "version": "1.4.40",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
package/public/index.html CHANGED
@@ -38,7 +38,7 @@
38
38
  <script src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/pdfJS2.1.266/pdf_viewer.js" referrerpolicy="no-referrer"></script>
39
39
  <link rel="stylesheet" href="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/pdfJS2.1.266/pdf_viewer_01.css" referrerpolicy="no-referrer" />
40
40
  <!-- hammer.js -->
41
- <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.min.js" integrity="sha512-UXumZrZNiOwnTcZSHLOfcTs0aos2MzBWHXOHOuB0J/R44QB0dwY5JgfbvljXcklVf65Gc4El6RjZ+lnwd2az2g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> -->
41
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.min.js" integrity="sha512-UXumZrZNiOwnTcZSHLOfcTs0aos2MzBWHXOHOuB0J/R44QB0dwY5JgfbvljXcklVf65Gc4El6RjZ+lnwd2az2g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
42
42
  <style>
43
43
  *{
44
44
  margin: 0;
@@ -13,10 +13,10 @@
13
13
  'onRadioClick',msg.id +'_' + index + '_' + option.value + '_' + option.name,option.name, msg.apiKey,msg.actionCategory, msg.msgId?msg.msgId:''
14
14
  )">
15
15
 
16
- <el-tooltip class="item" effect="dark" :content="option.name" placement="bottom-start" v-if="!isMobile">
17
- <span class="options-item-text"> {{ option.name }}</span>
18
- </el-tooltip>
19
- <span class="options-item-text" v-else> {{ option.name }}</span>
16
+ <!-- <el-tooltip class="item" effect="dark" :content="option.name" placement="bottom-start" v-if="!isMobile">
17
+ <span > {{ option.name }}</span>
18
+ </el-tooltip> -->
19
+ <span> {{ option.name }}</span>
20
20
  <i class="arsenal_icon arsenalangle-right-solid"></i>
21
21
  </div>
22
22
  </div>
@@ -72,7 +72,7 @@ export default {
72
72
  /* padding-top: 10px;*/
73
73
  /*padding-right: 10px;*/
74
74
  .options-item{
75
- height: 25px;
75
+ // height: 25px;
76
76
  line-height: 25px;
77
77
  background-color: #ffffff;
78
78
  color: #366aff;
@@ -305,9 +305,12 @@ export default {
305
305
  if(this.transformSalce !== null) {
306
306
  startNum = Math.ceil(this.$refs.pdfView.scrollTop / ((this.pageSize.height + this.PAGE_INTVERVAL) * this.transformSalce))
307
307
  endNum = startNum + Math.ceil(height / ((this.pageSize.height + this.PAGE_INTVERVAL) * this.transformSalce))
308
+ console.log( Math.ceil(height / ((this.pageSize.height + this.PAGE_INTVERVAL) * this.transformSalce)),this.pageSize.height , this.PAGE_INTVERVAL, height, this.transformSalce,'startNum');
309
+
308
310
  } else {
309
311
  startNum = Math.ceil(this.$refs.pdfView.scrollTop / (this.pageSize.height + this.PAGE_INTVERVAL))
310
312
  endNum = startNum + Math.ceil(height / (this.pageSize.height + this.PAGE_INTVERVAL))
313
+
311
314
  }
312
315
  for (let pageIndex = startNum; pageIndex <= endNum; pageIndex++) {
313
316
  if(pageIndex > 0 && pageIndex <= this.pages.length) {
@@ -351,6 +354,7 @@ export default {
351
354
  that.loadPdfData(pageIndex)
352
355
  }
353
356
  }
357
+ console.log('=======');
354
358
  }, 200),
355
359
  directScrolling (e, that) {
356
360
  if (this.fisrtLoad) {
@@ -386,12 +390,12 @@ export default {
386
390
  let j = pageIndex + 1;
387
391
  // pageIndex - 1 表示当前页码数 对应的下标位置
388
392
  pagesToRender.push(this.pages[pageIndex - 1]);
389
- while (pagesToRender.length < 10 && pagesToRender.length < this.pages.length) {
393
+ while (pagesToRender.length < 8 && pagesToRender.length < this.pages.length) {
390
394
  if (i > 0) {
391
395
  pagesToRender.push(this.pages[i - 1]);
392
396
  i -= 1;
393
397
  }
394
- if (pagesToRender.length >= 10) {
398
+ if (pagesToRender.length >= 8) {
395
399
  break;
396
400
  }
397
401
  if (j <= this.pages.length) {
@@ -84,7 +84,7 @@
84
84
 
85
85
  <script>
86
86
  import pdfPosition from './pdfPosition.vue'
87
- import { zoomElement } from '../assets/js/hammer'
87
+ // import { zoomElement } from '../assets/js/hammer'
88
88
  export default {
89
89
  data () {
90
90
  return {
@@ -99,7 +99,7 @@ export default {
99
99
  }
100
100
  },
101
101
  mounted() {
102
- zoomElement(document.getElementById('drawer_content_pre'))
102
+ // zoomElement(document.getElementById('drawer_content_pre'))
103
103
  },
104
104
  props:{
105
105
  url:{
@@ -259,4 +259,7 @@ export default {
259
259
  /deep/.el-drawer__body{
260
260
  height: 100%;
261
261
  }
262
+ #drawer_content_pre {
263
+ height: 100%;
264
+ }
262
265
  </style>