askbot-dragon 1.3.11 → 1.3.16
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 +1 -1
- package/src/components/AnswerDocknowledge.vue +2 -1
- package/src/components/AnswerVoice.vue +16 -2
- package/src/components/associationIntention.vue +3 -1
- package/src/components/fielListView.vue +5 -2
- package/src/components/formTemplate.vue +2 -2
- package/src/components/previewDoc.vue +5 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="answer-voice">
|
|
2
|
+
<div :style="{ width: boxWidth + 'px' }" class="answer-voice">
|
|
3
3
|
<audio :id="'audioTagCom_' + msg.id" :src="msg.content.url"></audio>
|
|
4
4
|
<div class="audiocon">
|
|
5
5
|
<!-- 按钮 -->
|
|
@@ -41,6 +41,7 @@ export default {
|
|
|
41
41
|
allTime: 0,
|
|
42
42
|
otherTime: 0,
|
|
43
43
|
durationNum: 0,
|
|
44
|
+
boxWidth: 200
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
47
|
watch: {
|
|
@@ -59,11 +60,21 @@ export default {
|
|
|
59
60
|
this.durationNum = this.activeAudio.duration;
|
|
60
61
|
console.log(this.activeAudio.duration);
|
|
61
62
|
this.allTime = this.transTime(this.activeAudio.duration);
|
|
63
|
+
if (this.activeAudio.duration >= 60) {
|
|
64
|
+
this.boxWidth = 240;
|
|
65
|
+
} else {
|
|
66
|
+
this.boxWidth = 160 + this.activeAudio.duration;
|
|
67
|
+
}
|
|
62
68
|
this._$(`#audioTagCom_${this.msg.id}`).on("loadedmetadata", (e) => {
|
|
63
69
|
console.log(e.currentTarget);
|
|
64
70
|
this.time = "00:00";
|
|
65
71
|
console.log(e.currentTarget.duration);
|
|
66
72
|
this.allTime = this.transTime(e.currentTarget.duration);
|
|
73
|
+
if (this.activeAudio.duration >= 60) {
|
|
74
|
+
this.boxWidth = 240;
|
|
75
|
+
} else {
|
|
76
|
+
this.boxWidth = 160 + this.activeAudio.duration;
|
|
77
|
+
}
|
|
67
78
|
this.durationNum = e.currentTarget.duration;
|
|
68
79
|
this.otherTime = this.transTime(this.activeAudio.duration);
|
|
69
80
|
// this.activeAudio.play();
|
|
@@ -158,7 +169,9 @@ export default {
|
|
|
158
169
|
</script>
|
|
159
170
|
<style scoped lang="less">
|
|
160
171
|
.answer-voice {
|
|
172
|
+
width: 100%;
|
|
161
173
|
padding: 4px 0;
|
|
174
|
+
// min-width: 240px;
|
|
162
175
|
|
|
163
176
|
.audiocon {
|
|
164
177
|
display: flex;
|
|
@@ -234,7 +247,7 @@ export default {
|
|
|
234
247
|
content: "";
|
|
235
248
|
position: absolute;
|
|
236
249
|
top: -4px;
|
|
237
|
-
right: -
|
|
250
|
+
right: -6px;
|
|
238
251
|
width: 5px;
|
|
239
252
|
height: 5px;
|
|
240
253
|
border-radius: 50%;
|
|
@@ -250,6 +263,7 @@ export default {
|
|
|
250
263
|
color: #222222;
|
|
251
264
|
font-weight: 500;
|
|
252
265
|
display: flex;
|
|
266
|
+
margin-left: 10px;
|
|
253
267
|
}
|
|
254
268
|
}
|
|
255
269
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</div>
|
|
51
51
|
</el-dialog> -->
|
|
52
52
|
<van-popup v-model="previewShowPopup" position="bottom" :style="{ height: '90%', background:'#FFFFFF'}">
|
|
53
|
-
<previewDoc ref="previewDoc" :url="previewHref" @close="close"></previewDoc>
|
|
53
|
+
<previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="previewShowPopup"></previewDoc>
|
|
54
54
|
</van-popup>
|
|
55
55
|
<el-drawer
|
|
56
56
|
title="我是标题"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
:with-header="false"
|
|
59
59
|
size="65%"
|
|
60
60
|
>
|
|
61
|
-
<previewDoc ref="previewDoc" :url="previewHref" @close="close"></previewDoc>
|
|
61
|
+
<previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="drawer"></previewDoc>
|
|
62
62
|
</el-drawer>
|
|
63
63
|
</div>
|
|
64
64
|
</template>
|
|
@@ -342,4 +342,7 @@ export default {
|
|
|
342
342
|
object-fit: contain;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
+
/deep/.el-drawer__body{
|
|
346
|
+
height: 100%;
|
|
347
|
+
}
|
|
345
348
|
</style>
|
|
@@ -1499,13 +1499,13 @@ export default {
|
|
|
1499
1499
|
console.log("upload result:", res);
|
|
1500
1500
|
// let filePath = res.name;
|
|
1501
1501
|
imageData.urls.push({
|
|
1502
|
-
name:
|
|
1502
|
+
name:file.name,
|
|
1503
1503
|
url:ossFileUrl(this.ossConfig, res.name),
|
|
1504
1504
|
status:'success'
|
|
1505
1505
|
})
|
|
1506
1506
|
imageInfo.url = ossFileUrl(this.ossConfig, res.name)
|
|
1507
1507
|
imageInfo.status='success'
|
|
1508
|
-
imageInfo.name=
|
|
1508
|
+
imageInfo.name=file.name
|
|
1509
1509
|
for (let j=0;j<this.extInfoFieldValue[this.filedId].length;j++){
|
|
1510
1510
|
if (this.extInfoFieldValue[this.filedId][j].content && this.extInfoFieldValue[this.filedId][j].content === content){
|
|
1511
1511
|
this.$set(this.extInfoFieldValue[this.filedId],j,imageInfo)
|
|
@@ -45,7 +45,11 @@ export default {
|
|
|
45
45
|
previewUrl() {
|
|
46
46
|
let url = process.env.VUE_APP_ENV === 'production' ? 'https://kkfileview.askbot.cn/onlinePreview?url=' : 'https://test.open.askbot.cn/kkfileview/onlinePreview?url='
|
|
47
47
|
if(this.url != '') {
|
|
48
|
-
|
|
48
|
+
if(/[\u4E00-\u9FA5]+/g.test(this.url)) {
|
|
49
|
+
url += btoa(encodeURIComponent(this.url))
|
|
50
|
+
} else {
|
|
51
|
+
url += btoa(this.url)
|
|
52
|
+
}
|
|
49
53
|
url += '&encodeURIComponent=true'
|
|
50
54
|
}
|
|
51
55
|
return url
|