Kaynağa Gözat

app2.0 文件上传app修改

娄底高职分支
杨晓琪 2 yıl önce
ebeveyn
işleme
38366182ce
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. +4
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-app/upload-file.vue

+ 4
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-app/upload-file.vue Dosyayı Görüntüle

@@ -9,7 +9,7 @@
<view v-if="formData.folderId&&!readonly && value.length < Number(number)" style="display: inline-block;padding-left: 20px;">
<lsjupload ref="lsjUpload" height="32px" width="80px" :option="{
url:API+'/learun/adms/annexes/wxupload',formData
}" :instantly="true" :count="1" :size="100" @change="chooseChange">
}" :instantly="false" :count="1" :size="100" @change="chooseChange">
</lsjupload>
</view>
<!-- #endif -->
@@ -119,6 +119,9 @@

methods: {
async chooseChange(files) {
this.LOADING('正在提交...')
await this.$refs.lsjUpload.upload()
this.HIDE_LOADING()
let array = Array.from(files);
if (array.length) {
await this.$refs.lsjUpload.clear()


Yükleniyor…
İptal
Kaydet