【fix ESLint】src/components/jero/JVxeTable/utils、src/mixins

This commit is contained in:
zhaoxiao
2023-03-06 11:17:05 +08:00
parent 9b2f446f76
commit 71521236cb
8 changed files with 47 additions and 31 deletions
+7 -3
View File
@@ -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
})