临时存档
Former-commit-id: 478135c9cddd262cc43ea3c78e3b010140a70965 [formerly 478135c9cddd262cc43ea3c78e3b010140a70965 [formerly 478135c9cddd262cc43ea3c78e3b010140a70965 [formerly 478135c9cddd262cc43ea3c78e3b010140a70965 [formerly 8655f13a475ab0b87d8da714fbd5887fe25b7c19 [formerly c0fd05438c5c159c2e3a9cedcf31814a6ba5e02b]]]]] Former-commit-id: 7fb997158f60224f32cb323f1f3a853a5fec97cc Former-commit-id: 80be589dcd2d3fb67ee217844c7590671fdbbd6e Former-commit-id: 6930aaa344febf1efc9dd96488f5a8e1fdc3c00d [formerly 8109f02fa9ab2bf41a162778fdc48d638b852a6a] Former-commit-id: e95e8233a308a067c10222e2a277106be773ca63 Former-commit-id: 7ba6a415d53a8f83684608d89a47e35dec98f930 Former-commit-id: 3540b9a82e5ef79b8dfb18753a8a7d2a013aed94 Former-commit-id: 695315892575ac385338befe856980ba21401803 Former-commit-id: 6e91b18c7175df95f5398d7798146f8f74d2b437
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="submitForm('form')">
|
||||
@click="submitForm">
|
||||
<d2-icon name="search"/>
|
||||
查询
|
||||
</el-button>
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
<el-form-item>
|
||||
<el-button
|
||||
@click="resetForm('form')">
|
||||
@click="resetForm">
|
||||
<d2-icon name="refresh"/>
|
||||
重置
|
||||
</el-button>
|
||||
@@ -78,17 +78,21 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submitForm (formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
submitForm () {
|
||||
this.$refs.form.validate((valid) => {
|
||||
if (valid) {
|
||||
this.$emit('submit', this.form)
|
||||
} else {
|
||||
this.$notify.error({
|
||||
title: '错误',
|
||||
message: '表单校验失败'
|
||||
})
|
||||
return false
|
||||
}
|
||||
})
|
||||
},
|
||||
resetForm (formName) {
|
||||
this.$refs[formName].resetFields()
|
||||
resetForm () {
|
||||
this.$refs.form.resetFields()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user