agilebuilder-ui 1.0.13 → 1.0.15

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/lib/super-ui.js CHANGED
@@ -30881,9 +30881,9 @@ const apis$1 = {
30881
30881
  return {};
30882
30882
  },
30883
30883
  created() {
30884
- this.getI18nSet().then((e) => {
30884
+ console.log("historyList---workflowId==", this.workflowId), this.workflowId !== void 0 && this.workflowId !== null ? this.getI18nSet().then((e) => {
30885
30885
  this.processI18n = e, !this.histories || this.histories === null ? this.getData() : this.loaded = !0;
30886
- });
30886
+ }) : this.initTableData();
30887
30887
  },
30888
30888
  mounted() {
30889
30889
  this.$nextTick(() => {
@@ -30896,11 +30896,14 @@ const apis$1 = {
30896
30896
  this.$http.get(
30897
30897
  window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/instance-histories/" + this.workflowId
30898
30898
  ).then((e) => {
30899
- this.histories = e.histories, e && e.currentTasks && (this.histories = this.histories.concat(e.currentTasks)), this.loaded = !0, this.maxHeight ? this.tableMaxHeight = Number(this.maxHeight) : (this.$parent.$el.offsetHeight && (this.tableMaxHeight = this.$parent.$el.offsetHeight), this.tableMaxHeight || (this.tableMaxHeight = window.innerHeight - 120));
30899
+ this.initTableData(e);
30900
30900
  }).catch((e) => {
30901
30901
  console.log(e), this.loaded = !0;
30902
30902
  });
30903
30903
  },
30904
+ initTableData(e) {
30905
+ e ? (this.histories = e.histories, e && e.currentTasks && (this.histories = this.histories.concat(e.currentTasks))) : this.histories = [], this.loaded = !0, this.maxHeight ? this.tableMaxHeight = Number(this.maxHeight) : (this.$parent.$el.offsetHeight && (this.tableMaxHeight = this.$parent.$el.offsetHeight), this.tableMaxHeight || (this.tableMaxHeight = window.innerHeight - 120));
30906
+ },
30904
30907
  getI18nSet() {
30905
30908
  return new Promise((e, t) => {
30906
30909
  this.allProcessI18n ? e(this.allProcessI18n) : this.$http.get(
@@ -33586,10 +33589,14 @@ const _sfc_main$q = {
33586
33589
  created() {
33587
33590
  },
33588
33591
  methods: {
33592
+ // change事件
33593
+ changeEvent(e) {
33594
+ this.$emit("change", e);
33595
+ },
33589
33596
  // 打开组织树
33590
33597
  showOrganizationTree() {
33591
33598
  let e = this.multiple;
33592
- typeof e > "u" && (e = !1), e === !0 && this.getSelectInfo(), this.$emit("focus"), this.showOrganizationTreeFlag = !0;
33599
+ typeof e > "u" && (e = !1), e === !0 && this.getSelectInfo(), this.$emit("focus"), this.showOrganizationTreeFlag = !0, this.$emit("show-tree");
33593
33600
  },
33594
33601
  getPropName(e, t, n) {
33595
33602
  return getPropNameWhenJoinTable(e, t, n);
@@ -33858,7 +33865,8 @@ function _sfc_render$h(e, t, n, o, i, l) {
33858
33865
  readonly: !0,
33859
33866
  size: n.size,
33860
33867
  type: "text",
33861
- onClick: t[2] || (t[2] = (V) => l.showOrganizationTree(!1))
33868
+ onClick: t[2] || (t[2] = (V) => l.showOrganizationTree(!1)),
33869
+ onChange: l.changeEvent
33862
33870
  }, {
33863
33871
  append: withCtx(() => [
33864
33872
  createVNode(p, {
@@ -33881,7 +33889,7 @@ function _sfc_render$h(e, t, n, o, i, l) {
33881
33889
  })
33882
33890
  ]),
33883
33891
  _: 1
33884
- }, 8, ["model-value", "size"])),
33892
+ }, 8, ["model-value", "size", "onChange"])),
33885
33893
  n.treeType && n.treeType === "DeptUserTree" && i.showOrganizationTreeFlag ? (openBlock(), createBlock(E, {
33886
33894
  key: 2,
33887
33895
  "department-info": n.departmentInfo,
@@ -56879,6 +56887,12 @@ const _sfc_main$g = {
56879
56887
  }),
56880
56888
  showClose: !0
56881
56889
  }), !1;
56890
+ const n = this.fileSetObj.beforeUpload;
56891
+ if (n) {
56892
+ const o = n.call(this, { pageContext: this.fileSetObj.pageContext, configureObj: this.fileSetObj.configureObj, file: e });
56893
+ if (o != null && o !== !0)
56894
+ return !1;
56895
+ }
56882
56896
  },
56883
56897
  // 上传成功
56884
56898
  uploadOnSuccess(e, t) {
@@ -56939,9 +56953,7 @@ const _sfc_main$g = {
56939
56953
  "delete-success",
56940
56954
  "delete",
56941
56955
  "update:value",
56942
- ,
56943
56956
  "close",
56944
- ,
56945
56957
  "update:value"
56946
56958
  ]
56947
56959
  };