agilebuilder-ui 1.1.38-sit3 → 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-91c98916.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-91c98916.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-91c98916.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-sit3",
3
+ "version": "1.1.38-sit4",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -812,6 +812,12 @@ export default {
812
812
  },
813
813
  created() {
814
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
+ }
815
821
  this.gridParams = gridParams
816
822
  this.isCreateRow = gridParams.isCreateRow
817
823
  this.setTreeType()
@@ -903,9 +909,6 @@ export default {
903
909
  // deep: true
904
910
  // })
905
911
  const that = this
906
- if (this.controlConfig?.customParams) {
907
- this.myCustomParams = formatCustomParams(this.controlConfig.customParams, this.pageContext, this.row)
908
- }
909
912
  // 选择文件结束
910
913
  eventBus.$on(this.componentId + '-pickFileDone', (data) => {
911
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
@@ -628,11 +628,10 @@ export function formatCustomParams(customParams, pageContext, row) {
628
628
  // 表示是动态变量
629
629
  const dynamicValue = getPropValueNew(param.paramValue, pageContext, row)
630
630
  if (dynamicValue !== undefined && dynamicValue !== null) {
631
- param.paramValue = dynamicValue
631
+ formatCustomParams[param.paramName] = dynamicValue
632
632
  } else {
633
- param.paramValue = null
633
+ formatCustomParams[param.paramName] = null
634
634
  }
635
- formatCustomParams[param.paramName] = param.paramValue
636
635
  } else {
637
636
  formatCustomParams[param.paramName] = param.paramValue
638
637
  }