askbot-dragon 1.2.4 → 1.2.6
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/assets/image/doc.png +0 -0
- package/src/assets/image/img.png +0 -0
- package/src/assets/image/mp3.png +0 -0
- package/src/assets/image/pdf.png +0 -0
- package/src/assets/image/ppt.png +0 -0
- package/src/assets/image/txt.png +0 -0
- package/src/assets/image/video.png +0 -0
- package/src/assets/image/weizhi.png +0 -0
- package/src/assets/image/xls.png +0 -0
- package/src/components/fielListView.vue +6 -4
- package/src/components/formTemplate.vue +7 -9
- package/src/components/previewDoc.vue +1 -1
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/assets/image/pdf.png
CHANGED
|
Binary file
|
package/src/assets/image/ppt.png
CHANGED
|
Binary file
|
package/src/assets/image/txt.png
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2,25 +2,27 @@
|
|
|
2
2
|
<div id="attachment-upload">
|
|
3
3
|
<div v-if="attachmentList.length != 0" class="image-list">
|
|
4
4
|
<template>
|
|
5
|
-
<div v-for="(item, index) in attachmentList" class="attch-item" :key="
|
|
5
|
+
<div v-for="(item, index) in attachmentList" class="attch-item" :key="index"
|
|
6
6
|
>
|
|
7
7
|
<span @click.stop="deleteAttch(index)"><i class="iconfont guoran-a-16-09"></i></span>
|
|
8
8
|
<div class="attch-item-left" @click="lookAttach(item.url)">
|
|
9
9
|
<i v-if="item.url == ''" class="el-icon-loading" style="color:#366AFF;margin: 5px;"></i>
|
|
10
10
|
<img src="../assets/image/video.png"
|
|
11
11
|
v-else-if="setSrc(item) == 'video'"/>
|
|
12
|
-
<img src="../assets/image/
|
|
12
|
+
<img src="../assets/image/img.png"
|
|
13
13
|
v-else-if="setSrc(item) == 'image'" />
|
|
14
14
|
<img src="../assets/image/txt.png"
|
|
15
15
|
v-else-if="setSrc(item) == 'txt'" />
|
|
16
|
-
<img src="../assets/image/
|
|
16
|
+
<img src="../assets/image/doc.png"
|
|
17
17
|
v-else-if="setSrc(item) == 'word'" />
|
|
18
18
|
<img src="../assets/image/pdf.png"
|
|
19
19
|
v-else-if="setSrc(item) == 'pdf'" />
|
|
20
20
|
<img src="../assets/image/ppt.png"
|
|
21
21
|
v-else-if="setSrc(item) == 'ppt'" />
|
|
22
|
-
<img src="../assets/image/
|
|
22
|
+
<img src="../assets/image/xls.png"
|
|
23
23
|
v-else-if="setSrc(item) == 'excel'" />
|
|
24
|
+
<img src="../assets/image/weizhi.png"
|
|
25
|
+
v-else />
|
|
24
26
|
<div class="fileName" v-if="item">
|
|
25
27
|
<template v-if="typeof item === 'string'">
|
|
26
28
|
<template v-if="item.indexOf('[') !== -1">
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
<el-upload
|
|
208
208
|
|
|
209
209
|
ref="upload"
|
|
210
|
-
:list-type="item.formField.type === 'IMAGE' ||
|
|
210
|
+
:list-type="item.formField.type === 'IMAGE' || item.formField.type === 'FILE' ? 'picture-card':''"
|
|
211
211
|
:accept="acceptFieldType(item.formField.type)"
|
|
212
212
|
name="file"
|
|
213
213
|
action="/open/media/file/upload"
|
|
@@ -220,14 +220,14 @@
|
|
|
220
220
|
:http-request="aliyunOssRequest"
|
|
221
221
|
:on-change="handleEditChange"
|
|
222
222
|
:on-success="successUpload"
|
|
223
|
-
:show-file-list="item.formField.type === 'IMAGE' ||
|
|
223
|
+
:show-file-list="item.formField.type === 'IMAGE' || item.formField.type === 'FILE' ? true : false"
|
|
224
224
|
>
|
|
225
225
|
<div class="upload-demo">
|
|
226
226
|
<i class="el-icon-plus"></i>
|
|
227
227
|
</div>
|
|
228
228
|
<!-- <el-button size="small" type="primary" v-else class="uploadBtn">点击上传</el-button>-->
|
|
229
229
|
</el-upload>
|
|
230
|
-
<file-list-view :attachmentList="extInfoFieldValue[item.fieldId]" v-if="extInfoFieldValue[item.fieldId] && item.formField.type !== 'IMAGE' &&
|
|
230
|
+
<file-list-view :attachmentList="extInfoFieldValue[item.fieldId]" v-if="extInfoFieldValue[item.fieldId] && item.formField.type !== 'IMAGE' && item.formField.type !== 'FILE'" @attachDeleteAttch="attachDeleteFile($event,item.fieldId)"></file-list-view>
|
|
231
231
|
</div>
|
|
232
232
|
</template>
|
|
233
233
|
<div v-else-if="item.formField.type == 'REF_TEMPLATE' || item.formField.type == 'REF'">
|
|
@@ -658,13 +658,13 @@
|
|
|
658
658
|
:after-read="afterRead"
|
|
659
659
|
:accept="acceptFieldType(item.formField.type)"
|
|
660
660
|
:multiple="item.formField.extInfo&&item.formField.extInfo.limitNum&&item.formField.extInfo.limitNum>1?true:false"
|
|
661
|
-
:preview-image="item.formField.type === 'IMAGE' ||
|
|
661
|
+
:preview-image="item.formField.type === 'IMAGE' || item.formField.type === 'FILE' ? true : false"
|
|
662
662
|
>
|
|
663
663
|
<div class="vant-upload--picture-card">
|
|
664
664
|
<i class="el-icon-plus"></i>
|
|
665
665
|
</div>
|
|
666
666
|
</van-uploader>
|
|
667
|
-
<file-list-view :attachmentList="extInfoFieldValue[item.fieldId]" v-if="extInfoFieldValue[item.fieldId] && item.formField.type !== 'IMAGE' &&
|
|
667
|
+
<file-list-view :attachmentList="extInfoFieldValue[item.fieldId]" v-if="extInfoFieldValue[item.fieldId] && extInfoFieldValue[item.fieldId].length && item.formField.type !== 'IMAGE' && item.formField.type !== 'FILE'" @attachDeleteAttch="attachDeleteFile($event,item.fieldId)"></file-list-view>
|
|
668
668
|
</div>
|
|
669
669
|
</div>
|
|
670
670
|
</div>
|
|
@@ -1507,10 +1507,8 @@ export default {
|
|
|
1507
1507
|
imageInfo.status='success'
|
|
1508
1508
|
imageInfo.name=res.name
|
|
1509
1509
|
for (let j=0;j<this.extInfoFieldValue[this.filedId].length;j++){
|
|
1510
|
-
if (this.extInfoFieldValue[this.filedId][j].content&&this.extInfoFieldValue[this.filedId][j].content===content){
|
|
1511
|
-
this.extInfoFieldValue[this.filedId]
|
|
1512
|
-
this.extInfoFieldValue[this.filedId][j].status='success'
|
|
1513
|
-
this.extInfoFieldValue[this.filedId][j].url=imageInfo.url
|
|
1510
|
+
if (this.extInfoFieldValue[this.filedId][j].content && this.extInfoFieldValue[this.filedId][j].content === content){
|
|
1511
|
+
this.$set(this.extInfoFieldValue[this.filedId],j,imageInfo)
|
|
1514
1512
|
delete this.extInfoFieldValue[this.filedId][j].content
|
|
1515
1513
|
}
|
|
1516
1514
|
}
|
|
@@ -46,7 +46,7 @@ export default {
|
|
|
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
|
url += btoa(encodeURIComponent(this.url))
|
|
49
|
-
url += '&encodeURIComponent=true'
|
|
49
|
+
url += '&officePreviewType=pdf&encodeURIComponent=true'
|
|
50
50
|
}
|
|
51
51
|
return url
|
|
52
52
|
},
|