【修改bug】修改校验
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user