vue2-client 1.9.91 → 1.9.93

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.91",
3
+ "version": "1.9.93",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -96,8 +96,8 @@ export default {
96
96
  afterSubmit (params) {
97
97
  this.$emit('afterSubmit', params)
98
98
  },
99
- emitFunc (func, data) {
100
- this.$emit('x-form-item-emit-func', func, data)
99
+ emitFunc (func, data, value) {
100
+ this.$emit('x-form-item-emit-func', func, data, value)
101
101
  },
102
102
  setForm (form) {
103
103
  this.$refs.nativeForm.setForm(form)
@@ -889,14 +889,9 @@ export default {
889
889
  setFormWithKey (obj) {
890
890
  setDataByRealKey(this.form, obj)
891
891
  },
892
- emitFunc (func, data) {
893
- // 打开列表选择框逻辑
894
- if (data?.model) {
895
- this.$emit(func, data, this.form[data.model])
896
- } else {
897
- this.$emit(func, data)
898
- }
899
- this.$emit('x-form-item-emit-func', func, data)
892
+ emitFunc (func, data, value) {
893
+ this.$emit(func, data, value)
894
+ this.$emit('x-form-item-emit-func', func, data, value)
900
895
  },
901
896
  close () {
902
897
  this.loaded = false
@@ -1182,7 +1182,7 @@ export default {
1182
1182
  }
1183
1183
  },
1184
1184
  emitFunc (func, data) {
1185
- this.$emit('x-form-item-emit-func', func, data)
1185
+ this.$emit('x-form-item-emit-func', func, data, data.model ? this.form[data.model] : this.form)
1186
1186
  },
1187
1187
  itemMounted (h) {
1188
1188
  this.$emit('mounted', h)
@@ -32,6 +32,7 @@
32
32
  <x-add-form
33
33
  ref="xAddForm"
34
34
  @onLocalSubmit="onLocalSubmit"
35
+ @x-form-item-emit-func="emitFunc"
35
36
  @afterSubmit="onAddOrEditSubmitAfterSubmit"
36
37
  >
37
38
  <template slot="groupFormItems" slot-scope="{form, model, rules, modifyModelData}">
@@ -126,10 +127,12 @@ import { mapState } from 'vuex'
126
127
  import XTreePro from '@vue2-client/base-client/components/common/XTree/XTreePro.vue'
127
128
  import { executeStrFunctionByContext } from '@vue2-client/utils/runEvalFunction'
128
129
  import util, { getRealKeyData } from '@vue2-client/utils/util'
130
+ import XAddNativeForm from '@/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
129
131
 
130
132
  export default {
131
133
  name: 'XFormTable',
132
134
  components: {
135
+ XAddNativeForm,
133
136
  XTreePro,
134
137
  XTable,
135
138
  XForm,
@@ -731,6 +734,9 @@ export default {
731
734
  if (callback) {
732
735
  callback()
733
736
  }
737
+ },
738
+ emitFunc (func, data, value) {
739
+ this.$emit(func, data, value)
734
740
  }
735
741
  },
736
742
  action: {
@@ -529,6 +529,8 @@ export default {
529
529
  if (executeStrFunctionByContext(this, tempConfig.editRowShowFunc, [text, record, index, tempConfig])) {
530
530
  return tempConfig
531
531
  }
532
+ } else {
533
+ return tempConfig
532
534
  }
533
535
  }
534
536
  return false