|
@ -144,6 +144,7 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
[CRUD.HOOK.beforeValidateCU](crud) { |
|
|
[CRUD.HOOK.beforeValidateCU](crud) { |
|
|
|
|
|
// 页面重复添加信息时,下拉框的校验会存在,需要手工取消 |
|
|
crud.findVM('form').$refs['editForm'].$refs['form'].validate(valid => { |
|
|
crud.findVM('form').$refs['editForm'].$refs['form'].validate(valid => { |
|
|
if (!valid) { |
|
|
if (!valid) { |
|
|
return |
|
|
return |
|
@ -162,6 +163,11 @@ export default { |
|
|
this.crud.data.reduce((prev, cur) => { return Math.max(prev.isSequence, cur.isSequence) }) |
|
|
this.crud.data.reduce((prev, cur) => { return Math.max(prev.isSequence, cur.isSequence) }) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
[CRUD.HOOK.beforeToCU]() { |
|
|
|
|
|
if (this.crud.findVM('form').$refs['editForm']) { |
|
|
|
|
|
this.crud.findVM('form').$refs['editForm'].$refs['form'].clearValidate() |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
clickRowHandler(row) { |
|
|
clickRowHandler(row) { |
|
|
this.$refs.fieldTable.clearSelection() |
|
|
this.$refs.fieldTable.clearSelection() |
|
|
this.$refs.fieldTable.toggleRowSelection(row) |
|
|
this.$refs.fieldTable.toggleRowSelection(row) |
|
|