Commit 88b32b4b by 李少勇

修改校验问题

parent b692c87d
......@@ -65,6 +65,7 @@ export default {
loading.close();
return
}
loading.close();
const tab = this.showBackendErrors(errorRules)
if (tab) {
// tab切换之后,需出发tab-click的事件
......@@ -77,7 +78,6 @@ export default {
message: "校核失败",
type: "error",
});
loading.close();
return
}
}
......@@ -89,12 +89,13 @@ export default {
type: 'error',
});
this.$nextTick(() => {
console.log('========', this.$refs['modelForm'])
let isError = document.querySelectorAll('.is-error')
let fields = this.$refs['modelForm'].fields
fields.map((fieldItem) => {
if (fieldItem.validateState === 'error') {
let errorComponentName = fieldItem.$options.componentName
console.log('fieldItem===', fieldItem)
// console.log('fieldItem===', fieldItem)
// 切换tab
if (errorComponentName === 'ElTabPane') {
fieldItem.$parent.currentName = fieldItem.name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment