sadais-piui 1.2.7-beta3 → 1.2.7-beta4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -449,7 +449,10 @@ export default {
|
|
|
449
449
|
resolve(_getResolve())
|
|
450
450
|
})
|
|
451
451
|
.catch(({ errors, fields }) => {
|
|
452
|
-
console.log(TAG, '表单校验失败', this.prop
|
|
452
|
+
console.log(TAG, '表单校验失败', `字段名:${this.prop},字段值:${fieldValue}`)
|
|
453
|
+
console.log(TAG, '字段值:', fieldValue)
|
|
454
|
+
console.log(TAG, '错误信息', errors)
|
|
455
|
+
console.log(TAG, '校验规则', fields)
|
|
453
456
|
// 记录状态和报错信息
|
|
454
457
|
this.validateState = 'error'
|
|
455
458
|
this.validateMessage = errors ? errors[0].message : ''
|
|
@@ -328,8 +328,8 @@ export default {
|
|
|
328
328
|
handleChange(value) {
|
|
329
329
|
this.val = value
|
|
330
330
|
this.handleEmitChange()
|
|
331
|
-
this.dispatch('PiForm', 'form-change',
|
|
332
|
-
this.dispatch('PiFormItem', 'form-change',
|
|
331
|
+
this.dispatch('PiForm', 'form-change', this.val)
|
|
332
|
+
this.dispatch('PiFormItem', 'form-change', this.val)
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
}
|