mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-08 17:12:28 +08:00
【issues/2939】JEditable 下子表 addBefore()方法,在其中自定义调用其他方法不生效
This commit is contained in:
@ -53,6 +53,7 @@ export const JEditableTableMixin = {
|
|||||||
this.tableReset();
|
this.tableReset();
|
||||||
resolve();
|
resolve();
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
if (typeof this.addBefore === 'function') this.addBefore()
|
||||||
// 默认新增空数据
|
// 默认新增空数据
|
||||||
let rowNum = this.addDefaultRowNum
|
let rowNum = this.addDefaultRowNum
|
||||||
if (typeof rowNum !== 'number') {
|
if (typeof rowNum !== 'number') {
|
||||||
|
|||||||
@ -51,6 +51,7 @@ export const JEditableTableModelMixin = {
|
|||||||
this.tableReset();
|
this.tableReset();
|
||||||
resolve();
|
resolve();
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
if (typeof this.addBefore === 'function') this.addBefore()
|
||||||
// 默认新增空数据
|
// 默认新增空数据
|
||||||
let rowNum = this.addDefaultRowNum
|
let rowNum = this.addDefaultRowNum
|
||||||
if (typeof rowNum !== 'number') {
|
if (typeof rowNum !== 'number') {
|
||||||
|
|||||||
Reference in New Issue
Block a user