|
@@ -39,7 +39,7 @@ export default {
|
|
|
methods:{
|
|
|
submitForm(formName) {
|
|
|
const _self = this;
|
|
|
- this.$refs[formName].validate((valid) => {
|
|
|
+ _self.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
console.log('valid', this.form);
|
|
|
postEquityMsg(_self.form).then(res=>{
|
|
@@ -49,7 +49,7 @@ export default {
|
|
|
message: '提交成功',
|
|
|
type: 'success'
|
|
|
});
|
|
|
- this.$refs[formName].resetFields();
|
|
|
+ _self.$refs[formName].resetFields();
|
|
|
}
|
|
|
})
|
|
|
} else {
|