【fix ESLint】src/components/jero/JVxeTable/utils、src/mixins
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { VALIDATE_FAILED, getRefPromise, validateFormAndTables, validateFormModelAndTables } from '@/components/jero/JVxeTable/utils/vxeUtils.js'
|
||||
import { VALIDATE_FAILED, getRefPromise, validateFormModelAndTables } from '@/components/jero/JVxeTable/utils/vxeUtils.js'
|
||||
import { httpAction, getAction } from '@/api/manage'
|
||||
|
||||
export const JVxeTableModelMixin = {
|
||||
@@ -16,7 +16,9 @@ export const JVxeTableModelMixin = {
|
||||
wrapperCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 18 }
|
||||
}
|
||||
},
|
||||
refKeys: null,
|
||||
addDefaultRowNum: null // 这个变量应该是一个数字,但是为了保留原本代码中的提示逻辑,定义为null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -94,7 +96,9 @@ export const JVxeTableModelMixin = {
|
||||
}
|
||||
}
|
||||
tab.dataSource = dataSource
|
||||
typeof success === 'function' ? success(res) : ''
|
||||
if (typeof success === 'function') {
|
||||
success(res)
|
||||
}
|
||||
}).finally(() => {
|
||||
tab.loading = false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user