【修改bug】修改校验

This commit is contained in:
zhoulingpo
2023-04-26 17:23:30 +08:00
parent b4787bbb62
commit 806a117b03
@@ -40,7 +40,7 @@ export default {
return {
dialogVisible: false,
form: {
label:undefined,
label:'',
name:'',
sort:'',
orderNum:'',
@@ -94,7 +94,6 @@ export default {
done();
},
open(node, data) {
this.dialogVisible = true
this.$api.report.labelList().then(res => {
console.log('666',res);
this.cascaderOptions=res.data
@@ -113,7 +112,7 @@ export default {
this.$forceUpdate()
} else {
this.form = {
label:undefined,
label:'',
name:'',
sort:'',
orderNum:'',
@@ -122,6 +121,11 @@ export default {
// this.$refs.form.clearValidate()
this.$forceUpdate()
}
this.dialogVisible = true
this.$nextTick(()=>{
this.$refs.form.clearValidate()
})
})
},
cancel() {