【修改bug】修改校验
This commit is contained in:
@@ -40,7 +40,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
form: {
|
form: {
|
||||||
label:undefined,
|
label:'',
|
||||||
name:'',
|
name:'',
|
||||||
sort:'',
|
sort:'',
|
||||||
orderNum:'',
|
orderNum:'',
|
||||||
@@ -94,7 +94,6 @@ export default {
|
|||||||
done();
|
done();
|
||||||
},
|
},
|
||||||
open(node, data) {
|
open(node, data) {
|
||||||
this.dialogVisible = true
|
|
||||||
this.$api.report.labelList().then(res => {
|
this.$api.report.labelList().then(res => {
|
||||||
console.log('666',res);
|
console.log('666',res);
|
||||||
this.cascaderOptions=res.data
|
this.cascaderOptions=res.data
|
||||||
@@ -113,7 +112,7 @@ export default {
|
|||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
} else {
|
} else {
|
||||||
this.form = {
|
this.form = {
|
||||||
label:undefined,
|
label:'',
|
||||||
name:'',
|
name:'',
|
||||||
sort:'',
|
sort:'',
|
||||||
orderNum:'',
|
orderNum:'',
|
||||||
@@ -122,6 +121,11 @@ export default {
|
|||||||
// this.$refs.form.clearValidate()
|
// this.$refs.form.clearValidate()
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.dialogVisible = true
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
this.$refs.form.clearValidate()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
|||||||
Reference in New Issue
Block a user