小程序配置页面 增加取消按钮

This commit is contained in:
zhaotianfeng 2024-09-18 16:47:21 +08:00
parent fc589e7f83
commit b8366bb7b4

View File

@ -148,6 +148,7 @@
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm('deviceForm')">提交</el-button>
<el-button @click="resetForm('deviceForm')">取消</el-button>
</el-form-item>
</el-form>
<!-- </el-form>-->
@ -262,6 +263,11 @@ export default {
})
}
},
resetForm(formName) {
this.$refs[formName].resetFields();
this.clean();
this.open=false;
},
changeStatus(data){
console.log(123123123)
updateAppApi(data).then(res=>{