Bladeren bron

app上传插件修改

临城职教中职
liangkun 2 jaren geleden
bovenliggende
commit
fd31e65979
3 gewijzigde bestanden met toevoegingen van 14 en 4 verwijderingen
  1. +2
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/common/customform.js
  2. +8
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/common/mixins.js
  3. +4
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-app/upload-file.vue

+ 2
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/common/customform.js Bestand weergeven

@@ -314,8 +314,8 @@ export default {
var uploadUid = '';

for (const item of val) {
if (item.uid) {
uploadUid = item.uid
if (item.folderId) {
uploadUid = item.folderId
continue
}



+ 8
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/common/mixins.js Bestand weergeven

@@ -229,6 +229,14 @@ export default {

return await this.HTTP_GET('learun/adms/annexes/wxfileinfo', fileId)
},
//删除指定id的文件信息
async DELETE_FILE(fileId) {
if (!fileId) {
return null
}
return await this.HTTP_POST('learun/adms/annexes/wxdelete', fileId);
},
//获取文件夹下文件列表
async FETCH_FILEList(folderId) {
if (!folderId) {


+ 4
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-app/upload-file.vue Bestand weergeven

@@ -23,7 +23,7 @@
</view>
<view v-else class="file-icon solids" @click="fileClick(index)"><l-icon type="text" /></view>

<view v-if="!readonly" @click.stop="delFile(index)" class="cu-tag bg-red" style="height: 24px; width: 24px;">
<view v-if="!readonly" @click.stop="delFile(index,file.uid)" class="cu-tag bg-red" style="height: 24px; width: 24px;">
<l-icon type="close" color="white" style="width: 18px; height: 24px; font-size: 24px;" />
</view>
<view class="fileName">
@@ -66,7 +66,7 @@ export default {
return ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf'].includes(typeString)
},

async delFile(index) {
async delFile(index,fileId) {
if (!(await this.CONFIRM('删除文件', '确定要删除该文件吗?', true))) {
return
}
@@ -75,6 +75,8 @@ export default {
this.$emit('input', newList)
this.$emit('change')
this.$emit('del')
//物理删除
this.DELETE_FILE(fileId);
},

chooseFile() {


Laden…
Annuleren
Opslaan