|
@@ -23,7 +23,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view v-else class="file-icon solids" @click="fileClick(index)"><l-icon type="text" /></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;" /> |
|
|
<l-icon type="close" color="white" style="width: 18px; height: 24px; font-size: 24px;" /> |
|
|
</view> |
|
|
</view> |
|
|
<view class="fileName"> |
|
|
<view class="fileName"> |
|
@@ -66,7 +66,7 @@ export default { |
|
|
return ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf'].includes(typeString) |
|
|
return ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf'].includes(typeString) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async delFile(index) { |
|
|
|
|
|
|
|
|
async delFile(index,fileId) { |
|
|
if (!(await this.CONFIRM('删除文件', '确定要删除该文件吗?', true))) { |
|
|
if (!(await this.CONFIRM('删除文件', '确定要删除该文件吗?', true))) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
@@ -75,6 +75,8 @@ export default { |
|
|
this.$emit('input', newList) |
|
|
this.$emit('input', newList) |
|
|
this.$emit('change') |
|
|
this.$emit('change') |
|
|
this.$emit('del') |
|
|
this.$emit('del') |
|
|
|
|
|
//物理删除 |
|
|
|
|
|
this.DELETE_FILE(fileId); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
chooseFile() { |
|
|
chooseFile() { |
|
|