vue2-client 1.15.117 → 1.15.118

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.15.117",
3
+ "version": "1.15.118",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -887,7 +887,7 @@ export default {
887
887
  if (this.attr.showQueryFormItemFunc) {
888
888
  this.debouncedShowQueryFormItemFunc = debounce(this.showQueryFormItemFunc, 100)
889
889
  // 执行一次
890
- this.showFormItemFunc()
890
+ this.showQueryFormItemFunc()
891
891
  }
892
892
  // 人员联动框增加监听
893
893
  if (this?.attr?.keyName?.toString()?.startsWith('search@根据表单项[') && this?.attr?.keyName?.toString().endsWith(']联动人员')) {
@@ -906,7 +906,12 @@ export default {
906
906
  queryParamsName () {
907
907
  if (this.attr.keyName.startsWith('function')) {
908
908
  // 调用异步函数获取内容
909
- return executeStrFunctionByContext(this, this.attr.keyName, [this.form, runLogic, this.mode, getConfigByNameAsync])
909
+ const obj = executeStrFunctionByContext(this, this.attr.keyName, [this.form, runLogic, this.mode, getConfigByNameAsync])
910
+ // 处理同步返回值
911
+ return this.handleQueryParamsResult(obj)
912
+ } else if (this.attr.keyName.startsWith('async ')) {
913
+ console.warn('此处不支持异步操作')
914
+ return ''
910
915
  } else {
911
916
  // 按现有方式处理
912
917
  return this.attr.keyName.split('@')[this.attr.keyName.split('@').length - 1]
@@ -998,6 +1003,24 @@ export default {
998
1003
  }
999
1004
  },
1000
1005
  methods: {
1006
+ // 处理 queryParams 结果并更新 rowChooseFixedQueryValue
1007
+ handleQueryParamsResult (obj) {
1008
+ let configName = ''
1009
+ if (obj && typeof obj === 'object') {
1010
+ // obj 是一个对象,并且不是数组
1011
+ if (Object.prototype.hasOwnProperty.call(obj, 'configName')) {
1012
+ configName = obj?.configName
1013
+ }
1014
+ if (Object.prototype.hasOwnProperty.call(obj, 'fixedQueryForm')) {
1015
+ if (obj?.fixedQueryForm && typeof obj?.fixedQueryForm === 'object') {
1016
+ this.rowChooseFixedQueryValue = Object.assign({}, this.rowChooseFixedQueryValue, obj.fixedQueryForm)
1017
+ }
1018
+ }
1019
+ } else if (obj && typeof obj === 'string') {
1020
+ configName = obj
1021
+ }
1022
+ return configName
1023
+ },
1001
1024
  // 根据selectValueType预处理options数据
1002
1025
  processOptionsForValueType (options) {
1003
1026
  return this.selectValueTypeHandler.processOptions(options, this.attr.selectValueType)
@@ -8,7 +8,7 @@
8
8
  @action="action"
9
9
  @selectRow="selectRow"
10
10
  @columnClick="columnClick"
11
- serviceName="af-revenue"
11
+ serviceName="af-system"
12
12
  ref="xFormTable">
13
13
  </x-form-table>
14
14
  </a-card>
@@ -26,7 +26,7 @@ export default {
26
26
  data () {
27
27
  return {
28
28
  // 查询配置文件名
29
- queryParamsName: 'UserFilesListCRUD',
29
+ queryParamsName: 'ceshiCRUD',
30
30
  // 新增表单固定值
31
31
  fixedAddForm: {},
32
32
  // 是否显示详情抽屉
@@ -60,13 +60,13 @@ path: 'example',
60
60
  // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
61
61
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
62
62
  // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
63
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
63
+ component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
64
64
  // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
65
65
  // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
66
66
  // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
67
67
  // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
68
68
  // component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
69
- component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
69
+ // component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
70
70
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
71
71
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
72
72
  // component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),