askbot-dragon 1.7.56-beta → 1.7.58-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.7.56-beta",
3
+ "version": "1.7.58-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -14,29 +14,18 @@
14
14
  "@vue/cli-plugin-eslint": "~4.5.0",
15
15
  "@vue/cli-service": "~4.5.0",
16
16
  "audio-loader": "^1.0.3",
17
- "babel-eslint": "^10.1.0",
18
17
  "core-js": "^3.6.5",
19
- "element-ui": "^2.15.10",
20
- "eslint": "^6.7.2",
21
- "eslint-plugin-vue": "^6.2.2",
22
18
  "install": "^0.13.0",
23
19
  "jquery": "^3.5.1",
24
- "less": "^3.12.2",
25
- "less-loader": "^7.0.2",
26
20
  "lodash": "^4.17.21",
27
21
  "uuid": "^8.3.2",
28
22
  "v-viewer": "^1.6.4",
29
23
  "vant": "^2.12.51",
30
24
  "vconsole": "^3.9.1",
31
25
  "vue": "^2.6.11",
32
- "vue-i18n": "^8.26.4",
33
26
  "vue-resource": "^1.5.1",
34
- "vue-template-compiler": "^2.6.11",
35
27
  "vue-video-player": "^5.0.2",
36
28
  "weixin-js-sdk": "^1.6.0",
37
- "@vue/cli-plugin-babel": "~4.5.0",
38
- "@vue/cli-plugin-eslint": "~4.5.0",
39
- "@vue/cli-service": "~4.5.0",
40
29
  "babel-eslint": "^10.1.0",
41
30
  "element-ui": "^2.15.10",
42
31
  "eslint": "^6.7.2",
@@ -420,12 +420,6 @@ export default {
420
420
  } else {
421
421
  this.$refs.previewPdf.fileName = '';
422
422
  }
423
- let domId = item.knowledgeId + this.knowledgeIndex
424
- let dom = document.getElementById(domId);
425
- console.log('滚动到指定预览知识位置',dom,this.knowledgeIndex)
426
- if (dom){
427
- dom.scrollIntoView({ behavior: 'smooth' })
428
- }
429
423
  if (item.tagIds && item.tagIds.length != 0 && this.$refs.previewPdf.newFileType !== 'PPT') {
430
424
  this.$refs.previewPdf.loading = false
431
425
  return
@@ -118,13 +118,13 @@ export default {
118
118
  this.rowDataList.push(obj);
119
119
  }
120
120
  this.$nextTick(() => {
121
- this.setRowColor();
121
+ this.setRowColor('first');
122
122
  })
123
123
  },
124
124
  getRowKey(row){
125
125
  return row.id
126
126
  },
127
- setRowColor(){
127
+ setRowColor(type){
128
128
  this.tableChunkData.forEach((item,index) => {
129
129
  const colorIndex = index % this.colors.length;
130
130
  let id = item.tableChunkId;
@@ -136,7 +136,7 @@ export default {
136
136
  })
137
137
  }
138
138
  })
139
- if (this.tableChunkData.length > 0){
139
+ if (this.tableChunkData.length > 0 && type === 'first'){
140
140
  this.scrollToRow(this.tableChunkData[0].tableChunkId)
141
141
  }
142
142
  },
@@ -9,25 +9,6 @@
9
9
  :modal="false" :direction="previewShowPopup ? 'btt' : 'rtl'" :size="previewShowPopup ? '90%' : '65%'"
10
10
  custom-class="pdf-preview-drawer" v-if="drawer">
11
11
  <div class="drawer-header" :class="isLiBang ? 'libang_head' : ''" v-if="!isPc">
12
- <div class="header-btn btn_position">
13
- <div class="onload_btn" v-if="isDownload" @click="downLoad">
14
- {{ $t('dragonCommon.download') }}
15
- </div>
16
- <div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun" v-if="isHasChat">
17
- <i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
18
- <span>{{ $t('dragonCommon.smartSummary') }}</span>
19
- </div>
20
- <template v-if="isHasChat">
21
- <div class="chat" @click="previewToDialog(true)" v-if="!previewKnowledgeId">
22
- <i class="iconfont guoran-wendapingjia"></i>
23
- {{ $t('dragonCommon.chat') }}
24
- </div>
25
- <div class="chat chat_active" @click="previewToDialog(false)" v-else>
26
- <i class="iconfont guoran-wendapingjia"></i>
27
- {{ $t('dragonCommon.chat') }}
28
- </div>
29
- </template>
30
- </div>
31
12
  <div class="header_title">
32
13
  <template v-if="isDownload || isHasChat">
33
14
  <div class="top-header">