agilebuilder-ui 1.1.38-sit2 → 1.1.38-sit4

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.
@@ -1,5 +1,5 @@
1
1
  import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
2
- import { _ as s } from "./index-f5b5c746.js";
2
+ import { _ as s } from "./index-718d62ef.js";
3
3
  const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
4
4
  this.src = this.$route.query.src;
5
5
  } }, mounted() {
@@ -1,4 +1,4 @@
1
- import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-f5b5c746.js";
1
+ import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-718d62ef.js";
2
2
  import { resolveComponent as u, openBlock as l, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as C, renderList as T, createElementVNode as m, toDisplayString as w, normalizeClass as S, createCommentVNode as y } from "vue";
3
3
  const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
4
4
  return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
2
- import { _ as I } from "./index-f5b5c746.js";
2
+ import { _ as I } from "./index-718d62ef.js";
3
3
  const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
4
4
  const o = this.$route.query.workflowId;
5
5
  o && (this.workflowId = parseInt(o));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.38-sit2",
3
+ "version": "1.1.38-sit4",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -13,7 +13,7 @@
13
13
  :additional-settings="controlConfig"
14
14
  :parent="parentFormData"
15
15
  :prop="column.prop"
16
- :custom-params="controlConfig ? controlConfig.customParams : null"
16
+ :custom-params="myCustomParams"
17
17
  :row="row"
18
18
  :row-index="position ? position.row : null"
19
19
  :select-options="options"
@@ -763,7 +763,8 @@ export default {
763
763
  isShowScanIcon,
764
764
  baseURL,
765
765
  colConfigure, // v10字段配置原信息
766
- designProperty // 字段配置
766
+ designProperty, // 字段配置
767
+ myCustomParams: {}
767
768
  }
768
769
  },
769
770
  computed: {},
@@ -811,6 +812,12 @@ export default {
811
812
  },
812
813
  created() {
813
814
  const gridParams = store.get(this.listCode)
815
+ if (this.controlConfig?.customParams) {
816
+ if (!this.pageContext) {
817
+ this.pageContext = gridParams.options.pageContext
818
+ }
819
+ this.myCustomParams = formatCustomParams(this.controlConfig.customParams, this.pageContext, this.row)
820
+ }
814
821
  this.gridParams = gridParams
815
822
  this.isCreateRow = gridParams.isCreateRow
816
823
  this.setTreeType()
@@ -902,9 +909,6 @@ export default {
902
909
  // deep: true
903
910
  // })
904
911
  const that = this
905
- if (this.controlConfig?.customParams) {
906
- formatCustomParams(this.controlConfig.customParams, this.pageContext, this.row)
907
- }
908
912
  // 选择文件结束
909
913
  eventBus.$on(this.componentId + '-pickFileDone', (data) => {
910
914
  if (that.$refs.fileUploadRef) {
@@ -223,7 +223,6 @@ import searchMethods from './search-methods'
223
223
  import searchFormNumber from './search-form-number.vue'
224
224
  import store from './store'
225
225
  import { getDynamicDataSourceOptions, isDynamicDataSourceSource, getControlConfig } from './utils'
226
- import { type } from 'os'
227
226
 
228
227
  export default {
229
228
  name: 'SearchFormItem',
package/src/utils/util.js CHANGED
@@ -621,20 +621,23 @@ function getAdditionalParamMap(pageContext) {
621
621
  }
622
622
 
623
623
  export function formatCustomParams(customParams, pageContext, row) {
624
+ const formatCustomParams = {}
624
625
  if (customParams && customParams.length > 0) {
625
626
  customParams.forEach((param) => {
626
627
  if (param.paramValue && param.paramValue.indexOf('${') === 0) {
627
628
  // 表示是动态变量
628
629
  const dynamicValue = getPropValueNew(param.paramValue, pageContext, row)
629
630
  if (dynamicValue !== undefined && dynamicValue !== null) {
630
- param.paramValue = dynamicValue
631
+ formatCustomParams[param.paramName] = dynamicValue
631
632
  } else {
632
- param.paramValue = null
633
+ formatCustomParams[param.paramName] = null
633
634
  }
635
+ } else {
636
+ formatCustomParams[param.paramName] = param.paramValue
634
637
  }
635
638
  })
636
639
  }
637
- return customParams
640
+ return formatCustomParams
638
641
  }
639
642
  export function getPropValueNew(propValue, pageContext, row) {
640
643
  let value = null