askbot-dragon 1.2.5 → 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
CHANGED
|
@@ -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] && extInfoFieldValue[item.fieldId].length && 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>
|
|
@@ -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
|
},
|