agilebuilder-ui 1.0.14 → 1.0.16
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.
|
|
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 && this.$parent.$el && 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(
|