askbot-dragon 1.7.54-beta → 1.7.56-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 +14 -2
- package/src/components/ActionAlertIframe.vue +1 -0
- package/src/components/AiGuide.vue +3 -7
- package/src/components/AnswerDocknowledge.vue +26 -23
- package/src/components/ConversationContainer.vue +1 -3
- package/src/components/MyEditor.vue +1 -1
- package/src/components/QwFeedback.vue +2 -1
- package/src/components/actionSatisfaction.vue +2 -2
- package/src/components/answerRadio.vue +5 -3
- package/src/components/assetDetails.vue +1 -1
- package/src/components/assetMessage.vue +14 -13
- package/src/components/fielListView.vue +1 -1
- package/src/components/formTemplate.vue +1 -0
- package/src/components/intelligentSummary.vue +15 -12
- package/src/components/markDownText.vue +4 -4
- package/src/components/myPopup.vue +14 -11
- package/src/components/pdfPosition.vue +67 -58
- package/src/components/popup.vue +8 -7
- package/src/components/preview/excelView.vue +14 -6
- package/src/components/previewDoc.vue +1 -0
- package/src/components/previewPdf.vue +431 -420
- package/src/components/receiverMessagePlatform.vue +24 -20
- package/src/components/senderMessagePlatform.vue +19 -11
- package/src/components/tree.vue +2 -2
- package/src/components/welcomeKnowledgeFile.vue +5 -2
- package/src/components/welcomeSuggest.vue +1 -1
- package/src/locales/cn.json +55 -65
- package/src/locales/en.json +60 -71
- package/src/main.js +18 -17
|
@@ -1,29 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="pdf_view" id="pdf_view">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
3
|
+
<div class="change_scale" v-if="isPC">
|
|
4
|
+
<section @click="changeScale('reduce')">
|
|
5
|
+
<i class="el-icon-minus"></i>
|
|
6
|
+
</section>
|
|
7
|
+
<el-divider direction="vertical"></el-divider>
|
|
8
|
+
<section @click="changeScale('zoom')">
|
|
9
|
+
<i class="el-icon-plus"></i>
|
|
10
|
+
</section>
|
|
11
|
+
<el-select size="small" v-model="handScale" @change="changeScale" :placeholder="$t('dragonCommon.selectScale')">
|
|
12
|
+
<el-option v-for="item in scaleList" :key="item.value" :label="item.label" :value="item.value">
|
|
13
|
+
</el-option>
|
|
14
|
+
</el-select>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="pdf_container_view" id="pdf_container_view" @scroll="pdfScroll" ref="pdfView"></div>
|
|
17
|
+
<div class="btn_footer" v-if="tagIds.length > 1 && !isPC">
|
|
18
|
+
<div class="prev" @click="prev">{{ $t('dragonCommon.previous') }}</div>
|
|
19
|
+
<div class="next" @click="next">{{ $t('dragonCommon.next') }}</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div id="pagination" v-if="tagIds.length > 1 && isPC">
|
|
22
|
+
<el-pagination
|
|
23
|
+
:current-page="currentPage + 1"
|
|
24
|
+
@current-change="currentChange"
|
|
25
|
+
@prev-click="prev"
|
|
26
|
+
@next-click="next"
|
|
27
|
+
layout="slot, prev, pager, next"
|
|
28
|
+
:page-size="1"
|
|
29
|
+
:total="tagIds.length"
|
|
30
|
+
>
|
|
31
|
+
<span class="total-class">{{ $t('dragonCommon.answersGeneratedByPre') }}{{tagIds.length}}{{ $t('dragonCommon.answersGeneratedByAfter') }}</span>
|
|
32
|
+
</el-pagination>
|
|
33
|
+
</div>
|
|
27
34
|
</div>
|
|
28
35
|
</template>
|
|
29
36
|
<script>
|
|
@@ -99,37 +106,7 @@ export default {
|
|
|
99
106
|
defaultTransform:0.8,
|
|
100
107
|
isPC: false,
|
|
101
108
|
handScale: 'auto',
|
|
102
|
-
scaleList: [
|
|
103
|
-
{
|
|
104
|
-
label: '自动缩放',
|
|
105
|
-
value: 'auto'
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
label: '实际比例',
|
|
109
|
-
value: 'reality'
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
label: '100%',
|
|
113
|
-
value: 1
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
label: '120%',
|
|
117
|
-
value: 1.2
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
label: '150%',
|
|
121
|
-
value: 1.5
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
label: '170%',
|
|
125
|
-
value: 1.7
|
|
126
|
-
}
|
|
127
|
-
,
|
|
128
|
-
{
|
|
129
|
-
label: '200%',
|
|
130
|
-
value: 2
|
|
131
|
-
}
|
|
132
|
-
],
|
|
109
|
+
scaleList: [],
|
|
133
110
|
scrollTop: 0,
|
|
134
111
|
scrollLeft: 0
|
|
135
112
|
}
|
|
@@ -560,7 +537,7 @@ export default {
|
|
|
560
537
|
this.currentPage = 0
|
|
561
538
|
if (!this.isPC) {
|
|
562
539
|
this.$toast({
|
|
563
|
-
message: '
|
|
540
|
+
message: this.$t('dragonCommon.firstParagraph'),
|
|
564
541
|
duration: 2000,
|
|
565
542
|
})
|
|
566
543
|
return
|
|
@@ -579,7 +556,7 @@ export default {
|
|
|
579
556
|
this.currentPage = this.tagIds.length - 1
|
|
580
557
|
if (!this.isPC) {
|
|
581
558
|
this.$toast({
|
|
582
|
-
message: '
|
|
559
|
+
message: this.$t('dragonCommon.lastParagraph'),
|
|
583
560
|
duration: 2000,
|
|
584
561
|
})
|
|
585
562
|
return
|
|
@@ -1258,7 +1235,7 @@ export default {
|
|
|
1258
1235
|
}
|
|
1259
1236
|
} else {
|
|
1260
1237
|
let div = document.createElement('div')
|
|
1261
|
-
div.innerText = '
|
|
1238
|
+
div.innerText = this.$t('dragonCommon.fileloadException')
|
|
1262
1239
|
this.contentView.appendChild(div)
|
|
1263
1240
|
this.$refs.pdfView.appendChild(this.contentView)
|
|
1264
1241
|
}
|
|
@@ -1270,6 +1247,38 @@ export default {
|
|
|
1270
1247
|
}
|
|
1271
1248
|
},
|
|
1272
1249
|
mounted () {
|
|
1250
|
+
this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
|
|
1251
|
+
this.scaleList = [
|
|
1252
|
+
{
|
|
1253
|
+
label: this.$t('dragonCommon.scaleAuto'),
|
|
1254
|
+
value: 'auto'
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
label: this.$t('dragonCommon.scaleReality'),
|
|
1258
|
+
value: 'reality'
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
label: '100%',
|
|
1262
|
+
value: 1
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
label: '120%',
|
|
1266
|
+
value: 1.2
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
label: '150%',
|
|
1270
|
+
value: 1.5
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
label: '170%',
|
|
1274
|
+
value: 1.7
|
|
1275
|
+
}
|
|
1276
|
+
,
|
|
1277
|
+
{
|
|
1278
|
+
label: '200%',
|
|
1279
|
+
value: 2
|
|
1280
|
+
}
|
|
1281
|
+
]
|
|
1273
1282
|
if (/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) {
|
|
1274
1283
|
this.isPC = false
|
|
1275
1284
|
} else {
|
package/src/components/popup.vue
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="popUp">
|
|
3
3
|
<div class="topBtn">
|
|
4
|
-
<span class="cancel" @click="closeBtn"
|
|
5
|
-
<span class="sure" @click="sure"
|
|
4
|
+
<span class="cancel" @click="closeBtn">{{ $t('dragonCommon.cancel') }}</span>
|
|
5
|
+
<span class="sure" @click="sure">{{ $t('dragonCommon.confirm') }}</span>
|
|
6
6
|
</div>
|
|
7
7
|
<slot name="popup-header" class="popup-header"></slot>
|
|
8
8
|
<div class="popup-content">
|
|
9
9
|
<div
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
class="filter-item"
|
|
11
|
+
v-for="(item, index) in options"
|
|
12
|
+
:key="index"
|
|
13
|
+
@click="checked(item, index)"
|
|
14
14
|
>
|
|
15
|
-
<div :class="[checkIdList.includes(item[props.value]) && 'setColor', 'label']">{{item[props.label]}}</div>
|
|
15
|
+
<div :class="[checkIdList.includes(item[props.value]) && 'setColor', 'label']">{{ item[props.label] }}</div>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
<div class="popup-footer">
|
|
@@ -164,6 +164,7 @@ export default {
|
|
|
164
164
|
},
|
|
165
165
|
},
|
|
166
166
|
mounted() {
|
|
167
|
+
this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
|
|
167
168
|
console.debug('options',this.options)
|
|
168
169
|
|
|
169
170
|
}
|
|
@@ -129,10 +129,8 @@ export default {
|
|
|
129
129
|
const colorIndex = index % this.colors.length;
|
|
130
130
|
let id = item.tableChunkId;
|
|
131
131
|
let dom = document.getElementsByClassName('setBgClass' + id);
|
|
132
|
-
console.log('dom',dom)
|
|
133
132
|
if (dom && dom.length > 0){
|
|
134
133
|
let newDom = Array.from(dom)
|
|
135
|
-
console.log('newDom',newDom)
|
|
136
134
|
newDom.forEach(doms => {
|
|
137
135
|
doms.style.backgroundColor = this.colors[colorIndex];
|
|
138
136
|
})
|
|
@@ -150,10 +148,20 @@ export default {
|
|
|
150
148
|
},
|
|
151
149
|
scrollToRow(rowId) {
|
|
152
150
|
this.$nextTick(() => {
|
|
153
|
-
const row = this.rowDataList.find(row => row.id === rowId);
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
151
|
+
// const row = this.rowDataList.find(row => row.id === rowId);
|
|
152
|
+
const rowIndex = this.rowDataList.findIndex(row => row.id === rowId);
|
|
153
|
+
let index = Math.ceil(rowIndex / 20)
|
|
154
|
+
this.currentPage = index;
|
|
155
|
+
setTimeout(() => {
|
|
156
|
+
let dom = document.getElementsByClassName('setBgClass' + rowId);
|
|
157
|
+
if (dom && dom.length > 0){
|
|
158
|
+
let newDom = Array.from(dom)
|
|
159
|
+
newDom.forEach(doms => {
|
|
160
|
+
doms.style.backgroundColor = this.colors[0];
|
|
161
|
+
})
|
|
162
|
+
newDom[0].scrollIntoView({ behavior: "smooth"})
|
|
163
|
+
}
|
|
164
|
+
},500)
|
|
157
165
|
});
|
|
158
166
|
},
|
|
159
167
|
handleCurrentChange(val){
|
|
@@ -191,6 +191,7 @@ export default {
|
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
193
|
mounted() {
|
|
194
|
+
this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
|
|
194
195
|
setTimeout(() =>{
|
|
195
196
|
let previewIframe = document.getElementsByClassName('preview_iframe')
|
|
196
197
|
Array.from(previewIframe).forEach(item =>{
|