|
@@ -55,16 +55,16 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- -->
|
|
|
- <el-dialog title="版本修改" width="400px" :visible.sync="sectionVisible" >
|
|
|
+ <!-- v-if="sectionVisible" -->
|
|
|
+ <el-dialog title="版本修改" width="400px" :visible.sync="sectionVisible" :before-close="resetForm" >
|
|
|
<el-form
|
|
|
- v-if="sectionVisible"
|
|
|
:model="sectionForm"
|
|
|
ref="sectionForm"
|
|
|
:rules="sectionRules"
|
|
|
label-position="right"
|
|
|
label-width="80px"
|
|
|
:inline="true"
|
|
|
+ v-if="sectionVisible"
|
|
|
>
|
|
|
<el-form-item label="客户端" prop="platform" v-if="isNew">
|
|
|
<el-select v-model="sectionForm.platform" clearable>
|
|
@@ -208,6 +208,19 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ resetForm(){
|
|
|
+ this.sectionForm = {
|
|
|
+ platform:'',
|
|
|
+ version:'',
|
|
|
+ isForceUpdate:'',
|
|
|
+ downloadUrl:'',
|
|
|
+ status:'',
|
|
|
+ id:''
|
|
|
+ }
|
|
|
+ // console.log(this.sectionForm.status)
|
|
|
+ this.$refs.sectionForm.resetFields();
|
|
|
+ this.sectionVisible = false;
|
|
|
+ }
|
|
|
},
|
|
|
filters: {
|
|
|
statusFilter(val) {
|