vue2-client 1.9.74 → 1.9.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.9.74",
3
+ "version": "1.9.75",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -105,7 +105,7 @@ import { mapState } from 'vuex'
105
105
  import { addOrModify, getConfigByName, getConfigByNameAsync, runLogic } from '@vue2-client/services/api/common'
106
106
  import { checkIdNumber, REG_EMAIL, REG_LANDLINE, REG_PHONE } from '@vue2-client/utils/reg'
107
107
  import moment from 'moment/moment'
108
- import { executeStrFunction } from '@vue2-client/utils/runEvalFunction'
108
+ import { executeStrFunction, executeStrFunctionByContext } from '@vue2-client/utils/runEvalFunction'
109
109
 
110
110
  export default {
111
111
  name: 'XAddNativeForm',
@@ -565,7 +565,7 @@ export default {
565
565
  },
566
566
  customJsValidate (rule, value, callback, item) {
567
567
  if (item.rule.customValidatorFunc) {
568
- executeStrFunction(item.rule.customValidatorFunc, [rule, value, callback, this.form, item, this.util])
568
+ executeStrFunctionByContext(this, item.rule.customValidatorFunc, [rule, value, callback, this.form, item, this.util, runLogic, getConfigByNameAsync])
569
569
  } else {
570
570
  callback()
571
571
  }