askbot-dragon 1.3.12 → 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 +2 -1
- 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
|
@@ -239,7 +239,7 @@ export default {
|
|
|
239
239
|
position: absolute;
|
|
240
240
|
height: 4px;
|
|
241
241
|
top: 50%;
|
|
242
|
-
left:
|
|
242
|
+
left: 0px;
|
|
243
243
|
transform: translateY(-50%);
|
|
244
244
|
background-color: #366AFF;
|
|
245
245
|
|
|
@@ -263,6 +263,7 @@ export default {
|
|
|
263
263
|
color: #222222;
|
|
264
264
|
font-weight: 500;
|
|
265
265
|
display: flex;
|
|
266
|
+
margin-left: 10px;
|
|
266
267
|
}
|
|
267
268
|
}
|
|
268
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
|