vue2-client 1.15.91 → 1.15.92

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.91",
3
+ "version": "1.15.92",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -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)