@close ='resetForms' 监听窗口的变化 (:visible.sync="dialogVisible")
<el-dialog
class="taskslayer"
:visible.sync="dialogVisible"
@close ='resetForms'
width="50%"
top="18%"
>
<el-dialog>
resetForms(){
let that = this
if (this.percentage!=100) {
that.dialogVisible=true
}
},