当前位置:网站首页>How to empty uploaded attachments with components encapsulated by El upload
How to empty uploaded attachments with components encapsulated by El upload
2022-07-05 09:29:00 【Left hand holding * * right hand】
Upload an attachment in the recent project , Clear the list when clicking cancel . Because its attachment upload component has been deleted , The Cancel button does not call the interface . But using component attributes will report errors
, So let him refresh some parts :
<div class="file-info bdr10"
v-if="isRouterAlive">
<!-- 1====== Homework after class -->
<upload-file-flex ref="upload"
v-model="ruleForm.annex"
@getFileList="getFileList"
:accept="'.docx,.pdf'"
:limit="1"></upload-file-flex>
</div>
<div class="text-center"
style="margin-top:10px">
<el-button round
@click="removeFile"
size="mini"> Cancel </el-button>
<el-button type="primary"
size="mini"
:ldstatus="ldstatus"
style="background: #056AFF;"
@click="subMit"
round> preservation </el-button>
</div>
export default {
name: "app",
data() {
return {
isRouterAlive: true,
};
},
provide() {
return {
removeFile: this.removeFile,
};
},
methods: {
removeFile () {
this.isRouterAlive = false;
this.$nextTick(function () {
this.ruleForm.annex = ''
this.isRouterAlive = true;
});
},
},
};
边栏推荐
- Hosting environment API
- SQL learning group by multi table grouping scenario
- [team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
- Hi Fun Summer, play SQL planner with starrocks!
- 2309. 兼具大小写的最好英文字母
- What is a firewall? Explanation of basic knowledge of firewall
- 2311. Longest binary subsequence less than or equal to K
- 【饿了么动态表格】
- Wxss template syntax
- uni-app---uni.navigateTo跳转传参使用
猜你喜欢
LeetCode 31. Next spread
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
Lepton 无损压缩原理及性能分析
Rebuild my 3D world [open source] [serialization-2]
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
Understanding of smt32h7 series DMA and DMAMUX
Figure neural network + comparative learning, where to go next?
Principle and performance analysis of lepton lossless compression
图神经网络+对比学习,下一步去哪?
Kotlin introductory notes (VIII) collection and traversal
随机推荐
项目实战 | Excel导出功能
[beauty of algebra] singular value decomposition (SVD) and its application to linear least squares solution ax=b
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
Project practice | excel export function
C form click event did not respond
Creation and reference of applet
利用请求头开发多端应用
Transfer learning and domain adaptation
Kotlin introductory notes (IV) circular statements (simple explanation of while, for)
Global configuration tabbar
基于宽表的数据建模应用
Kotlin introductory notes (III) kotlin program logic control (if, when)
C language - input array two-dimensional array a from the keyboard, and put 3 in a × 5. The elements in the third column of the matrix are moved to the left to the 0 column, and the element rows in ea
[beauty of algebra] solution method of linear equations ax=0
【阅读笔记】图对比学习 GNN+CL
Editor use of VI and VIM
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
Hi Fun Summer, play SQL planner with starrocks!
[reading notes] Figure comparative learning gnn+cl
22-07-04 Xi'an Shanghao housing project experience summary (01)