|
|
@@ -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() |
|
|
|