浏览代码

app2.0 文件上传app修改

娄底高职分支
杨晓琪 2 年前
父节点
当前提交
38366182ce
共有 1 个文件被更改,包括 4 次插入1 次删除
  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 查看文件

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


正在加载...
取消
保存